summaryrefslogtreecommitdiff
path: root/Guide_Setup.tex
blob: 670876d3ba25390cb1f3c59b208f801a26c161ca (plain)
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
% !TEX root = TSG_Administrator's_Guide_SV20.11_v1.0_EN.tex


% **************************************************
% Files' Character Encoding
% **************************************************
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}


% **************************************************
% Information and Commands for Reuse
% **************************************************
\newcommand{\thesisTitle}{TSG Administrator’s Guide}
\newcommand{\thesisName}{Geedge Team}
\newcommand{\thesisSubject}{Documentation}
\newcommand{\thesisDate}{September 23, 2021}
\newcommand{\thesisVersion}{21.09}

%下面的新命令暂时没有用。
\newcommand{\thesisFirstReviewer}{Jane Doe}
\newcommand{\thesisFirstReviewerUniversity}{\protect{Clean Thesis Style University}}
\newcommand{\thesisFirstReviewerDepartment}{Department of Clean Thesis Style}

\newcommand{\thesisSecondReviewer}{John Doe}
\newcommand{\thesisSecondReviewerUniversity}{\protect{Clean Thesis Style University}}
\newcommand{\thesisSecondReviewerDepartment}{Department of Clean Thesis Style}

\newcommand{\thesisFirstSupervisor}{Jane Doe}
\newcommand{\thesisSecondSupervisor}{John Smith}

\newcommand{\thesisUniversity}{\protect{Clean Thesis Style University}}
\newcommand{\thesisUniversityDepartment}{Department of Clean Thesis Style}
\newcommand{\thesisUniversityInstitute}{Institute for Clean Thesis Dev}
\newcommand{\thesisUniversityGroup}{Clean Thesis Group (CTG)}
\newcommand{\thesisUniversityCity}{City}
\newcommand{\thesisUniversityStreetAddress}{Street address}
\newcommand{\thesisUniversityPostalCode}{Postal Code}

%新增的自定义的命令
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles


% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[english]{babel} % babel system, adjust the language of the content
\PassOptionsToPackage{% setup administrator's guide style
    figuresep=colon,%
    hangfigurecaption=false,%
    hangsection=true,%
    hangsubsection=true,%
    sansserif=false,%
    configurelistings=true,%
    colorize=full,%
    colortheme=bluemagenta,%
    configurebiblatex=true,%
    %bibsys=biber,%
    bibsys=bibtex,
    bibfile=bib-refs,%
    bibstyle=alphabetic,%
    bibsorting=nty,%
}{cleanthesis}
\usepackage{cleanthesis}

\hypersetup{% setup the hyperref-package options
    pdftitle={\thesisTitle},    %   - title (PDF meta)
    pdfsubject={\thesisSubject},%   - subject (PDF meta)
    pdfauthor={\thesisName},    %   - author (PDF meta)
    plainpages=false,           %   -
    colorlinks=false,           %   - colorize links?
    pdfborder={0 0 0},          %   -
    breaklinks=true,            %   - allow line break inside links
    bookmarksnumbered=true,     %
    bookmarksopen=true          %
}

% **************************************************
% Other Packages
% **************************************************
\usepackage{scrhack}
\usepackage{color}
\definecolor{gold}{RGB}{205,153,16}
\definecolor{linkblue}{RGB}{2,112,172}
\definecolor{darkblue}{RGB}{47,84,150}


\usepackage{amssymb}% http://ctan.org/pkg/amssymb
\usepackage{pifont}% http://ctan.org/pkg/pifont
\usepackage{wasysym}
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand{\arrowmarkr}{\ding{224}}
\newcommand{\notemark}{\textcolor{linkblue}{\ding{46}}}%
\newcommand{\warnmark}{\textcolor{linkblue}{\ding{45}}}%
\newcommand{\sixsnow}{\ding{100}}
\usepackage{enumerate}
\usepackage{enumitem}

\setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=0pt,topsep=0pt}
\setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=0pt,topsep=0pt}
\setdescription{itemsep=0pt,partopsep=0pt,parsep=0pt,topsep=0pt}

%\setlist[enumerate,1]{labelsep=1.5mm,topsep=0mm,itemsep=-0.8mm}
%\setlist[enumerate,2]{labelsep=1.5mm,topsep=-0.8mm,itemsep=-0.8mm}

%\setlist[description,1]{labelsep=1.5mm,topsep=0mm,itemsep=-0.8mm}
%\setlist[description,2]{labelsep=1.5mm,topsep=-0.8mm,itemsep=-0.8mm}

%\setlist[itemize,1]{labelsep=1.5mm,topsep=0mm,itemsep=-0.8mm}
%\setlist[itemize,2]{labelsep=1.5mm,topsep=-0.8mm,itemsep=-0.8mm}

