Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX reader support for theorems #243

Closed
jgm opened this issue Jun 10, 2011 · 2 comments
Closed

LaTeX reader support for theorems #243

jgm opened this issue Jun 10, 2011 · 2 comments

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

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.] 


Google Code Info:
Issue #: 104
Author: shreevat...@gmail.com
Created On: 2008-11-08T01:10:34.000Z
Closed On: 
@mpickering
Copy link
Collaborator

Also see #1608

@tarleb
Copy link
Collaborator

tarleb commented May 12, 2021

LaTeX reader support for amsthm was added in pandoc 2.10.1:

Support amsthm: \newtheorem, \theoremstyle, and theorem and proof environments, including labels and references. The only thing that is unsupported is the second optional argument, which causes numbering to be reset after the specified series is incremented.

I believe this can therefore be closed.

@tarleb tarleb closed this as completed May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants