futurist-fieldguide/pandoc/header.tex

55 lines
1.3 KiB
TeX
Raw Normal View History

\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{datetime}
\usepackage[iso,english]{isodate}
2015-05-29 10:15:51 +00:00
% page geometry
\usepackage{geometry}
\geometry{
a4paper,
total={210mm,297mm},
left=20mm,
right=10mm,
top=20mm,
bottom=20mm,
marginparwidth=20mm,
}
% 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}
%\newfontfamily\sectionfont{Roboto Light}
2015-05-26 18:59:12 +00:00
\newfontfamily\sectionfont{Encode Sans ExtraLight}
\pagestyle{fancy}
\fancyhf{}
%\rhead{various \XeTeX}
2015-05-27 08:10:45 +00:00
%\lhead{Quattrocento Sans / Encode Sans ExtraLight}
\rfoot{\sectionfont\tiny{printed: \isodate{\today} \currenttime \selectfont}}
%\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont}
2015-05-29 10:33:21 +00:00
\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont}
\titleformat{\subsection}
2015-05-26 18:59:12 +00:00
{\sectionfont\Large\bfseries}
{\thesection}
{1em}
{\resizetitle}
2015-05-29 10:33:21 +00:00