forked from tuna/thulib-latex-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
latex-talk.tex
226 lines (190 loc) · 6.57 KB
/
latex-talk.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
% !TeX encoding = UTF-8
% !TeX program = latexmk
\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=ubuntu]{ctexbeamer}
% Author: alick<[email protected]>
% Author: justin <[email protected]>
% Author: Shengqi Chen <[email protected]>
% This file is modified from a solution template for:
% - Giving a talk on some subject.
% - The talk is between 15min and 45min long.
% - Style is ornate.
% Copyright 2004 by Till Tantau <[email protected]>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright
% notice.
\usepackage{tikz}
\graphicspath{{fig/}}
\mode<presentation>
{
\usetheme{material}
\renewcommand{\MaterialIcon}{tuna.pdf}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent=5}
\setbeamercolor*{structure}{fg=primaryD}
\setbeamertemplate{itemize item}{\raise1.25pt\hbox{\tikz\draw[fill=fg] (0,0) circle (.3ex);}}
\setbeamertemplate{itemize subitem}{\color{fg}\tiny\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleright$}}
\setbeamertemplate{itemize subsubitem}{\raise2.5pt\hbox{\tikz\draw[fill=fg] (0,0) rectangle (.7ex, .2ex);}}
\setlength\leftmargini{1.4em}
\setlength\leftmarginii{1.4em}
\setlength\leftmarginiii{1.4em}
\setbeamersize{description width=0.24cm}
}
\usepackage{mflogo} % for \MF, \MP
\usepackage{graphicx}
\usepackage{xspace}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{calligra}
\usepackage{fontspec}
\usepackage{ccicons}
\usepackage{hologo}
\usepackage{colortbl}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{hyperxmp}
\usepackage{booktabs}
\usepackage{qrcode}
\usepackage{listings}
\usepackage{tipa}
\usepackage{xpinyin}
\usepackage{multicol}
\usepackage{datetime2}
\usepackage[normalem]{ulem}
\usepackage{fontawesome}
\usepackage{hyperref}
\pdfstringdefDisableCommands{
\let\\\relax
\let\quad\relax
\let\hspace\@gobble
}
% From thuthesis user guide
\makeatletter
\def\psRotation#1(#2,#3)#4{%
\rput{#1}(#2,#3){%
\psellipticarc[linewidth=.4pt]{->}(0,-0.1)(0.6,0.15){120}{70}
\ifdim#1pt>\z@\rput[l]{*0}(0.675,0){#4}\else\rput[l](0.675,0){#4}\fi
}%
}
\makeatother
% For tipa to work.
\newfontfamily\useTIPAfont{Times New Roman}
% xeCJK conf setup
\renewcommand\CJKfamilydefault{\CJKsfdefault} % for slides
\setCJKsansfont{Noto Sans CJK SC}
\setCJKmonofont{Noto Sans Mono CJK SC}
\renewcommand{\TeX}{\hologo{TeX}}
\renewcommand{\LaTeX}{\hologo{LaTeX}}
\newcommand{\BibTeX}{\hologo{BibTeX}}
\newcommand{\XeTeX}{\hologo{XeTeX}}
\newcommand{\pdfTeX}{\hologo{pdfTeX}}
\newcommand{\LuaTeX}{\hologo{LuaTeX}}
\renewcommand{\CTeX}{C\TeX}
\newcommand{\MiKTeX}{\hologo{MiKTeX}}
\newcommand{\MacTeX}{Mac\hologo{TeX}}
\newcommand{\beamer}{\textsc{beamer}}
\newcommand{\XeLaTeX}{\hologo{Xe}\kern-.13em\LaTeX{}}
\newcommand{\pdfLaTeX}{pdf\LaTeX{}}
\newcommand{\LuaLaTeX}{Lua\LaTeX{}}
\def\TeXLive{\TeX{} Live\xspace}
\let\TL=\TeXLive
\newcommand{\ThuThesis}{\textsc{ThuThesis}\xspace}
\newcommand{\ThuThesisVersion}{7.2.2}
\newcommand{\ThuThesisDate}{2021/4/3}
\newcommand\link[1]{\href{#1}{\faLink}}
\newcommand\pkg[1]{\texttt{#1}}
% From thuthesis user guide.
\def\cmd#1{\texttt{\color{DarkBlue}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{DarkBlue}\footnotesize #1}}
\def\cmdxmp#1#2#3{\small{\texttt{\color{DarkBlue}$\backslash$#1}\{#2\}\hspace{1em}\\ $\Rightarrow$\hspace{1em} {#3}\par\vskip1em}}
\lstset{
language=[LaTeX]TeX,
basicstyle=\ttfamily\footnotesize,
tabsize=2,
keywordstyle=\bfseries\ttfamily\color{primaryD},
commentstyle=\sl\ttfamily\color[RGB]{100,100,100},
stringstyle=\ttfamily\color[RGB]{50,50,50},
extendedchars=true,
breaklines=true,
}
\lstdefinestyle{style@inline}{
basicstyle = \ttfamily,
keepspaces = true
}
\lstMakeShortInline[style=style@inline]|
\title{如何使用 \LaTeX 排版论文}
\author[陈晟祺]{\vspace{1em} 陈晟祺\\ \texttt{[email protected]}}
\institute{清华大学 TUNA 协会}
\date[清华大学图书馆培训讲座]{\the\year 年 \the\month 月}
\subject{LaTeX, 论文排版, ThuThesis}
% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
\AtBeginSubsection[]
{
\begin{frame}<beamer>{目录}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\hypersetup{
pdfsubject = {清华大学图书馆培训讲座},
pdfauthor = {Shengqi Chen, Justin Wong, Alick Zhao},
pdfcopyright = {Copyright (C) 2015-\the\year by Alick Zhao, Justin Wong and Shengqi Chen. Licensed under CC-BY-SA 4.0. Some rights reserved.},
pdflicenseurl = {http://creativecommons.org/licenses/by-sa/4.0/},
unicode = true,
psdextra = true,
pdfdisplaydoctitle = true
}
\logo{\includegraphics[height=.15\textheight]{libicon.pdf}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{关于}
\begin{columns}[c]
\begin{column}{.7\textwidth}
\begin{itemize}
\item 最后更新:\texttt{\DTMnow}
\item 本幻灯片源码:
\begin{itemize}
\item \url{https://github.com/tuna/thulib-latex-talk}
\end{itemize}
\item 本幻灯片参考:
\begin{itemize}
\item \url{http://github.com/alick/fad-texlive-talk}
\item \url{https://github.com/stone-zeng/latex-talk}
\item \ThuThesis{} 使用示例文档 v\ThuThesisVersion
\end{itemize}
\item 本幻灯片下载(实时更新):
\begin{itemize}
\item GitHub Releases \link{https://github.com/tuna/thulib-latex-talk/releases}
\item 校内镜像 \link{https://stu.cs.tsinghua.edu.cn/\~harry/latex-talk.pdf}
\end{itemize}
\item 许可证:CC BY-SA 4.0 Unported \ccbysa
\end{itemize}
\end{column}
\begin{column}{.3\textwidth}
\qrcode[hyperlink, height=4cm]{https://stu.cs.tsinghua.edu.cn/\~harry/latex-talk.pdf}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{目录}
\tableofcontents
% You might wish to add the option [pausesections]
\end{frame}
\include{introduction}
\include{basis}
\include{thesis}
\include{summary}
\begin{frame}
\begin{center}
{\Huge\calligra Thank you!}
\end{center}
\end{frame}
\end{document}
%%% vim: set ts=2 sts=2 sw=2 isk+=\: et tw=80 cc=+1 formatoptions+=mM: