pandoc-latex-template icon indicating copy to clipboard operation
pandoc-latex-template copied to clipboard

codebox hitting headers H4 and H5

Open nguxx opened this issue 4 years ago • 1 comments

Hi, I get an issue : the codeboxes are colliding with headers if the header is H4 or H5 (but not H3 and above) I uploaded an exemple here (line 8 and 34 of .md's) and this is the .md to check the code. my command is plain with your temple out of the box pandoc GnuPG_tuto.md -o GnuPG_tuto.md.pdf --from markdown --template eisvogel --listings Only on my machine ?

nguxx avatar Apr 29 '20 05:04 nguxx

LaTeX has no fourth and fifth level headings, so they are rendered with \paragraph and \subparagraph (as inline paragraphs with no margin). Normally that's not so bad but you notice it with block level content such as boxes and code after a paragraph heading.

You can redefine these paragraphs to look like real headings as discussed here https://github.com/Wandmalfarbe/pandoc-latex-template/issues/162#issuecomment-626931848 That should format everything after with nice margins.

Wandmalfarbe avatar May 11 '20 20:05 Wandmalfarbe