LaTex support

32 sec read

I use jsMath to write mathematical equations in this blog. Here is an example
This is inline equation (use slash parenthesis): \(\alpha+\beta\geq\gamma=\pi\)
This is one line equation (use double dollar sign \$\$…\$\$): $$\int {1\over x}\,dx = \ln(x)+C$$

How can one write a dollar sign? Use slash before the dollar sign. Even inside code highlighter, you need to take care of double dollar sign and slash parenthesis. But hopefully you won’t encounter them.

To setup jsMath, follow the instructions in jsMath webpage. Basically
1. download 2 files and unzip
2. change jsMath/easy/load.js. I changed (below) so we can use dollar sign to show equations.

  processSlashParens: 1,       // process \(...\) in text? (slash parenthesis)
  processSlashBrackets: 0,     // process \[...\] in text?
  processDoubleDollars: 1,     // process $\$...$\$ in text?
  processSingleDollars: 0,     // process $...$ in text?
  fixEscapedDollars: 1,        // convert \$ to $ outside of math mode?
  showFontWarnings: 0,

3. change header.php under tropicala theme. Add one line inside

<script src=/jsMath/easy/load.js></script>

That’s it.



写作助手,把中式英语变成专业英文


Want to receive new post notification? 有新文章通知我

文献分析可以发SCI文章吗?

该文章可以通过该链接完整阅读(包括图片。这些图片有时微信禁止转载)。 我们印象当中,发文章需要做大量的实验和分析。实验对象可以是原子、病毒,可以是疾病、人群,也可以是恒星、宇宙。可是,如果分析的对象是
Xu Cui
14 sec read

Google Chrome takes too much CPU

I have been noticing for a while that Chrome takes too much of my CPU. It constantly consumes about ~30% or even more CPU even if I have only a blank page opened. As a consequence, my CPU fan is always running, making some noise which can be annoying
Xu Cui
32 sec read

Functional Near Infrared Spectroscopy (fNIRS): List of manufactures

Contents Company Products Artinis Brite, OxyMon, OctaMon, PortaMon, PortaLite BIOPAC fNIR 100, fNIR2000M Series CORTIVISION PHOTONCAP Huichuang Medical NirScan-900X, NirSmartⅡ- Pro GOWERLABS NTS fNIRS system, LUMO HAMAMATSU NIRO-200NX HITACHI ETG-410
Xiaodan Feng
15 min read

One Reply to “LaTex support”

Leave a Reply

Your email address will not be published. Required fields are marked *