org-mode 小细节归纳

Table of Contents

1 数学公式

org-mode对于数学公式是原生支持的。 其支持嵌入LaTex代码到文件中。因而可以直接使用类Tex的宏来输入特殊符号或者直接输入整个LaTex环境 如下例

Angles are written as Greek letters \alpha, \beta and \gamma. The mass if
the sun is M_sun = 1.989 x 10^30 kg. The radius of the sun is R_{sun} =
6.96 x 10^8 m. If $a^2=b$ and $b=2$, then the solution must be either
$a=+\sqrt{2}$ or $a=-\sqrt{2}$.

\begin{equation}
x=\sqrt{b}
\end{equation}
#+end_quote

效果如下: Angles are written as Greek letters α, β and γ. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of the sun is Rsun = 6.96 x 10^8 m. If \(a^2=b\) and \(b=2\), then the solution must be either \(a=+\sqrt{2}\) or \(a=-\sqrt{2}\).

\begin{equation} x=\sqrt{b} \end{equation}

1.1 参考

2 字体相关

上下标处理

(setq org-export-with-sub-superscripts '{})

3 cssstyle相关

修改特定页面css

#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="orgstyle.css"/>

global setting css

:style "<link rel='stylesheet' type='text/css' href='css/style.css' />"

Author: dctrl

Created: 2018-10-04 Thu 15:21

Validate