git.iko.soy/typeable/pandoc
on master help sign in
Implemented --toc-level in LaTeX writer.
commit123b94ad81e1b8c1e80f52a8d544bbc6b753fb86 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 5 Jan 2013, 11:49 (14 years ago) parent7c10e57
2 files changed+5−1
data/templates+1−1 src/Text/Pandoc/Writers/LaTeX.hs+4
data/templates+1−1

Submodule changed.

src/Text/Pandoc/Writers/LaTeX.hs+4
@@ -131,6 +131,10 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
131131 _ -> []
132132 context = writerVariables options ++
133133 [ ("toc", if writerTableOfContents options then "yes" else "")
134+ , ("toc-level", show (writerTOCLevel options -
135+ if writerChapters options
136+ then 1
137+ else 0))
134138 , ("body", main)
135139 , ("title", titletext)
136140 , ("title-meta", stringify title)