demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

LaTeX reader support for theorems #104

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If a LaTeX document contains commands like

\newtheorem{theorem}{Theorem} \newtheorem{lem}[theorem]{Lemma} \newtheorem{definition}{Definition} \newtheorem{example}{Example}

then it would be nice if Pandoc understood them, turning something like

\begin{lem}The product of any $4$ consecutive numbers is divisible by $24$.\end{lem}

into

Lemma. The product of any $4$ consecutive numbers is divisible by $24$.

[The optional argument in \newtheorem{lem}[theorem]{Lemma} stands for "number with the same counter as" and can be ignored as Pandoc doesn't produce numbering. Also note that a "theorem" environment is not defined by default, so it is not a good idea to special-case \begin{theorem}...\end{theorem} environments without reading \newtheorem commands.]


Original issue reported on code.google.com by `shreevat...@gmail.com` on 8 Nov 2008 at 1:10