2015-05-22 14:36:14 +00:00
|
|
|
\usepackage{fontspec}
|
2015-06-02 12:48:22 +00:00
|
|
|
\usepackage[pagestyles]{titlesec}
|
2015-05-22 14:36:14 +00:00
|
|
|
\usepackage{graphicx}
|
|
|
|
|
|
|
|
\usepackage{datetime}
|
2015-05-29 11:23:46 +00:00
|
|
|
\usepackage[iso,english]{isodate}
|
|
|
|
|
2015-05-29 10:15:51 +00:00
|
|
|
% page geometry
|
|
|
|
\usepackage{geometry}
|
|
|
|
\geometry{
|
|
|
|
a4paper,
|
|
|
|
total={210mm,297mm},
|
2015-05-29 10:48:28 +00:00
|
|
|
left=30mm,
|
|
|
|
right=30mm,
|
2015-05-29 10:15:51 +00:00
|
|
|
top=20mm,
|
|
|
|
bottom=20mm,
|
|
|
|
}
|
|
|
|
|
2015-05-22 14:36:14 +00:00
|
|
|
% http://tex.stackexchange.com/questions/246174/dynamic-title-size-using-titlesec
|
|
|
|
\newcommand{\resizetitle}[1]{\resizebox{\sectionwidth}{!}{#1}}
|
|
|
|
\newlength{\sectionwidth}
|
|
|
|
\AtBeginDocument{%
|
|
|
|
\setlength{\sectionwidth}{0.7\textwidth}%
|
|
|
|
}
|
|
|
|
|
|
|
|
% unix shell date
|
|
|
|
%\immediate\write18{date >\jobname.date}
|
|
|
|
|
|
|
|
% no page numbers
|
|
|
|
\pagenumbering{gobble}
|
|
|
|
|
|
|
|
\setmainfont{Quattrocento Sans}
|
|
|
|
%\newfontfamily\sectionfont{Share-ItalicOSF}
|
|
|
|
%\newfontfamily\sectionfont{Josefin Slab}
|
2015-05-26 18:02:38 +00:00
|
|
|
%\newfontfamily\sectionfont{Roboto Light}
|
2015-05-26 18:59:12 +00:00
|
|
|
\newfontfamily\sectionfont{Encode Sans ExtraLight}
|
2015-05-22 14:36:14 +00:00
|
|
|
|
2015-06-02 12:48:22 +00:00
|
|
|
%\pagestyle{fancy}
|
|
|
|
%\fancyhf{}
|
|
|
|
%\rhead{\sectionfont\small$title-meta$\selectfont}
|
2015-05-27 08:10:45 +00:00
|
|
|
%\lhead{Quattrocento Sans / Encode Sans ExtraLight}
|
2015-06-02 12:48:22 +00:00
|
|
|
%\rfoot{\sectionfont\small{printed: \isodate{\today} \currenttime \selectfont}}
|
|
|
|
|
|
|
|
% convert header to titleps - http://www.tex-tipografia.com/titleps_fancyhdr.html
|
|
|
|
\newpagestyle{main}[\small]{
|
|
|
|
\setheadrule{.55pt}%
|
2015-06-02 12:53:20 +00:00
|
|
|
\sethead{}{}{\subsectiontitle}
|
2015-06-02 12:48:22 +00:00
|
|
|
\setfoot{}{}{\sectionfont\small{printed: \isodate{\today} \currenttime \selectfont}}
|
|
|
|
}
|
|
|
|
|
|
|
|
\pagestyle{main}
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-22 14:36:14 +00:00
|
|
|
|
|
|
|
%\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont}
|
2015-05-29 10:33:21 +00:00
|
|
|
\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont}
|
2015-05-22 14:36:14 +00:00
|
|
|
|
|
|
|
\titleformat{\subsection}
|
2015-05-26 18:59:12 +00:00
|
|
|
{\sectionfont\Large\bfseries}
|
2015-05-22 14:36:14 +00:00
|
|
|
{\thesection}
|
|
|
|
{1em}
|
2015-05-26 18:02:38 +00:00
|
|
|
{\resizetitle}
|
2015-05-29 11:23:46 +00:00
|
|
|
|
|
|
|
% url & hyperlink formatting
|
|
|
|
%\DeclareUrlCommand\url{}
|
2015-05-29 11:28:47 +00:00
|
|
|
|
|
|
|
% urls as footnotes
|
|
|
|
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
|