This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
/
latex-talk.tex
220 lines (178 loc) · 6.1 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
\documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169,fontset=none]{ctexbeamer}
% Author: alick<[email protected]>
% Author: justin <[email protected]>
% Author: Harry 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.
\ctexset{
fontset = fandol,
punct = kaiming
}
\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{listingsutf8}
\usepackage{xspace}
\usepackage{amsmath}
\usepackage{calligra}
\usepackage{cclicenses} % CC symbols
\usepackage{fontspec}
%\usepackage[UTF8]{ctex}
\usepackage{hologo}
\usepackage{colortbl}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{hyperxmp}
\usepackage{booktabs}
\usepackage{tipa}
\usepackage[normalem]{ulem}
\usepackage{stackengine}
\hypersetup{
pdfauthor={Harry Chen, Justin Wong, Alick Zhao},
pdfcopyright={Copyright (C) 2015-2018 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/},
}
% 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
%\punctstyle{kaiming}
\renewcommand\CJKfamilydefault{\CJKsfdefault} % for slides
%\setCJKsansfont{WenQuanYi Micro Hei}
%\setCJKmonofont{WenQuanYi Micro Hei Mono}
\renewcommand{\TeX}{\hologo{TeX}}
\renewcommand{\LaTeX}{\hologo{LaTeX}}
\newcommand{\BibTeX}{\hologo{BibTeX}}
\newcommand{\XeTeX}{\hologo{XeTeX}}
\newcommand{\pdfTeX}{\hologo{pdfTeX}}
\renewcommand{\CTeX}{C\TeX}
\newcommand{\MiKTeX}{\hologo{MiKTeX}}
\newcommand{\MacTeX}{Mac\hologo{TeX}}
\newcommand{\beamer}{\textsc{beamer}}
\def\TeXLive{\TeX{} Live\xspace}
\let\TL=\TeXLive
\newcommand{\ThuThesis}{\textsc{ThuThesis}\xspace}
% 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}}
% For debugging.
% \includeonlyframes{current}
% \includeonly{introduction}
\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,
}
\title
{如何使用 \LaTeX 排版论文}
\author[陈晟祺] % (optional, use only with lots of authors)
{陈晟祺\\ \texttt{[email protected]}}
\institute{清华大学 TUNA 协会}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.
\date[图书馆专题培训讲座] % (optional)
{2018 年 11 月}
\subject{LaTeX, paper, 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}
}
% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:
%\beamerdefaultoverlayspecification{<+->}
%\hypersetup{
%pdfpagemode=FullScreen,
%}
\logo{\includegraphics[height=.15\textheight]{libicon.pdf}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{目录}
\tableofcontents
% You might wish to add the option [pausesections]
\end{frame}
% Since this a solution template for a generic talk, very little can
% be said about how it should be structured. However, the talk length
% of between 15min and 45min and the theme suggest that you stick to
% the following rules:
% - Exactly two or three sections (other than the summary).
% - At *most* three subsections per section.
% - Talk about 30s to 2min per frame. So there should be between about
% 15 and 30 frames, all told.
\include{introduction}
\include{basis}
\include{thuthesis}
\include{summary}
\section*{附录}
\begin{frame}
\begin{itemize}
\item 本幻灯片
\begin{itemize}
\item \url{https://github.com/tuna/thulib-latex-talk}
\item \url{https://www.overleaf.com/read/bdynvrzpqmwq}
% \item Overleaf 版本有只包含第一章
\end{itemize}
\item 本幻灯片基于:
\begin{itemize}
\item \url{http://github.com/alick/fad-texlive-talk}
\item \ThuThesis{}使用向导 v3.0
\end{itemize}
\item 许可证:CC BY-SA 4.0 Unported \cc\ccby\ccsa
\end{itemize}
\end{frame}
\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: