跳转至

ref

# markdown 转 html
# https://www.arthurkoziel.com/convert-md-to-html-pandoc/
# https://github.com/danmar/cppcheck/pull/2360/files
pandoc demo07.md -o demo07.html  --toc --number-sections -s

pandoc demo01.md demo02.md -o demo02.pdf --pdf-engine=xelatex -V documentclass="ctexrep" --table-of-contents --toc-depth=3 --number-sections  --include-in-header rewrite.tex --highlight-style pygments.theme

# \emph 无法实现中文斜体

# 帮助手册
texdoc ulem


fc-list :lang=zh

sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv

pandoc \
    -V geometry:a4paper \
    -V geometry:margin=2cm \
    -V mainfont="Source Han Sans SC" \
    -V sansfont="Source Code Pro" \
    -V monofont="Source Code Pro" \
    -V mathfont="Source Code Pro" \
    -V fontsize=12pt \
    --pdf-engine=xelatex \
    --listings \
    --toc \
    --toc-depth=3 \
    --highlight-style="pygments.theme" \
    --include-in-header="tex/inline_code.tex" \
    -o demo.pdf \
    demo.md 

pandoc \
    -V geometry:a4paper \
    -V geometry:margin=2cm \
    -V mainfont="Source Han Sans SC" \
    -V sansfont="Source Code Pro" \
    -V monofont="Source Code Pro" \
    -V mathfont="Source Code Pro" \
    -V fontsize=12pt \
    --pdf-engine=xelatex \
    --toc \
    --toc-depth=3 \
    -o demo.pdf \
    demo.md 
作者: aisuhua