升级 drupal 到 5.1,顺便安装了一个新的 LaTeX 插件:DruTeX。比一直来用的 Latexrender 强大,更重要的是这个 DruTeX 有人更新维护。
现在在格志输入公式和在 LaTeX 环境下是一样的,复制一段 DruTeX 的使用方法,方便参考。
Writing maths works as in LaTeX. Use dollar signs to enclose inline math, e.g. $x^2$. Examples for paragraph math are [ x^2 ] and $$x^2$$ (both variants are equivalent). There is also a display-style inline math environment, compare $\sum_{k=1}^\infty \frac{1}{k}$ and $!\sum_{k=1}^\infty \frac{1}{k}$.
To make a dollar sign, you have to type \$ as in LaTeX!
Arbitrary LaTeX code can be rendered as in this example: <tex>Let $x^2$ be a natural number.</tex>
There are also more elaborate environments to write math - they support auto-numbering, referencing and more. These environments are <equation> and <equations>. They both support the same attributes.
E.g. rendering an equation with a different resolution: <equation dpi="200">e^{i \cdot \pi} = -1.</equation>
To give the equation automatically a number, you have to give it an id: <equation id="euler">e^{i \cdot \pi} = -1.</equation>
You now can produce a link to that equation by typing \ref{euler}, or even better (\ref{euler}).
You can also give it a name instead of a number: <equation id="euler" name="Euler's Identity">e^{i \cdot \pi} = -1.</equation>
An example for the
<equations>
\int \ln(x) \;dx
&= \int 1 \cdot \ln(x) \;dx \
&= x \cdot \ln(x) - \int x \cdot \frac{1}{x} \;dx \
&= x \cdot \ln(x) - x
</equations>
The spaces on the left are optional.
To prohibit some text from being processed by DruTeX, you can use <code> and <notex>, e.g. <notex>$x^2$</notex>.
测试公式
测试公式
能把页面调暗点么?
能把页面调暗点么?原来的不错,现在的太亮
我也这么觉得。喜欢
我也这么觉得。喜欢原来简单朴素的绿色。
主要因为以前的主题
主要因为以前的主题在新版本下显示不太正常。
我调调看,或者把这个主题的颜色改一改。
我还是比较喜欢两栏
我还是比较喜欢两栏的,简洁大方
现在颜色调深了一些
现在颜色调深了一些,可不可以?
对格志这样的社区性质网站来说,三栏的好处也是比较明显的。
请问为什么不能删除
请问为什么不能删除已发表的文章?
可以啊。 登录的状态
可以啊。
登录的状态下,进入要删除的帖子,有个“编辑”链接;进入就可以选择删除了。
不知道为什么我的网
不知道为什么我的网站用不了,设置好以后发文章,就显示TeX Embedding failed!
发表新评论