From f3d08b33cdf53a03393c0b92ac069f0cbbd2f17d Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Fri, 22 May 2015 16:26:40 +0200 Subject: [PATCH] =?UTF-8?q?/=20=E2=80=98pandoc/header.tex=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pandoc/header.tex | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) 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} +