TeX - LaTeX Asked by Jaxan on January 29, 2021
I want to put a list in the lemma
environment. I am using pandoc to convert from markdown to LaTeX, so I thought it would be neat to use markdown lists. I tried:
begin{lemma}
The following are equivalent:
- the moon is made out of cheese
- the axiom of choice
end{lemma}
But this does not result in an itemize
. By removing the begin
command, it does result in an itemize (you can see that here). Of course, one of the fixes is to use the LaTeX itemize
environment, but I prefer the compact markdown syntax. Are there any workarounds / options / filters?
You should create a header file (say header.tex
) that contains the following
letotherbeginbegin
letotherendend
Then include a header file (either using -H
or --include-in-header
, or via --include-before-body=header.tex
). This should allow you to use
otherbegin{lemma}
The following are equivalent
- the moon is made out of cheese
- the axiom of choice
otherend{lemma}
This should convert via Pandoc to
otherbegin{lemma} The following are equivalent
begin{itemize}
tightlist
item
the moon is made out of cheese
item
the axiom of choice
end{itemize}
otherend{lemma}
Answered by Werner on January 29, 2021
Another option is to use raw LaTeX blocks.
`begin{lemma}`{=latex}
The following are equivalent:
- the moon is made out of cheese
- the axiom of choice
`end{lemma}`{=latex}
Answered by crsh on January 29, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP