Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.21k stars 968 forks source link

figure-placement "H" causes page overflow when creating a book #144

Open cagix opened 4 years ago

cagix commented 4 years ago

using pandoc 2.9.1.1 (linux) and the latest eisvogel.tex to compile the attached mwe with $ pandoc bug.txt -o bug.pdf --template=eisvogel.tex -V book=true -V float-placement-figure=h yields an page overflow on page 2 ... (bug.pdf)

however, the same text in combination with the default option for figure placement (H) $ pandoc bug.txt -o expected.pdf --template=eisvogel.tex -V book=true -V float-placement-figure=H works as expected (expected.pdf).

this is kind of weird, as this issue won't appear if there are minimal changes: e.g. when deleting the table, everything works as expected again.

maybe this is in connection to the latex warnings, which can be observed when using pandoc in verbose mode (--verbose)?

mwe: bug.txt plus bug

cagix commented 4 years ago

when using --verbose i observe some (maybe) related warnings, e.g.

Class scrbook Warning: You've used obsolete option `tablecaptionabove'.

Class scrbook Warning: deprecated option `enabledeprecatedfontcommands'.

Class scrbook Warning: Usage of package `fancyhdr' together
(scrbook)              with a KOMA-Script class is not recommended.
(scrbook)              I'd suggest to use 
(scrbook)              package `scrlayer' or `scrlayer-scrpage', because
(scrbook)              they support KOMA-Script classes.
(scrbook)              With `fancyhdr' several features of class `scrbook'
(scrbook)              like options `headsepline', `footsepline' or command
(scrbook)              `\MakeMarkcase' and the commands `\setkomafont' and
(scrbook)              `\addtokomafont' for the page style elements need
(scrbook)              explicite user intervention to work.
(scrbook)              Nevertheless, using requested
(scrbook)              package `fancyhdr' on input line 268.

Package footnotehyper Warning: 
 The footnote environment will not be fully functional, sorry.
 You may try to email the author with the following information:.
cagix commented 4 years ago

maybe related to #168