Pandoc Syntax Highlighting in PDF not working

后端 未结 1 1548
忘掉有多难
忘掉有多难 2021-02-10 00:07

pandoc --version yields:

pandoc 1.12.2.1
Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1.
Syntax highlighting is supported for the followin         


        
1条回答
  •  广开言路
    2021-02-10 00:52

    Try to add --listings option to your pandoc compile command:

    pandoc --read=markdown --table-of-contents --toc-depth=2 --preserve-tabs --standalone --template=template.latex --latex-engine=xelatex --listings Hausarbeit.md --highlight-style=pygments -o Hausarbeit.pdf
    

    0 讨论(0)
提交回复
热议问题