Skip to content

Commit a357300

Browse files
committed
Update for Nov 2020 talk, add latexmkrc
Signed-off-by: Harry Chen <[email protected]>
1 parent e7f8768 commit a357300

File tree

6 files changed

+45
-37
lines changed

6 files changed

+45
-37
lines changed

basis.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% !TeX encoding = UTF-8
2-
% !TeX program = xelatex
2+
% !TeX program = latexmk
33
% !TeX root = latex-talk.tex
44

55
\section{学术论文排版}
@@ -235,10 +235,10 @@ \subsection{\LaTeX{} 排版入门}
235235
\end{itemize}
236236
\end{frame}
237237

238-
\begin{frame}[fragile]{unicode-math:现代的数学输入方式}
239-
\LaTeX{} 的公式确实很强大,但是……好像麻烦了点
238+
\begin{frame}[fragile,label={frame:unicode-math}]{unicode-math:现代的数学输入方式}
239+
\LaTeX{} 的公式确实很强大,但是……符号有点难记
240240

241-
\pkg{unicode-math} 宏包提供了几乎所见即所得的公式输入:
241+
\pkg{unicode-math} 宏包提供了几乎所见即所得的公式输入(\ThuThesis 默认使用)
242242

243243
\begin{itemize}
244244
\item 可直接输入各类符号对应的 Unicode 字符(小心文件编码):
@@ -585,7 +585,7 @@ \subsection{论文模板使用}
585585
\begin{itemize}
586586
\item 获取模板:已随发行版自带
587587
\begin{itemize}
588-
\item 在安装目录 |<prefix>\texlive\2019\texmf-dist\doc\latex\IEEEtran|
588+
\item 在安装目录 |<prefix>\texlive\2020\texmf-dist\doc\latex\IEEEtran|
589589
下找到 |bare_jrnl.tex|
590590
\item 复制到某个文件夹(比如个人存论文的目录)
591591
\end{itemize}

introduction.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% !TeX encoding = UTF-8
2-
% !TeX program = xelatex
2+
% !TeX program = latexmk
33
% !TeX root = latex-talk.tex
44

55
\section{简介}
@@ -215,7 +215,7 @@ \subsection{安装}
215215
\item \TL
216216
\begin{itemize}
217217
\item 跨平台:Windows, Linux, macOS (\MacTeX)
218-
\item 每年一个新版本发布,当前即将迎来 \TL 2020
218+
\item 每年四月发布以年份命名的新版本,当前为 \TL 2020
219219
\end{itemize}
220220
\item \MiKTeX
221221
\begin{itemize}
@@ -226,7 +226,7 @@ \subsection{安装}
226226
\begin{itemize}
227227
\item 中科院吴凌云研究员基于 \MiKTeX 开发
228228
\item 极大的方便了中文 \TeX 用户
229-
\item 2012 之后停止开发,不建议再使用
229+
\item 2012 年之后停止开发,不建议再使用
230230
\end{itemize}
231231
\end{itemize}
232232
\end{frame}
@@ -293,9 +293,9 @@ \subsection{安装}
293293
\item
294294
添加环境变量到 \nolinkurl{~/.bashrc} 文件:
295295
\begin{lstlisting}[language=bash]
296-
export PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH
297-
export MANPATH=/usr/local/texlive/2019/texmf/doc/man:$MANPATH
298-
export INFOPATH=/usr/local/texlive/2019/texmf/doc/info:$INFOPATH
296+
export PATH=/usr/local/texlive/2020/bin/x86_64-linux:$PATH
297+
export MANPATH=/usr/local/texlive/2020/texmf/doc/man:$MANPATH
298+
export INFOPATH=/usr/local/texlive/2020/texmf/doc/info:$INFOPATH
299299
\end{lstlisting}
300300
\item
301301
打开 \TeXLive 指南中文版 “texlive-zh-cn.pdf”,
@@ -312,7 +312,7 @@ \subsection{安装}
312312
\item
313313
\XeTeX\ 系统字体配置
314314
\begin{lstlisting}[language=bash]
315-
cp /usr/local/texlive/2019/texmf-var/fonts/conf/texlive-fontconfig.conf \
315+
cp /usr/local/texlive/2020/texmf-var/fonts/conf/texlive-fontconfig.conf \
316316
/etc/fonts/conf.d/09-texlive.conf
317317
fc-cache -fsv
318318
\end{lstlisting}
@@ -371,7 +371,7 @@ \subsection{安装}
371371
% \vspace*{-3mm}
372372
\begin{itemize}
373373
\item 发行版没有预装
374-
\item 宏包需要更新(尤其是 \TL 升级间隔的尴尬时期)
374+
\item 宏包需要更新(\TL 升级间隔的尴尬时期,或者宏包有重大变化
375375
\end{itemize}
376376
\end{exampleblock}
377377
% \vspace*{-3mm}

latex-talk.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% !TeX encoding = UTF-8
2-
% !TeX program = xelatex
2+
% !TeX program = latexmk
33

4-
\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=fandol,punct=kaiming]{ctexbeamer}
4+
\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=fandol]{ctexbeamer}
55
% Author: alick<[email protected]>
66
% Author: justin <[email protected]>
77
% Author: Harry Chen <[email protected]>
@@ -70,7 +70,7 @@
7070

