This repository was archived by the owner on Mar 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader_1.tex
88 lines (69 loc) · 2.24 KB
/
header_1.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\usepackage{graphicx}
\usepackage{url}
\usepackage{sectsty, fancyhdr}
\usepackage{enumitem}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{fancyvrb,newverbs,xcolor}
\usepackage[margin=0.8in,a4paper]{geometry}
\usepackage{amssymb}
\usepackage{xeCJK}
% \usepackage[UTF8]{ctex}
% \usepackage{titlesec}
% \setcounter{secnumdepth}{5}
% https://stackoverflow.com/questions/25037357/pandoc-long-tablerows-in-markdown-pdf-documents-do-not-get-linewrap
% For space after level 4 heading - paragraphs
% https://github.com/jgm/pandoc/wiki/Pandoc-Tricks#level-4-and-5-headings-on-their-own-line-in-latex
\let\originalparagraph\paragraph
\let\originalsubparagraph\subparagraph
\renewcommand{\paragraph}[1]%
{\originalparagraph{#1}\hfill}
\renewcommand{\subparagraph}[1]%
{\originalsubparagraph{#1}\hfill}
\definecolor{sec}{RGB}{1, 57, 89}
\definecolor{subsec}{RGB}{0,73,114}
\definecolor{subsubsec}{RGB}{14,91,135}
\definecolor{para}{RGB}{24,101,125}
\definecolor{subpara}{RGB}{24,101,125}
\setmainfont{Arial}
\setsansfont{Arial}
% \setmonofont{}
% \setmathfont{}
% \sectionfont{\underline\Huge\bfseries\clearpage}
% remove underline
\sectionfont{\color{sec}\Huge\bfseries\underline\clearpage}
\subsectionfont{\color{subsec}\LARGE\underline\clearpage}
\subsubsectionfont{\color{subsubsec}\Large\clearpage}
\paragraphfont{\color{para}\large}
\subparagraphfont{\color{subpara}\large}
\definecolor{Light}{HTML}{F4F4F4}
\let\oldtexttt\texttt
\renewcommand{\texttt}[1]{
\colorbox{Light}{\oldtexttt{#1}}
}
% Set bullets
\setlistdepth{9}
\setlist[itemize,1]{label=$\bullet$}
\setlist[itemize,2]{label=$\circ$}
\setlist[itemize,3]{label=$\blacksquare$}
\setlist[itemize,4]{label=$\bullet$}
\setlist[itemize,5]{label=$\circ$}
\setlist[itemize,6]{label=$\blacksquare$}
\setlist[itemize,7]{label=$\bullet$}
\setlist[itemize,8]{label=$\circ$}
\setlist[itemize,9]{label=$\blacksquare$}
\renewlist{itemize}{itemize}{9}
\hypersetup{
pdftitle={Automated Metrics Release},
pdfauthor={CHAOSS},
pdfsubject={Metrics Release MM-YY},
pdfkeywords={CHAOSS, pandoc,automation,metrics}
}
\pagestyle{fancy}
% to remove UPPERCASE from header
\makeatletter
\renewcommand{\sectionmark}[1]{%
\markboth{\ifnum \c@secnumdepth>\z@
\thesection\hskip 1em\relax
\fi #1}{}}
\makeatother