%\setlist[enumerate,2]{label=(\alph*).,font=\textup, leftmargin=7mm,labelsep=1.5mm,topsep=-0.8mm,itemsep=-0.8mm}
% \setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}
% \setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}
% \setdescription{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}


% \usepackage[table,xcdraw]{xcolor}
% If you use beamer only pass "xcolor=table" option, i.e. \documentclass[xcolor=table]{beamer}
% \usepackage[normalem]{ulem}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{booktabs}
%\usepackage[table]{xcolor}
\usepackage{color}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{array}
\usepackage{shortvrb}
\usepackage{graphicx}
\usepackage{transparent}
\usepackage{import}
%\usepackage{amsmath}

\newcommand{\includesvg}[2]{%
\def\svgwidth{#1}%
\import{i}{#2.pdf_tex}%
}

\newcommand{\vlinewhite}{\color{white}\vrule width 0.5pt}
\newcommand{\vlineblack}{\color{black}\vrule width 0.5pt}
%\newcommand{\thickhline}{%
%    \noalign {\ifnum 0=`}\fi \hrule height 1pt
%    \futurelet \reserved@a \@xhline
%}

\usepackage{scrlayer-scrpage}

%% Page number for odd (right) pages
\renewcommand{\ctfooterrightpagenumber}{%
%\sectionmark	
    \ctfooterline%
    \hspace*{10pt}%
    \begin{minipage}[b]{1.5cm}%
        \pagemark %
    \end{minipage}%
}

%% Page number for even (left) pages
\renewcommand{\ctfooterleftpagenumber}{%
    \begin{minipage}[b]{1.5cm}%
        \raggedleft\pagemark%
    \end{minipage}%
    \hspace*{10pt}%
    \ctfooterline%
	\hspace*{0.75cm}%
    TSG Administrator's Guide	
}
\renewcommand{\chaptermark}[1]{%
    \markboth{%
        \ctfontfootertext
        % use \@chapapp instead of \chaptername to avoid
        % 'Chapter A Appendix ...', thanks to @farbverlust (issue #47)
		{\color{ctcolorfootermark}\textbf{\@chapapp \thechapter}}%
        \hspace{.25cm}%
        \protect\begin{minipage}[t]{.65\textwidth}%
            #1%
        \protect\end{minipage}%
    }{}%
}

%\renewcommand\tableofcontents{%
%      \addcontentsline{toc}{chapter}{DAFTAR ISI}\cleardoublepage\null\vspace{-12pt}\hfill\textbf{\large\contentsname}\hfill\null\par
%      \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
%      \vspace{30pt}
%      \@starttoc{toc}%
%    }




\lefoot[%   > plain
    \ctfooterleftpagenumber%
]{%         > srcheadings
    \ctfooterleftpagenumber%
    %\chaptermark
}
\rofoot[%   > plain
    \ctfooterrightpagenumber%
]{%         > srcheadings
    TSG Administrator's Guide
    \hspace*{0.75cm}%
    \ctfooterrightpagenumber%
}

%----------------------------------------------------------------------------------------
%	TOC, LOF & LOT
%----------------------------------------------------------------------------------------
%\usepackage{btxdockit}
%\RequirePackage{tocbasic}%
\usepackage{tocbasic}
% Show an entry for the TOC in the TOC
\setuptoc{toc}{totoc}%

% Choose the levels in table of contents
\setcounter{tocdepth}{\subsectiontocdepth}

% Define the style for toc entries
\DeclareTOCStyleEntries[indent=0em,numwidth=2em,dynnumwidth=yes,pagenumberwidth=2.1em]{tocline}{figure,table}
\DeclareTOCStyleEntries[dynnumwidth=yes]{tocline}{subsubsection,subsection,section,chapter,part}
\DeclareTOCStyleEntries[pagenumberwidth=2.5em]{tocline}{chapter,part}
\DeclareTOCStyleEntries[pagenumberwidth=2.1em]{tocline}{subsubsection,subsection,section}


%\RequirePackage{etoc} % Required to insert local tables of contents
%\usepackage{etoc}
%\newcounter{margintocdepth} % Set the depth of the margintoc
%\setcounter{margintocdepth}{\subsectiontocdepth}

%\newlength{\mtocshift} % Length of the vertical offset used for margin tocs
%\setlength{\mtocshift}{-52\vscale}

% Command to print a table of contents in the margin
%\usepackage[backend=bibtex]{biblatex}
%\bibliography{bib-refs.bib}
%\usepackage[backend = biber, style = nwsuafref, utf8, sorting = centy]{biblatex}  
%\addbibresource{bib-refs.bib}  %\bibliography{ref}