git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: ignore --incremental unless -t beamer.

Closes #2843.

commit1985164816e49386e256d53d2846c90dc4168fd5 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 26 Apr 2016, 21:50 (11 years ago) parenta0fae92
1 file changed+2−1
src/Text/Pandoc/Writers/LaTeX.hs+2−1
src/Text/Pandoc/Writers/LaTeX.hs+2−1
@@ -508,7 +508,8 @@ blockToLaTeX (RawBlock f x)
508508blockToLaTeX (BulletList []) = return empty -- otherwise latex error
509509blockToLaTeX (BulletList lst) = do
510510 incremental <- gets stIncremental
511− let inc = if incremental then "[<+->]" else ""
511+ beamer <- writerBeamer `fmap` gets stOptions
512+ let inc = if beamer && incremental then "[<+->]" else ""
512513 items <- mapM listItemToLaTeX lst
513514 let spacing = if isTightList lst
514515 then text "\\tightlist"