LaTeX2HTML Demonstration LaTeX Doc
\documentclass[12pt, reqno, b5size]{amsart}
\usepackage{color}
\usepackage{bm}
\usepackage{hyperref}
\hypersetup{
pdfstartview=FitH,
bookmarks=true,
CJKbookmarks=true,
pdfstartview=FitH,
colorlinks=true,
linkcolor=blue
}
%new theorem
\newtheorem{defn}{Definiton}
\newtheorem{prop}[defn]{Proposition}
\newtheorem{lem}[defn]{Lemma}
\newtheorem{thm}[defn]{Theorem}
\newtheorem{cor}[defn]{Corollary}
\newtheorem{rem}{Remark}
\newtheorem{prob}{Problem}
\newtheorem{excs}{Exercise}
\newtheorem{answer}{Answer}[prob]
%newcommand
\newcommand{\eps}{\varepsilon}
\newcommand{\R}{\bm{R}}
\newcommand{\rd}{\operatorname{d}}
\newcommand{\set}[1]{\left\{#1\right\}}
%new environments
%the quote
\renewenvironment{quote}{%
\par\vspace{1.5\baselineskip}%
\hspace{\stretch{0.2}}\minipage[c]{.9\textwidth}\itshape}{%
\endminipage\hspace{\stretch{1}}\vspace{1.5\baselineskip}\par}
\begin{document}
LaTeX2HTML Demonstration LaTeX Doc
van abel
van141.abel@gmail.com
Southwest University
01/24/2013
Keywords. Latex, Html
Abstract.
This doc is the demonstration of LaTeX doc which can be directly use in a new post. You can copy and paste all the content of this document into a new post (in HTML mode), and see the demonstration.\maketitle
Contents
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.b1. 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
FirstlySecondlyWhat’s more you can nest them, for example
FirstlySecondlyThe first item of SecondThe second item of SecondThe first item of the third item of second itemEnumerate works almost the same as itemize, except the style is different. For example replace enumerate in the above example with enumerate, then we get:
FirstlySecondlyThe first item of SecondThe second item of SecondThe first item of the third item of second item4. The Color Scheme: How to Colorize You Content
Firstly, you must decide which class your content belonged to, the text content or the mathematics content, since these two classes are proceeded by different scheme, text is by latex2html and mathematics by mathjax.
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)I will go through the two group one by one, let’s begin with the first group.5.1. Definition, Lemma, Proposition, Theorem, Corollary…
5.1.1. Basic Usage of EnvironmentsHere is an example of definition environment:
Definition 1.
Suppose that $(X,\mathcal M)$ and $(Y,\mathcal N)$ are measurable spaces,
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:
Remark 1.
If $Y$ is a topological space, and $\mathcal N$ is the $\sigma$-algebra of Borel sets,
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 TheoremYou can even assign a name to these environment, just as you did in latex, use [text] just behind the environment, for example:
Lemma 2. (fundamental lemma of integration)
Let $\set{f_n}$ be a Cauchy sequence of step mappings. Then there exists a subsequence which converges pointwise almost everywhere, and satisfies the additional property: given $\eps$ there exists a set $Z$ of measure $
\usepackage{color}
\usepackage{bm}
\usepackage{hyperref}
\hypersetup{
pdfstartview=FitH,
bookmarks=true,
CJKbookmarks=true,
pdfstartview=FitH,
colorlinks=true,
linkcolor=blue
}
%new theorem
\newtheorem{defn}{Definiton}
\newtheorem{prop}[defn]{Proposition}
\newtheorem{lem}[defn]{Lemma}
\newtheorem{thm}[defn]{Theorem}
\newtheorem{cor}[defn]{Corollary}
\newtheorem{rem}{Remark}
\newtheorem{prob}{Problem}
\newtheorem{excs}{Exercise}
\newtheorem{answer}{Answer}[prob]
%newcommand
\newcommand{\eps}{\varepsilon}
\newcommand{\R}{\bm{R}}
\newcommand{\rd}{\operatorname{d}}
\newcommand{\set}[1]{\left\{#1\right\}}
%new environments
%the quote
\renewenvironment{quote}{%
\par\vspace{1.5\baselineskip}%
\hspace{\stretch{0.2}}\minipage[c]{.9\textwidth}\itshape}{%
\endminipage\hspace{\stretch{1}}\vspace{1.5\baselineskip}\par}
\begin{document}
LaTeX2HTML Demonstration LaTeX Doc
van abel
van141.abel@gmail.com
Southwest University
01/24/2013
Keywords. Latex, Html
Abstract.
This doc is the demonstration of LaTeX doc which can be directly use in a new post. You can copy and paste all the content of this document into a new post (in HTML mode), and see the demonstration.\maketitle
Contents
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.b1. 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
FirstlySecondlyWhat’s more you can nest them, for example
FirstlySecondlyThe first item of SecondThe second item of SecondThe first item of the third item of second itemEnumerate works almost the same as itemize, except the style is different. For example replace enumerate in the above example with enumerate, then we get:
FirstlySecondlyThe first item of SecondThe second item of SecondThe first item of the third item of second item4. The Color Scheme: How to Colorize You Content
Firstly, you must decide which class your content belonged to, the text content or the mathematics content, since these two classes are proceeded by different scheme, text is by latex2html and mathematics by mathjax.
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)I will go through the two group one by one, let’s begin with the first group.5.1. Definition, Lemma, Proposition, Theorem, Corollary…
5.1.1. Basic Usage of EnvironmentsHere is an example of definition environment:
Definition 1.
Suppose that $(X,\mathcal M)$ and $(Y,\mathcal N)$ are measurable spaces,
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:
Remark 1.
If $Y$ is a topological space, and $\mathcal N$ is the $\sigma$-algebra of Borel sets,
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 TheoremYou can even assign a name to these environment, just as you did in latex, use [text] just behind the environment, for example:
Lemma 2. (fundamental lemma of integration)
Let $\set{f_n}$ be a Cauchy sequence of step mappings. Then there exists a subsequence which converges pointwise almost everywhere, and satisfies the additional property: given $\eps$ there exists a set $Z$ of measure $