-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocument.tex
40 lines (40 loc) · 3.46 KB
/
document.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
% document.tex of https://github.com/Willie169/LaTeX-ToolKit, licensed under either GPL-3.0-or-later or CC BY-SA 4.0-or-later.
\documentclass[a4paper,12pt]{report}
% Change it to the documentclass you want, this template is now mainly designed for report and article documentclass.
\newcounter{xeCJK}
\setcounter{xeCJK}{1}
% Set xeCJK counter to 1 to use xeCJK packageb; 0 to not use it.
\usepackage[margin=1.27cm,foot=0.77cm]{geometry}
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{3}
% Change above to what you want.
\newcounter{Fonts}
\setcounter{Fonts}{1}
% Set Fonts counter to set fonts' style: 0 for not set; 1 for TeX Gyre Heros as main font, TeX Gyre Termes as sans font, Courier as mono font; 2 for TeX Gyre Termes as main font, TeX Gyre Heros as sans font, Courier as mono font; 3 for TeX Gyre Heros as main font, sans font not set, Courier as mono font; 4 for TeX Gyre Termes as main font, sans font not set, Courier as mono font; 5 to 8 for 1 to 4 but without Courier as mono font.
\newcounter{STIXMath}
\setcounter{STIXMath}{1}
% Set STIXMath counter to set math font: 0 for not set; 1 for STIX 2 Math.
\newcounter{CJKFonts}
\setcounter{CJKFonts}{1}
% Set CJKFonts counter to set CJK fonts' style: 0 for not set; 1 for Noto Sans CJK as CJK main font, Noto Serif CJK as CJK sans font, Noto Sans Mono CJK as CJK mono font; 2 for Noto Serif CJK as CJK main font, Noto Sans CJK as CJK sans font, Noto Sans Mono CJK as CJK mono font; 3 for Noto Sans CJK as CJK main font, CJK sans font not set, Noto Sans Mono CJK as CJK mono font; 4 for Noto Serif CJK as CJK main font, CJK sans font not set, Noto Sans Mono CJK as CJK mono font; 5 to 8 for 1 to 4 but without Noto Sans Mono CJK as CJK mono font. If xeCJK counter is not 1, this counter will be omitted.
\newcounter{CJKLanguage}
\setcounter{CJKLanguage}{0}
% Set CJKLanguage counter to set CJK fonts' language: 0 for TC (Traditional Chinese Taiwan), 1 for SC (Simplified Chinese), 2 for HK (Traditional Chinese Hong Kong), 3 for JP (Japanese), 4 for KR (Korean). If either xeCJK counter is not 1 or CJKFonts counter is 0, this counter will be omitted.
\newcounter{NotoCJKFamily}
\setcounter{NotoCJKFamily}{1}
% Set NotoCJKFamily counter to set Noto CJK font families, where Lang stands for TC, SC, HK, JP, and KR, one language one family: 0 for not set; 1 for Noto Sans CJK Lang as Lang and SansLang, Noto Serif CJK as SerifLang, Noto Sans Mono CJK Lang as MonoLang; 2 for Noto Serif CJK Lang as Lang and SerifLang, Noto Sans CJK Lang as SansLang, Noto Sans Mono CJK Lang as MonoLang; 3 for Noto Sans CJK Lang as SansLang, Noto Serif CJK Lang as SerifLang, Noto Sans Mono CJK Lang as MonoLang; 4 to 6 for 1 to 3 but without Noto Sans Mono CJK Lang as MonoLang. If xeCJK counter is not 1, this counter will be omitted.
\newcounter{SectionLanguage}
\setcounter{SectionLanguage}{0}
% Set SectionLanguage counter to choose the language of the numbering for chapters (if documentclass is not article), sections, subsections, and subsubsections: 0 for Arabic, 1 for Traditional Chinese, 2 for Simplified Chinese. If xeCJK counter is not 1, this counter will be omitted and Arabic will be used.
\newcounter{ZhRenew}
\setcounter{ZhRenew}{0}
% Set ZhRenew counter to 1 to renew TOC's title to 目錄; 2 to renew TOC's title to 目录; 0 to not renew them. If xeCJK counter is not 1, this counter will be omitted.
\input{template.tex}
\begin{document}
% --- Example --- %
% \title{Title}
% \author{Willie169}
% \date{\temtoday}
% \titletocdoc
% --- Your document goes here --- %
\end{document}