2015-05-22 14:36:14 +00:00
|
|
|
\usepackage{fancyhdr}
|
|
|
|
\usepackage{fontspec}
|
|
|
|
\usepackage{titlesec}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
|
|
|
|
\usepackage{datetime}
|
|
|
|
\usepackage[iso,english]{isodate}
|
|
|
|
|
|
|
|
% 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
|
|
|
|
|
|
|
\pagestyle{fancy}
|
|
|
|
\fancyhf{}
|
|
|
|
%\rhead{various \XeTeX}
|
2015-05-26 18:59:12 +00:00
|
|
|
\lhead{Quattrocento Sans / Encode Sans ExtraLight}
|
2015-05-22 14:36:14 +00:00
|
|
|
\rfoot{\sectionfont\tiny{printed: \isodate{\today} \currenttime \selectfont}}
|
|
|
|
|
|
|
|
%\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont}
|
|
|
|
%\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont}
|
|
|
|
|
|
|
|
\titleformat{\subsubsection}
|
2015-05-26 18:59:12 +00:00
|
|
|
{\sectionfont\Large\bfseries}
|
2015-05-22 14:36:14 +00:00
|
|
|
{\thesection}
|
|
|
|
{1em}
|
|
|
|
{\resizetitle}
|
|
|
|
|
|
|
|
\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}
|