diff --git a/basis.tex b/basis.tex index d960435..61a1fa0 100644 --- a/basis.tex +++ b/basis.tex @@ -1,5 +1,5 @@ % !TeX encoding = UTF-8 -% !TeX program = xelatex +% !TeX program = latexmk % !TeX root = latex-talk.tex \section{学术论文排版} @@ -235,10 +235,10 @@ \subsection{\LaTeX{} 排版入门} \end{itemize} \end{frame} -\begin{frame}[fragile]{unicode-math:现代的数学输入方式} -\LaTeX{} 的公式确实很强大,但是……好像麻烦了点? +\begin{frame}[fragile,label={frame:unicode-math}]{unicode-math:现代的数学输入方式} +\LaTeX{} 的公式确实很强大,但是……符号有点难记? -\pkg{unicode-math} 宏包提供了几乎所见即所得的公式输入: +\pkg{unicode-math} 宏包提供了几乎所见即所得的公式输入(\ThuThesis 默认使用): \begin{itemize} \item 可直接输入各类符号对应的 Unicode 字符(小心文件编码): @@ -585,7 +585,7 @@ \subsection{论文模板使用} \begin{itemize} \item 获取模板:已随发行版自带 \begin{itemize} - \item 在安装目录 |\texlive\2019\texmf-dist\doc\latex\IEEEtran| + \item 在安装目录 |\texlive\2020\texmf-dist\doc\latex\IEEEtran| 下找到 |bare_jrnl.tex| \item 复制到某个文件夹(比如个人存论文的目录) \end{itemize} diff --git a/introduction.tex b/introduction.tex index b51dbd5..b9ebf1e 100644 --- a/introduction.tex +++ b/introduction.tex @@ -1,5 +1,5 @@ % !TeX encoding = UTF-8 -% !TeX program = xelatex +% !TeX program = latexmk % !TeX root = latex-talk.tex \section{简介} @@ -215,7 +215,7 @@ \subsection{安装} \item \TL \begin{itemize} \item 跨平台:Windows, Linux, macOS (\MacTeX) - \item 每年一个新版本发布,当前即将迎来 \TL 2020 + \item 每年四月发布以年份命名的新版本,当前为 \TL 2020 \end{itemize} \item \MiKTeX \begin{itemize} @@ -226,7 +226,7 @@ \subsection{安装} \begin{itemize} \item 中科院吴凌云研究员基于 \MiKTeX 开发 \item 极大的方便了中文 \TeX 用户 - \item 2012 之后停止开发,不建议再使用 + \item 2012 年之后停止开发,不建议再使用 \end{itemize} \end{itemize} \end{frame} @@ -293,9 +293,9 @@ \subsection{安装} \item 添加环境变量到 \nolinkurl{~/.bashrc} 文件: \begin{lstlisting}[language=bash] -export PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH -export MANPATH=/usr/local/texlive/2019/texmf/doc/man:$MANPATH -export INFOPATH=/usr/local/texlive/2019/texmf/doc/info:$INFOPATH +export PATH=/usr/local/texlive/2020/bin/x86_64-linux:$PATH +export MANPATH=/usr/local/texlive/2020/texmf/doc/man:$MANPATH +export INFOPATH=/usr/local/texlive/2020/texmf/doc/info:$INFOPATH \end{lstlisting} \item 打开 \TeXLive 指南中文版 “texlive-zh-cn.pdf”, @@ -312,7 +312,7 @@ \subsection{安装} \item \XeTeX\ 系统字体配置 \begin{lstlisting}[language=bash] -cp /usr/local/texlive/2019/texmf-var/fonts/conf/texlive-fontconfig.conf \ +cp /usr/local/texlive/2020/texmf-var/fonts/conf/texlive-fontconfig.conf \ /etc/fonts/conf.d/09-texlive.conf fc-cache -fsv \end{lstlisting} @@ -371,7 +371,7 @@ \subsection{安装} % \vspace*{-3mm} \begin{itemize} \item 发行版没有预装 - \item 宏包需要更新(尤其是 \TL 升级间隔的尴尬时期) + \item 宏包需要更新(\TL 升级间隔的尴尬时期,或者宏包有重大变化) \end{itemize} \end{exampleblock} % \vspace*{-3mm} diff --git a/latex-talk.tex b/latex-talk.tex index c560b1b..c3087f6 100644 --- a/latex-talk.tex +++ b/latex-talk.tex @@ -1,7 +1,7 @@ % !TeX encoding = UTF-8 -% !TeX program = xelatex +% !TeX program = latexmk -\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=fandol,punct=kaiming]{ctexbeamer} +\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=fandol]{ctexbeamer} % Author: alick % Author: justin % Author: Harry Chen @@ -70,7 +70,7 @@ \hypersetup{ pdfauthor={Harry Chen, Justin Wong, Alick Zhao}, - pdfcopyright={Copyright (C) 2015-2019 by Alick Zhao, Justin Wong and Harry Chen. + pdfcopyright={Copyright (C) 2015-2020 by Alick Zhao, Justin Wong and Harry Chen. Licensed under CC-BY-SA 4.0. Some rights reserved.}, pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/}, } @@ -139,10 +139,10 @@ \title{如何使用 \LaTeX 排版论文} -\author[陈晟祺]{陈晟祺\\ \texttt{shengqi.chen@tuna.tsinghua.edu.cn}} +\author[陈晟祺]{\vspace{1em} 陈晟祺\\ \texttt{shengqi.chen@tuna.tsinghua.edu.cn}} \institute{清华大学 TUNA 协会} -\date[图书馆专题培训讲座]{2020 年 4 月} +\date[图书馆专题培训讲座]{2020 年 11 月} \subject{LaTeX, paper, ThuThesis} @@ -187,7 +187,7 @@ \begin{itemize} \item \url{http://github.com/alick/fad-texlive-talk} \item \url{https://github.com/stone-zeng/latex-talk} - \item \ThuThesis{} 使用示例文档 v6.0.2 + \item \ThuThesis{} 使用示例文档 v7.1.0 \end{itemize} \item 本幻灯片下载(实时更新): \begin{itemize} diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..203493d --- /dev/null +++ b/latexmkrc @@ -0,0 +1,10 @@ +# vim: set ft=perl: + +$pdf_mode = 5; + +$xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S"; +$xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S"; + +$bibtex_use = 1.5; + +$clean_ext = "hd loe ptc run.xml synctex.gz thm xdv nav snm vrb"; diff --git a/summary.tex b/summary.tex index 36e03d2..a816532 100644 --- a/summary.tex +++ b/summary.tex @@ -1,5 +1,5 @@ % !TeX encoding = UTF-8 -% !TeX program = xelatex +% !TeX program = latexmk % !TeX root = latex-talk.tex \section{总结} diff --git a/thuthesis.tex b/thuthesis.tex index 028b134..f785ba7 100644 --- a/thuthesis.tex +++ b/thuthesis.tex @@ -1,5 +1,5 @@ % !TeX encoding = UTF-8 -% !TeX program = xelatex +% !TeX program = latexmk % !TeX root = latex-talk.tex \section{学位论文排版} @@ -8,11 +8,9 @@ \subsection{\ThuThesis 清华大学学位论文模板} \begin{frame}{\ThuThesis} \framesubtitle{清华大学学位论文 \LaTeX{} 模板} \begin{itemize} - \item 最早:王磊~(2004.4) - \item 2005 年薛瑞尼接手维护,2018年起李泽平为主力开发者 - \item 最新正式版:6.0.2 (2020/02/23) - % \item 最近更新:2018/10/12 - \item 全面支持最新的本科、硕士、博士、博士后论文格式 + \item 最早由王磊于 2004年4月发布,2005 年薛瑞尼接手维护,2018年起李泽平为主力开发者,2020年起由TUNA维护 + \item 最新正式版:7.1.0 (2020/10/14) + \item 全面支持最新的本科、硕士、博士、博士后论文格式(2020年新版《清华大学研究生学位论文写作指南》),获研究生院官方推荐 \link{http://yjsy.cic.tsinghua.edu.cn/docinfo/board/boarddetail.jsp?columnId=001050603&parentColumnId=0010506&itemSeq=5365} \end{itemize} \begin{figure}[htbp] \centering @@ -30,13 +28,13 @@ \subsection{\ThuThesis 清华大学学位论文模板} \item 下载最新正式版(推荐) \begin{itemize} \item CTAN 官方 \link{http://mirrors.ctan.org/macros/latex/contrib/thuthesis.zip} - \item GitHub Releases \link{https://github.com/xueruini/thuthesis/releases} 或 TUNA 镜像 \link{https://mirrors.tuna.tsinghua.edu.cn/github-release/xueruini/thuthesis/} + \item GitHub Releases \link{https://github.com/tuna/thuthesis/releases} 或 TUNA 镜像 \link{https://mirrors.tuna.tsinghua.edu.cn/github-release/tuna/thuthesis/} \end{itemize} \item 下载最新开发版(高级 / 想尝鲜 / 着急的用户) \begin{itemize} - \item \url{https://github.com/xueruini/thuthesis} + \item \url{https://github.com/tuna/thuthesis} \item 切换到 |dev| 分支,点右边栏 - \href{https://github.com/xueruini/thuthesis/archive/dev.zip}% + \href{https://github.com/tuna/thuthesis/archive/dev.zip}% {Download ZIP} 按钮 \end{itemize} \end{itemize} @@ -55,8 +53,8 @@ \subsection{\ThuThesis 清华大学学位论文模板} \item Windows: 文件夹空白处按Shift+鼠标右键,点击“在此处打开命令行窗口” \item 模板文档类:|make cls| 编译 |thuthesis.dtx| $\Rightarrow$ |thuthesis.cls| - \item 论文示例:|make thesis| 编译 |main.tex| $\Rightarrow$ - |main.pdf| + \item 论文示例:|make thesis| 编译 |thuthesis-example.tex| $\Rightarrow$ + |thuthesis-example.pdf| \item 用户手册:|make doc| 编译 |thuthesis.dtx| $\Rightarrow$ |thuthesis.pdf| \item 更多用法可参考附带的 |Makefile| @@ -74,7 +72,7 @@ \subsection{\ThuThesis 清华大学学位论文模板} \begin{lstlisting}[basicstyle=\ttfamily] \documentclass[degree=master,degree-type=professional]{thuthesis} \end{lstlisting} -\item[fontset] 指定字体(推荐使用 |windows|,详见 \pkg{ctex} 文档) +\item[fontset] 指定字体(推荐使用 |windows|,详见模板文档说明) \begin{lstlisting}[basicstyle=\ttfamily] \documentclass[degree=doctor,fontset=windows]{thuthesis} \end{lstlisting} @@ -118,7 +116,7 @@ \subsection{\ThuThesis 清华大学学位论文模板} 证明 & 推论 & 例子& 练习 & 假设 & 注释 & 问题\\\bottomrule \end{tabular} \end{table} - \item \ThuThesis{} 使用 \pkg{unicode-math} 进行数学输入,注意与传统方式的区别 + \item \ThuThesis{} 使用 \pkg{unicode-math} 进行数学输入(\ref{frame:unicode-math} 页),注意与传统方式的区别 \end{itemize} \end{frame} @@ -188,13 +186,13 @@ \subsection{\ThuThesis 清华大学学位论文模板} \begin{itemize} \item 常见问题 \begin{itemize} - \item 参考文献列表出错、缺少字体、无法编译 ...:先更新到最新版本试试 - \item 认真阅读文档 |thuthesis.pdf| 和使用示例 |main.pdf| - \item 查看 FAQ \link{https://github.com/xueruini/thuthesis/wiki/FAQ} + \item 参考文献列表出错、缺少字体、无法编译、格式不对……:先\textbf{更新到最新版本}试试 + \item 认真阅读文档 |thuthesis.pdf| 和使用示例 |thuthesis-example.pdf| + \item 查看 FAQ \link{https://github.com/tuna/thuthesis/wiki/FAQ} \end{itemize} \item 主动提问 \begin{itemize} - \item GitHub Issues 提问:\link{https://github.com/xueruini/thuthesis/issues} + \item GitHub Issues 提问:\link{https://github.com/tuna/thuthesis/issues} % \item \TeX @newsmth 查找或发文 % \item \ThuThesis{} Google Group 发问 \link{http://groups.google.com/group/thuthesis} \end{itemize}