惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
C
Check Point Blog
博客园_首页
B
Blog
D
Docker
U
Unit 42
量子位
I
InfoQ
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
美团技术团队
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Google DeepMind News
Google DeepMind News

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
How to Insert LaTeX Equations in Microsoft Office Word an...
2015-10-13 · via jdhao's digital space

In this post, I would like to share how to insert beautiful latex equations into Microsoft Office Word and PowerPoint.

I assume that one of the LaTeX distributions has been installed on your system. On Windows, either TeX Live or MiKTeX is fine.

Insert LaTeX equation in Word#

Free software#

There is a free plugin called texsword which can generate good quality LaTeX equations in Word.

How to install#

Download the package from sourceforge, extract it. You will see something like this,

For Office 2007 and later versions, copy the file texsword.dotm to the directory C:\Users\<USER_NAME>\AppData\Roaming\Microsoft\Word\STARTUP, <USER_NAME> represents your user name. In case that you can not locate this directory in this way, here is how you can find it in your computer:

  • Click on the File ribbon (Office 2010) or Office button (Office 2007)
  • Click Options
  • Click Advanced
  • Scroll down and find a button File Locations. Click on it.
  • Find Startup folder in the list of the Word system folders.
  • Remember where it is and close the Word. Copy the file.

If everything went well, upon next Word launch, you will see the TeXsword buttons in the Add-Ins ribbon.

How to use#

To insert equations, click the button with TeX label (see image above). There is also a shorcut to insert LaTeX equations: just press ALT+T.

For more usages, please consult the texword_readme.docx file bundled with the texsword.dotm. It has detailed instructions on how to use it.

Commercial and shareware#

There is a well-known software MathType which support LaTeX syntax. The only problem is that the license fee is too high for a student. I have found another software which is cheaper and can do the same thing. It is called AxMath and is developed by a Chinese company.

You can use the software free with limited features1 or you can purchase a license for about $6.12 (¥39) to activate full feature.

After you have installed this software, a ribbon will appear in the Word menu.

You can insert inline, display and numbered equations. To change to the LaTeX input mode, click the button in the lower right of panel or press shortcut key Ctrl+Tab.

It support LaTeX command auto-completion once you start typing \, which is convenient.

After finishing equations, you can use Shift+Enter to render the equations.

Install IguanaTex#

To type LaTeX in PowerPoint, you can use IguanaTex. Download it from here. Following instructions on the website (there is a installation part) and set up IguanaTex properly. Then a ribbon with name IguanaTeX will appear in PowerPoint,

How to use#

Type the LaTeX code just as you do in LaTeX,

Click the Generate button to generate LaTeX equations. If you want to update the equation, select the generated image, then click the Edit LaTeX display button under the IguanaTeX ribbon. After finishing editting, click the button Regenerate to regenerate the equation.

How use Chinese character inside math mode?#

By default the math mode in IguanTeX does not support Chinese character even if you have wrapped the characters with \text{} command.

To use Chinese, you have to do several things:

You also need to the set the path of GhostScript and Imagemagick executable files correctly in the IguanaTex settings, as shown below

I test the following script and it works as expected:

\documentclass[UTF8]{ctexart}
\usepackage{amsmath}
\pagestyle{empty}

\begin{document}

$\text{比例} = \frac{\text{部分}}{\text{全部}}$

\end{document}