# guet_ds_lab **Repository Path**: xgqin/guet_ds_lab ## Basic Information - **Project Name**: guet_ds_lab - **Description**: GUET datastruct experiment - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2014-04-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #guet_ds_lab --- ### Adobe Font 使用 Adobe Font 作为默认中文字体: 在 ``tutorial.tex`` 中 ctex 宏添加 ``adobefonts`` 参数: ``` \usepackage[adobefonts]{ctex} ``` 如果不添加参数,则默认中文字体为 Windows Font Adobe Fonts 下载地址:[4 种 Adobe Fonts](http://pan.baidu.com/wap/link?uk=2718464098&shareid=2146922634&third=0) ### Minted Package [minted 文档](http://mirror.bjtu.edu.cn/CTAN/macros/latex/contrib/minted/minted.pdf) 首先需要用 Python 安装 Pygments: ``` sudo easy_install Pygments ``` 然后编译需要加上 ``-shell-escape`` 参数: ``` xelatex -shell-escape your_tex_file.tex ``` 如果是使用 TeX 的 IDE,可以修改编译命令,加上 ``-shell-escape`` 参数就可以了。 #### 由 minted 替换原来的 lstlisting,如果要保持原来的风格不变,需要做出如下变化: #####``1.`` 每章开头需要清除 listing 计数器 ``` \setcounter{listing}{0} ``` #####``2.`` 由原来的: ``` \begin{lstlisting}[caption=C语言描述顺序表, label=lst:seqadt_c] \end{lstlisting} ``` 替换成: ``` \captionof{listing}{C语言描述顺序表} \label{lst:seqadt_c} \begin{minted}[linenos, frame=single]{c} \end{minted} ```