转换思路,为何建立一个Markdown模板来方便地利用 pandoc
生成 pdf 呢?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: 期中大作业报告
author: MagHSK
date: 2020-04-04
header-includes:
- \usepackage{fvextra}
- \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,commandchars=\\\\\\\\\\\\{\\\\}}
documentclass: ctexart
classoption:
- UTF8
- fontset=adobe
- a4paper
geometry:
- margin=2.5cm
- centering
---
pandoc
参数:
1
pandoc -i document.md -o document.pdf --filter pandoc-crossref --pdf-engine=xelatex
pandoc-crossref
是一款好用的 pandoc filter
给 md
文档添加 ref 的软件。