diff --git a/pandoc/header.tex b/pandoc/header.tex index 7b4a5ff..e528302 100644 --- a/pandoc/header.tex +++ b/pandoc/header.tex @@ -6,13 +6,20 @@ \usepackage{datetime} \usepackage[iso,english]{isodate} + +\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} @@ -25,13 +32,20 @@ \rfoot{\sectionfont\tiny{printed: \isodate{\today} \currenttime \selectfont}} -\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont} -\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont} - - -%\titleformat*{\subsubsection}{\sectionfont\resizebox{40pt}{!}\selectfont} +%\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont} %\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont} -%\titleformat{\subsection}{\sectionfont\selectfont}{\resizebox{10cm}{!}]{\thesection}}{1em}{} -%\titleformat{\subsubsection}{\sectionfont\selectfont}{\resizebox{10cm}{!}]{\thesection}}{1em}{} +\titleformat{\subsubsection} + {\Large\bfseries} + {\thesection} + {1em} + {\resizetitle} + + +\titleformat{\subsection} + {\Large\bfseries} + {\thesection} + {1em} + {\resizetitle} +