PointsOfOrder/preamble.tex.txt

153 lines
5.6 KiB
Plaintext
Raw Normal View History

2021-02-11 20:48:16 +11:00
\makeatletter
2021-02-03 01:20:41 +11:00
% Typographic improvements
\usepackage{microtype}
\frenchspacing
2021-02-03 01:20:41 +11:00
% Disable numbering of body headings
\setcounter{secnumdepth}{0}
% Styling
\def\sphinxcrossref#1{#1} % no italicised references
\def\sphinxstyleindexentry#1{#1} % no monospaced index entries
\def\sphinxstyleindexextra#1{ (#1)} % no italics
2021-02-20 22:31:52 +11:00
\def\sphinxtablecontinued#1{{\sffamily\footnotesize #1}} % add footnotesize
\def\pageautorefname{p.}
2021-02-03 01:20:41 +11:00
2021-02-11 20:48:16 +11:00
% Allow line breaks in URLs
\usepackage{seqsplit}
\protected\def\sphinxurl#1{{%
\sphinxunactivateextrasandspace %
\endlinechar\m@ne\everyeof{}%
\scantokens{\href{#1}{\seqsplit{#1}}}%
}}
2021-02-03 01:20:41 +11:00
% Fonts
\setmainfont{EB Garamond}
%\setsansfont{IBM Plex Sans}[BoldFont={* Medium},BoldItalicFont={* Medium Italic}]
\setsansfont{Source Sans Pro}[BoldFont={* Semibold},BoldItalicFont={* Semibold Italic}]
\usepackage{newunicodechar}\newfontface{\libserif}{Liberation Serif}\newunicodechar{¶}{{\libserif ¶\hspace{0.1ex}}} % use filled in ¶
2021-02-10 17:34:38 +11:00
% Colours/formatting by output mode
\newlength{\trimwidth}\setlength{\trimwidth}{148mm}
\newlength{\trimheight}\setlength{\trimheight}{210mm}
\newlength{\stdmargin}\setlength{\stdmargin}{15mm}
\newlength{\bottomadd}\setlength{\bottomadd}{5mm}
\newlength{\gutteradd}\setlength{\gutteradd}{4mm}
\ifpolulu
2021-02-10 17:34:38 +11:00
\definecolor{TitleColor}{cmyk}{0,0,0,1}
\definecolor{InnerLinkColor}{cmyk}{0,0,0,1}
\definecolor{OuterLinkColor}{cmyk}{0,0,0,1}
\geometry{paperwidth=\trimwidth,paperheight=\trimheight,margin=\stdmargin,bottom=\dimexpr\stdmargin+\bottomadd\relax,inner=\dimexpr\stdmargin+\gutteradd\relax} % Add bleed, gutter, etc.
%\usepackage[center,cam,noinfo]{crop}
\usepackage[center,noinfo]{crop} % No crop marks for Lulu
\CROP@size{\dimexpr\trimwidth+0.25in\relax}{\dimexpr\trimheight+0.25in\relax}
%\CROP@size{210mm}{297mm}
2021-02-10 17:34:38 +11:00
\else
\geometry{paperwidth=\dimexpr\trimwidth-\gutteradd\relax,paperheight=\trimheight,margin=\stdmargin,bottom=\dimexpr\stdmargin+\bottomadd\relax} % Deduct 4mm from width to account for gutter
2021-02-10 17:34:38 +11:00
\fi
% Heading style
\titleformat{\section}{\Large\raggedright\py@HeaderFamily}{\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor} % Add \raggedright
2021-02-03 01:20:41 +11:00
% Footnote style
\usepackage[hang,bottom]{footmisc}
\setlength{\footnotemargin}{0.4cm}
% Header/footer style
\fancypagestyle{normal}{
\fancyhead[RO,LE]{}
\fancyfoot[RO]{{\footnotesize\py@HeaderFamily\nouppercase{\leftmark} | \thepage}}
\fancyfoot[LE]{{\footnotesize\py@HeaderFamily\thepage}}
%\renewcommand{\headrulewidth}{0.4pt}
}
% Back of title page content
\newcommand{\sphinxbackoftitlepage}{
2021-02-10 17:34:38 +11:00
\begingroup\footnotesize
Edition 0.1 first published 2018 \\
Edition 0.2 first published 2021 \\
Edition 0.4 first published 2021
2021-02-03 01:20:41 +11:00
2021-02-10 17:34:38 +11:00
\vspace{1cm}
\sphinxhref{https://yingtongli.me/pointsoforder}{https://yingtongli.me/pointsoforder}
\vspace{\fill}
2021-02-03 01:20:41 +11:00
Copyright © 2021 Lee Yingtong Li. You may use this book, at your option, under either of the following licences:
{\parskip=0pt\begin{itemize}
\item the \sphinxhref{https://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons Attribution-ShareAlike 4.0 International licence}
\item the \sphinxhref{https://www.gnu.org/licenses/fdl-1.3.en.html}{GNU Free Documentation License, version 1.3}
\end{itemize}}
Authored in \sphinxhref{https://www.sphinx-doc.org/}{Sphinx} and typeset using \LaTeX{} in EB Garamond 11pt and Source Sans Pro
2021-02-10 17:34:38 +11:00
\ifpolulu
2021-02-10 17:34:38 +11:00
Cover image courtesy of Breather Products Inc., licensed under the \sphinxhref{https://creativecommons.org/publicdomain/zero/1.0/}{Creative Commons CC0 1.0 Universal Public Domain Dedication}
Printed by Lulu Press
%Printed in Australia by Finsbury Green for Lulu Press
2021-02-10 17:34:38 +11:00
\fi
\vspace{0.5cm}
\includegraphics[trim=18mm 10mm 18mm 12mm,clip,height=12mm]{NLA_PDS}
2021-02-03 01:20:41 +11:00
\endgroup
}
% Fix list spacing in tables
\usepackage{enumitem}
2021-02-20 22:31:52 +11:00
\def\table@fixitemize{\setlist[itemize]{leftmargin=2.5ex,before=\vspace*{-1.7em},after=\vspace*{-1.3em}}}
\let\orig@sphinxattablestart\sphinxattablestart
\def\sphinxattablestart{\orig@sphinxattablestart\table@fixitemize}
\let\orig@sphinxatlongtablestart\sphinxatlongtablestart
\def\sphinxatlongtablestart{\orig@sphinxatlongtablestart\table@fixitemize}
2021-02-03 01:20:41 +11:00
% Override Sphinx title page
\usepackage[iso]{isodate}
\renewcommand{\sphinxmaketitle}{%
\let\sphinxrestorepageanchorsetting\relax
\ifHy@pageanchor\def\sphinxrestorepageanchorsetting{\Hy@pageanchortrue}\fi
\hypersetup{pageanchor=false}% avoid duplicate destination warnings
\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\noindent\rule{\textwidth}{1pt}\par
\begingroup % for PDF information dictionary
\def\endgraf{ }\def\and{\& }%
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
2021-02-10 17:34:38 +11:00
\hypersetup{pdfauthor={\@author}, pdftitle={Points of Order}}%
2021-02-03 01:20:41 +11:00
\endgroup
\begin{flushright}%
\sphinxlogo
\py@HeaderFamily
2021-02-10 17:34:38 +11:00
{\Huge Points of Order \\\vspace{0.2cm}\normalfont\sffamily\LARGE Meeting procedure in Australia and the UK\vspace{0.5cm} \par} % ADD SUBHEADING
2021-02-03 01:20:41 +11:00
{\itshape\LARGE \py@release\releaseinfo \par}
\vfill
{\LARGE
\begin{tabular}[t]{c}
\@author
\end{tabular}\kern-\tabcolsep
\par}
\vfill\vfill
{\large
\today \par % USE ISO DATE
\vfill
\py@authoraddress \par
}%
\end{flushright}%\par
\@thanks
\end{titlepage}%
\setcounter{footnote}{0}%
\let\thanks\relax\let\maketitle\relax
%\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
\clearpage
\ifdefined\sphinxbackoftitlepage\sphinxbackoftitlepage\fi
\if@openright\cleardoublepage\else\clearpage\fi
\sphinxrestorepageanchorsetting
}
2021-02-11 20:48:16 +11:00
2021-02-03 01:20:41 +11:00
\makeatother