-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocument.tex
40 lines (40 loc) · 4.18 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
% This is 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 the report and article documentclass.
\usepackage[margin=1.27cm,foot=0.77cm]{geometry}
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{3}
% Change above to what you want.
\newcounter{CJK}
\setcounter{CJK}{1}
% Set CJK counter to 1 to use CJK language; 0 to not.
\newcounter{markdown}
\setcounter{markdown}{0}
% Set markdown counter to use markdown package with different options (experimental): 0 to not use; 1 for use markdown package with most pandoc and php markdown extensions; 2 for use markdown package with only simple extensions such as tex math; 3 for use markdown package without extensions; 4 to 6 for 1 to 3 but without blank before block quotes, code fences, div fences, headers, and lists; 7 to 12 for 1 to 6 but preserving tabs and ellipsis. Note that the markdown package using part of the template is designed for the 3.9.1 version, which hasn't been included in most LaTeX distributions.
\newcounter{Fonts}
\setcounter{Fonts}{1}
% Set Fonts counter to set fonts' style: 0 for default; 1 for TeX Gyre Heros as main font, TeX Gyre Termes as sans font, Tex Gyre Cursor as mono font; 2 for TeX Gyre Termes as main font, TeX Gyre Heros as sans font, Tex Gyre Cursor as mono font; 3 for TeX Gyre Heros as main font, sans font not set, Tex Gyre Cursor as mono font; 4 for TeX Gyre Termes as main font, sans font not set, Tex Gyre Cursor as mono font; 5 to 8 for 1 to 4 but without Tex Gyre Cursor as mono font.
\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 CJK 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 CJK counter is not 1 or CJKFonts counter is 0, this counter will be omitted.
\newcounter{NotoCJKFamily}
\setcounter{NotoCJKFamily}{0}
% 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 CJK 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 Chinese. If CJK counter is not 1 or CJKLanguage counter is not 0 or 1, this counter will be omitted and Arabic will be used.
\newcounter{ZhRenew}
\setcounter{ZhRenew}{0}
% Set ZhRenew counter to 1 to renew \contentsname to 目錄 and define \temtoday to be \zhtoday; 2 to renew \contentsname to 目录 and define \temtoday to be \zhtoday; 0 to not renew \contentsname and define \temtoday to be \today. If CJK counter is not 1, this counter will be omitted and \temtoday will be defined to be \today.
\input{/usr/share/latex-toolkit/template.tex}
\begin{document}
% --- Example --- %
% \title{Title}
% \author{Author}
% \date{\temtoday}
% \titletocdoc
% --- Your document goes here --- %
\end{document}