This project uses a Makefile to generate PDF files from Markdown files using Pandoc and XeLaTeX. The Makefile is designed to support multiple operating systems: macOS, Linux/Ubuntu, and Windows.
Make sure you have the following tools installed:
xelatex
support)DejaVu Serif
and
Noto Sans CJK SC
.Run the following commands to install the necessary dependencies:
sudo apt-get update
sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-lang-chinese fonts-dejavu fonts-noto-cjk
Use Homebrew to install the dependencies:
brew install pandoc
brew install --cask mactex
Make sure “Times New Roman” and “PingFang SC” are available on your system.
Download and install Pandoc from Pandoc’s official website. Ensure that you have the necessary fonts installed: “Times New Roman” and “Microsoft YaHei”.
Usage Build PDFs Run the following command to generate all PDF files:
make all
The Makefile will automatically detect your operating system and use the appropriate fonts.
To remove the generated PDF files, run:
make clean
This will delete all PDF files in the directory.
The following Markdown files are used to generate PDFs:
Ensure that the fonts specified for each OS are installed and accessible to the system. If you encounter any issues with missing fonts, you can update the Makefile with the paths or names of the fonts available on your system.
make all
来生成 PDF
文件以及如何清理生成的文件。此 README.md
文件将帮助用户理解如何在不同平台上使用
Makefile 生成 PDF 文件。