2014-09-29 60 views
2

出於某種原因,當我運行org-latex-preview(C-c C-x C-1)時,org-mode將我的顯示方程左對齊。但是,計算每個方程與其方程編號之間的差值,就好像方程中心一樣,這會破壞方程編號之間的對齊。用org-latex-preview居中顯示等式?

是否可以打開顯示的方程式的居中,以便方程式編號排列(與AUCTeX一樣)?

下面是一個簡單.ORG文件與顯示公式:

A numbered display equation: 

\begin{equation} 
\frac{\partial u}{\partial t}-\alpha\nabla^2u=0\tag{1} 
\end{equation} 

A second numbered equation: 

\begin{equation} 
E=MC^2\tag{2} 
\end{equation} 

這裏是組織模式的運行組織乳膠預覽後截圖:

enter image description here

回答

1

它看起來比如可以通過編輯org-format-latex-header來更改對齊方式。

這裏有三種不同的配置:\documentclass[reqno]{article}

enter image description here

  • 方程右邊::\documentclass[leqno]{article}
    1. 左側方程

    enter image description here

    1. 方程理由:\documentclass[fleqn]{article}

    enter image description here

    所以選項(2)實際中心顯示的方程。但只有當他們被編號!選項(3)可能看起來最清潔,方程式在左邊,數字在右邊。而選項(1)由於某種原因拒絕居中...... ??

    但是我注意到,啓用清潔模式M-x org-indent-mode會引發一切。在這裏我們可以看到式編號的選項,在對齊(3)如何變化:

    enter image description here

    這將是巨大的,如果有人可以解釋爲什麼選擇(1)不居中,爲什麼在未編號的方程( 2)保持左對齊...也許其他人可以提供一些eLisp來調整org-indent-mode ......的東西?

    最佳,

    - 亞當