% !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}  
