forked from tels7ar/resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tex
30 lines (25 loc) · 927 Bytes
/
header.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
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{tgpagella}
\ifxetex
\usepackage{xeCJK}
\setCJKmainfont{WenQuanYi Zen Hei}
%\setmainfont[Mapping=tex-text]{TeX Gyre Pagella}
\fi
\usepackage{titlesec}
\titleformat{\section}{\huge\bfseries}{\thesection}{1em}{}
\titlespacing{\section}{0pt}{-2em}{1em}
\titleformat{\subsection}{\large\bfseries\MakeUppercase}{\thesubsection}{1em}{}
%\usepackage{multicol}
\pagestyle{empty}
\hyphenation{Media-Wiki}
\renewcommand{\labelitemi}{}
\renewcommand{\labelitemii}{\raise .5ex\hbox{\tiny$\blacktriangleright$}}
% from http://tex.stackexchange.com/a/29796/16139
\newsavebox{\zerobox}
\newenvironment{nospace}
{\par\edef\theprevdepth{\the\prevdepth}\nointerlineskip
\setbox\zerobox=\vtop to 0pt\bgroup
\hrule height0pt\kern\dimexpr\baselineskip-\topskip\relax
}
{\par\vss\egroup\ht\zerobox=0pt \wd\zerobox=0pt \dp\zerobox=0pt
\box\zerobox}