# LaTeX2HTML

## 描述

LaTeX2HTML使得您写博客就像写LaTeX文档一样. 你可以将tex源代码直接复制粘贴到WP编辑器中, 新的Post看起来就像amsart格式的文档一样. 它支持很多latex原命令, 包括定理类环境以及BibTeX风格的引用.

### 主要功能

• 启用 MathJax以排版数学公式.
• 将LaTeX命令(几乎支持所有的amsart类命令)转换为HTML+CSS代码.
• 几乎所有的东西都可以设置, 但同时默认设置也能良好的工作. 例如, 支持\newcommand

## 安装

1. (推荐:自动安装)如果你从WP插件页安装, 可以搜索latex2html并点击安装.
2. (手动安装)解压zip(你会得到目录latex2html)并将其丢进WordPress安装目录中的wp-content/plugins/路径下.
3. 从插件页激活该插件.
4. (可选)做测试例子 (参考 FAQ).

## 常见问题

1. After you updating to WordPress 5.0 or higher, in the new new block editor, you can switch to HTML code mode from Visual mode by Ctrl+Shift+Alt+M. Or you can use the Classical Editor.
User’s Manual (included in the LaTeX2HTML’s setting page)

 1.  How to Write the Basic Information of Your Post
2.  How to Write Section, Subsection and Subsubsection
3.  Itemize and Enumerate: How to List Stuffs
4.  The Footnote
5.  The Color Scheme: How to Colorize You Content
6.  The Figure Environment
7.  How to Write a Theorem
7.1.  Definition, Lemma, Proposition, Theorem, Corollary, Remark, Proof
7.1.1.  Basic Usage of Environments
7.1.2.  Assign a Name for Your Theorem
7.1.3.  The Proof Environment
7.1.4.  More Examples of Environments
7.3.  The Exercise Environment
7.4.  The Quote Environment
8.  Auto Numbering and Referring Back
8.1.  Auto Numbering and Referring Back to Equations
8.1.1.  How to Refer back to Equation Number
8.1.2.  My Suggestion on “How to Write Equations”
8.2.  Auto Numbering and Referring Back to Environments
8.2.1.  Auto Numbering of Environments
8.2.2.  Referring Back to Environments
8.3.  Referring Back to Section
9.  BibTeX Citations
9.1.  How to Add BibTeX Data
9.2.  How to Cite
10.  Last Words and Feed Back
10.1.  How to Jump Between Links
11.  How to Get it?


\title{Hello LaTeX2HTML}
\begin{thm}[Newdon-Leibniez]\label{thm:NL}
If $f\in C^1([a,b])$ then
$$\label{eq:NL} \int_a^b f'(x) d x=f(b)-f(a)$$
In \autoref{thm:NL} the main part is \eqref{eq:NL}.
\end{thm}


## 评价

### Very straightforward

2019年1月3日
I tried a couple of LaTeX plugins for my version of WP (v5), none of which worked as expected (I didn't try very hard to find out why). But this one worked straight out of the box. Very intuitive and easy to use. Kudos!

### The best LaTeX plugin in WordPress I’ve seen

2018年11月16日
Awesome! Thanks author of this plugin. You can just copy your LaTeX code into your new article without any edition, and this plugin will help you to generate a beatiful output.

2018年1月13日

### Some suggestions for improvment

2017年12月25日
A nice plugin! [ link redacted ] And I have some suggestions for improvement: (1)The reference cannot be download; (2)I know that you have develop functions for preview latex codes, why not share it as another plugin or integrate them into this plugin; (3)Add a option: A blank line for new line.

### better than jetpack

2017年1月15日
it can also parse $code here$ syntax type which jetpack cannot

2017年2月7日

• 原始版本