ICPC Templates of Leachim in LaTeX 这是我用LaTeX整理的ICPC模板
With a collection of implementation of Algorithms and Data Structure for Competitive Programming. 拥有一系列竞技编程的算法和数据结构的实现
It may contain several open source code from online resources, which will be strictly enclosed with namespace and labeled with origin as comment(if possible).
- Enable Math Formula in LaTeX display in comments. 支持在注释内显示LaTeX数学公式
- Easy to use and modify, highly modular. 容易使用和修改,高度模块化。
- Enable a neat Syntax Highlight. 拥有非常优雅的代码语法高亮。
- Highly printable. 可直接打印。
- Maintained by a ICPC retired competitor. 被ICPC退役选手维护过。
XeLaTeX(Packages are listed in tex file), Pygments(For minted package to syntax highlight in code)
XeLaTeX can be obtained by installing LaTeX distribution on your device, for which Tex Live are recommanded.
Pygments can be install by pip, just simply run
pip install Pygments
In the directory LaTeX, compile the templates.tex file using
xelatex -shell-escape templates
If you encounter mistakes about pygmentize, it is posible that the flag "-shell-escape" is left or you didn't configure the path for pygments properly.
For the latter reason, you may want to make a soft link or directly install the pygments inside the tex folder.
Divide the tex file for each section. 将tex文件按章节分开。