forked from alick/thulib-latex-talk
-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathdefinitions.tex
65 lines (55 loc) · 1.89 KB
/
definitions.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
% !TeX encoding = UTF-8
% !TeX program = latexmk
% !TeX root = latex-talk.tex
% fonts
% For tipa to work.
\defaultfontfeatures[TeX Gyre Termes]
{
Extension = .otf ,
UprightFont = texgyretermes-regular,
BoldFont = texgyretermes-bold,
ItalicFont = texgyretermes-italic,
BoldItalicFont = texgyretermes-bolditalic,
}
\newfontfamily\useTIPAfont{TeX Gyre Termes}
\newfontfamily{\firamath}{FiraMath-Regular.otf}
% xeCJK conf setup
\renewcommand\CJKfamilydefault{\CJKsfdefault} % for slides
\IfFontExistsTF{Noto Sans CJK SC}{
\setCJKsansfont{Noto Sans CJK SC}
}{}
\IfFontExistsTF{Noto Sans Mono CJK SC}{
\setCJKmonofont{Noto Sans Mono CJK SC}
}{}
% commands
\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{\TLVersion}{2024}
\newcommand{\ThuThesis}{\textsc{ThuThesis}\xspace}
\newcommand{\ThuThesisVersion}{7.5.2}
\newcommand{\ThuThesisDate}{2024/07/01}
\newcommand{\ThuThesisGuideVersion}{2023年3月(2023年9月有更新)}
\newcommand{\ThuThesisRepo}{tuna/thuthesis}
\newcommand{\ThuThesisLink}{https://github.com/\ThuThesisRepo}
\newcommand{\surveylink}{\relax}
\newcommand{\thudownloadlink}{https://stu.cs.tsinghua.edu.cn/\~harry/latex-talk.pdf}
\newcommand{\githubrepo}{tuna/thulib-latex-talk}
\newcommand{\githublink}{https://github.com/\githubrepo}
\newcommand{\printcurrenttoc}{
\begin{frame}<beamer>{目录}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}