一个Python (2和3) LaTeX 预处理器:preTeX

jopen 10年前

preTeX是一个Python (2和3) 的LaTeX 预处理器。旨在使LaTeX的语法更加简洁,从而写作过程更快,代码更易读。它由许多 "transformations" 组成。
sc.gif

Transformations

Overview, but more below the table.

name input output notes
arrow a -> b a \to b
approx a~=b a\approx b
leq a<=b a\leq b
geq a>=b a\geq b
ll a<<b a\ll b
gg a>>b a\gg b
neq a != b a \neq b
cdot a*b a\cdot b see below for more info
braket <a|b|c> \braket{a|b|c} see below for more info
dots 1, 2, ... 1, 2, \dots
sub_superscript \int_n=1 ^42+x \int_{n=1} ^{42+x} see below for more info
dot x.. \ddot{x} see below for more info
displaymath d$x^2$ $\displaymath x^2$ see below for more info
frac \frac a+b c*d \frac{a+b}{c*d} see below for more info
frac_compact a+b // c*d \frac{a+b}{c*d}

项目主页:http://www.open-open.com/lib/view/home/1415794237273