# LaTeX2HTML Demonstration LaTeX Doc

\newcommand{\set}[1]{\left\{#1\right\}}

LaTeX2HTML Demonstration LaTeX Doc [email protected] Southwest University 01/24/2013 Keywords. Latex, Html

目录

Contents

1. What did This Doc Do

2. How to Get this Doc

3. Itemize and Enumerate: How to List Stuffs

4. The Color Scheme: How to Colorize You Content

5. How to Write a Theorem

5.1. Definition, Lemma, Proposition, Theorem, Corollary…

5.1.1. Basic Usage of Environments

5.1.2. Assign a Name for Your Theorem

5.1.3. The Proof Environment

5.1.4. More Examples of Environments

5.2. The Problem, Answer Environments

5.3. The Exercise Environment

5.4. The Quote Environment

6. Auto Numbering and Referring Back

6.1. Auto Numbering and Referring Back to Equations

6.1.1. Basic Usage of Mathematical Environments

6.1.2. Auto Numbering Scheme of Equations

6.1.3. How to Numbered Equations by 3.a and 3.b

1. What did This Doc Do To demonstrate my plugins LaTeX2HTML, I write this demo-Doc of LaTeX, which can be compiled by LaTeX or PDFLaTeX on one hand, and can publish on your blog by directly copy and paste all the content into a new post in HTML mode.

2. How to Get this Doc This doc has published with the LaTeX2HTML plugin with version higher than 1.1.0, the LaTeX2HTML plugin can be download at WordPress.com.

3. Itemize and Enumerate: How to List Stuffs As you have already saw, we can list the element as

- Firstly
- Secondly

- Firstly
- Secondly
- The first item of Second
- The second item of Second
- The first item of the third item of second item

- Firstly
- Secondly
- The first item of Second
- The second item of Second
- The first item of the third item of second item

Just as in Latex, the you can set a color for your formula, for example

\[

\color{red}{a+b},\quad\color{blue}{a+b},\quad\color{green}{a+b}

\]

\[

\frac{\color{cyan}{a+b}}{c+d}, \quad

\frac{a}{\color{magenta}{a+b}},\quad

\frac{a}{a+\color{yellow}{b}}

\]

On the other hand, if you want to give color for your text content, then you should use something like this:

red and blue and green and cyan and magenta and yellow.

5. How to Write a Theorem
There are two group of environments, which proceed the content such as Theorem. One is used for a post, in which you mainly state something formally, just like you do in a research paper; The other is used for problem-discussion situation, in which you ask questions and hope for some examples and answers.

Of course the border is not so strict, for example the examp environment can used in both cases.

Here are the complete list of environments you can use (The example will be pop up at some time later), I take first few words of a environment to represent it, for example thm for Theorem:

- First group: defn(Definition), lem(Lemma), prop(Proposition), thm(Theorem), cor(Corollary), rem(Remark), excs(Exercise), proof(Proof)
- Second group: prob(Problem), answer(Answer)
- Mixed: examp(Example), quote(Quotation)

5.1. Definition, Lemma, Proposition, Theorem, Corollary… 5.1.1. Basic Usage of Environments Here is an example of definition environment:

and $f:X\to Y$ is a map. We call $f$ is measurable if for every $B\in\mathcal N$

the set $f^{-1}(B)$ is in $\mathcal M$.

The other is similar, just replace defn with any one of the above environment:

then $f$ is measurable if and only if the following condition satisfied:

- For every open set $V$ in $Y$, the inverse image $f^{-1}(V)$ is measurable.

5.1.2. Assign a Name for Your Theorem You can even assign a name to these environment, just as you did in latex, use [text] just behind the environment, for example:

- If $u\in C^2(\Omega)$ is harmonic in $\Omega$, then $u$ satisfies MVP;
- If $u\in C(\Omega)$ satisfies MVP, then $u$ is smooth and harmonic.

A function satisfying mean-value properties is only required to be continuous. However, a harmonic function is required to be $C^2$. Thus, the equivalence of this two kind of functions will be significant.6. Auto Numbering and Referring Back 6.1. Auto Numbering and Referring Back to Equations 6.1.1. Basic Usage of Mathematical EnvironmentsAll the mathematical environments: equation, align, multline, gather will auto-numbering. For example \begin{equation}\begin{cases} 3=2x+y\\ 3=y+2x\end{cases} \end{equation} An example of multline, which will make the last line flush right: \begin{multline} \int_a^b \biggl\{ \int_a^b [ f(x)^2 g(y)^2 + f(y)^2 g(x)^2 ] -2f(x) g(x) f(y) g(y) \,dx \biggr\} \,dy \\ =\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2 \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy \end{multline} The next example will show how to numbered the equation at a given line: \begin{gather} \begin{split} \varphi(x,z) &= z – \gamma_{10} x – \sum_{m+n\ge2} \gamma_{mn} x^m z^n\\ &= z – M r^{-1} x – \sum_{m+n\ge2} M r^{-(m+n)} x^m z^n \end{split}\tag{4}\\ \begin{split} \zeta^0 &= (\xi^0)^2, \\ \zeta^1 &= \xi^0 \xi^1 \end{split}\notag \end{gather} 6.1.2. Auto Numbering Scheme of EquationsI hope you have already noticed that the above equations are numbered automatically, in fact, this is my first goal to write a plugin to proceed the latex code. Mathjax proceed mathematical perfectly, the only non-advantage is that it can't automatically add number for equations. When I got a way to add number for the equations automatically, I found that I can go a litter far

- automatically numbering theorems, which can be realize by set CSS's before element with a counter, but it may not work for IE6;
- automatically numbering sections, and which can produce a table of contents, as you have already see.

**署名、非商业用途和保持一致**. 转载本站内容必须也遵循

**署名-非商业用途-保持一致**的创作共用协议.

Excellent! I’m looking for this quite a long time.