7171
\hypersetup{
7272
pdfauthor={Harry Chen, Justin Wong, Alick Zhao},
73-
pdfcopyright={Copyright (C) 2015-2019 by Alick Zhao, Justin Wong and Harry Chen.
73+
pdfcopyright={Copyright (C) 2015-2020 by Alick Zhao, Justin Wong and Harry Chen.
7474
Licensed under CC-BY-SA 4.0. Some rights reserved.},
7575
pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/},
7676
}
@@ -139,10 +139,10 @@
139139

140140
\title{如何使用 \LaTeX 排版论文}
141141

142-
\author[陈晟祺]{陈晟祺\\ \texttt{[email protected]}}
142+
\author[陈晟祺]{\vspace{1em} 陈晟祺\\ \texttt{[email protected]}}
143143

144144
\institute{清华大学 TUNA 协会}
145-
\date[图书馆专题培训讲座]{2020 年 4 月}
145+
\date[图书馆专题培训讲座]{2020 年 11 月}
146146

147147
\subject{LaTeX, paper, ThuThesis}
148148

@@ -187,7 +187,7 @@
187187
\begin{itemize}
188188
\item \url{http://github.com/alick/fad-texlive-talk}
189189
\item \url{https://github.com/stone-zeng/latex-talk}
190-
\item \ThuThesis{} 使用示例文档 v6.0.2
190+
\item \ThuThesis{} 使用示例文档 v7.1.0
191191
\end{itemize}
192192
\item 本幻灯片下载(实时更新):
193193
\begin{itemize}

latexmkrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# vim: set ft=perl:
2+
3+
$pdf_mode = 5;
4+
5+
$xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S";
6+
$xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S";
7+
8+
$bibtex_use = 1.5;
9+
10+
$clean_ext = "hd loe ptc run.xml synctex.gz thm xdv nav snm vrb";

summary.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% !TeX encoding = UTF-8
2-
% !TeX program = xelatex
2+
% !TeX program = latexmk
33
% !TeX root = latex-talk.tex
44

55
\section{总结}

thuthesis.tex

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% !TeX encoding = UTF-8
2-
% !TeX program = xelatex
2+
% !TeX program = latexmk
33
% !TeX root = latex-talk.tex
44

55
\section{学位论文排版}
@@ -8,11 +8,9 @@ \subsection{\ThuThesis 清华大学学位论文模板}
88
\begin{frame}{\ThuThesis}
99
\framesubtitle{清华大学学位论文 \LaTeX{} 模板}
1010
\begin{itemize}
11-
\item 最早:王磊~(2004.4)
12-
\item 2005 年薛瑞尼接手维护,2018年起李泽平为主力开发者
13-
\item 最新正式版:6.0.2 (2020/02/23)
14-
% \item 最近更新:2018/10/12
15-
\item 全面支持最新的本科、硕士、博士、博士后论文格式
11+
\item 最早由王磊于 2004年4月发布,2005 年薛瑞尼接手维护,2018年起李泽平为主力开发者,2020年起由TUNA维护
12+
\item 最新正式版:7.1.0 (2020/10/14)
13+
\item 全面支持最新的本科、硕士、博士、博士后论文格式(2020年新版《清华大学研究生学位论文写作指南》),获研究生院官方推荐 \link{http://yjsy.cic.tsinghua.edu.cn/docinfo/board/boarddetail.jsp?columnId=001050603&parentColumnId=0010506&itemSeq=5365}
1614
\end{itemize}
1715
\begin{figure}[htbp]
1816
\centering
@@ -30,13 +28,13 @@ \subsection{\ThuThesis 清华大学学位论文模板}
3028
\item 下载最新正式版(推荐)
3129
\begin{itemize}
3230
\item CTAN 官方 \link{http://mirrors.ctan.org/macros/latex/contrib/thuthesis.zip}
33-
\item GitHub Releases \link{https://github.com/xueruini/thuthesis/releases} 或 TUNA 镜像 \link{https://mirrors.tuna.tsinghua.edu.cn/github-release/xueruini/thuthesis/}
31+
\item GitHub Releases \link{https://github.com/tuna/thuthesis/releases} 或 TUNA 镜像 \link{https://mirrors.tuna.tsinghua.edu.cn/github-release/tuna/thuthesis/}
3432
\end{itemize}
3533
\item 下载最新开发版(高级 / 想尝鲜 / 着急的用户)
3634
\begin{itemize}
37-
\item \url{https://github.com/xueruini/thuthesis}
35+
\item \url{https://github.com/tuna/thuthesis}
3836
\item 切换到 |dev| 分支,点右边栏
39-
\href{https://github.com/xueruini/thuthesis/archive/dev.zip}%
37+
\href{https://github.com/tuna/thuthesis/archive/dev.zip}%
4038
{Download ZIP} 按钮
4139
\end{itemize}
4240
\end{itemize}
@@ -55,8 +53,8 @@ \subsection{\ThuThesis 清华大学学位论文模板}
5553
\item Windows: 文件夹空白处按Shift+鼠标右键,点击“在此处打开命令行窗口”
5654
\item 模板文档类:|make cls| 编译 |thuthesis.dtx| $\Rightarrow$
5755
|thuthesis.cls|
58-
\item 论文示例:|make thesis| 编译 |main.tex| $\Rightarrow$
59-
|main.pdf|
56+
\item 论文示例:|make thesis| 编译 |thuthesis-example.tex| $\Rightarrow$
57+
|thuthesis-example.pdf|
6058
\item 用户手册:|make doc| 编译 |thuthesis.dtx| $\Rightarrow$
6159
|thuthesis.pdf|
6260
\item 更多用法可参考附带的 |Makefile|
@@ -74,7 +72,7 @@ \subsection{\ThuThesis 清华大学学位论文模板}
7472
\begin{lstlisting}[basicstyle=\ttfamily]
7573
\documentclass[degree=master,degree-type=professional]{thuthesis}
7674
\end{lstlisting}
77-
\item[fontset] 指定字体(推荐使用 |windows|,详见 \pkg{ctex} 文档
75+
\item[fontset] 指定字体(推荐使用 |windows|,详见模板文档说明
7876
\begin{lstlisting}[basicstyle=\ttfamily]
7977
\documentclass[degree=doctor,fontset=windows]{thuthesis}
8078
\end{lstlisting}
@@ -118,7 +116,7 @@ \subsection{\ThuThesis 清华大学学位论文模板}
118116
证明 & 推论 & 例子& 练习 & 假设 & 注释 & 问题\\\bottomrule
119117
\end{tabular}
120118
\end{table}
121-
\item \ThuThesis{} 使用 \pkg{unicode-math} 进行数学输入,注意与传统方式的区别
119+
\item \ThuThesis{} 使用 \pkg{unicode-math} 进行数学输入\ref{frame:unicode-math} 页),注意与传统方式的区别
122120
\end{itemize}
123121
\end{frame}
124122

@@ -188,13 +186,13 @@ \subsection{\ThuThesis 清华大学学位论文模板}
188186
\begin{itemize}
189187
\item 常见问题
190188
\begin{itemize}
191-
\item 参考文献列表出错、缺少字体、无法编译 ...:先更新到最新版本试试
192-
\item 认真阅读文档 |thuthesis.pdf| 和使用示例 |main.pdf|
193-
\item 查看 FAQ \link{https://github.com/xueruini/thuthesis/wiki/FAQ}
189+
\item 参考文献列表出错、缺少字体、无法编译、格式不对……:先\textbf{更新到最新版本}试试
190+
\item 认真阅读文档 |thuthesis.pdf| 和使用示例 |thuthesis-example.pdf|
191+
\item 查看 FAQ \link{https://github.com/tuna/thuthesis/wiki/FAQ}
194192
\end{itemize}
195193
\item 主动提问
196194
\begin{itemize}
197-
\item GitHub Issues 提问:\link{https://github.com/xueruini/thuthesis/issues}
195+
\item GitHub Issues 提问:\link{https://github.com/tuna/thuthesis/issues}
198196
% \item \TeX @newsmth 查找或发文
199197
% \item \ThuThesis{} Google Group 发问 \link{http://groups.google.com/group/thuthesis}
200198
\end{itemize}

0 commit comments

Comments
 (0)