100 lines
3.3 KiB
Plaintext
100 lines
3.3 KiB
Plaintext
% Typographic improvements
|
|
\usepackage{microtype}
|
|
|
|
%\usepackage[pdfencoding=pdfdoc]{hyperref}
|
|
|
|
% 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
|
|
|
|
% 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 ¶
|
|
|
|
% Footnote style
|
|
\usepackage[hang,bottom]{footmisc}
|
|
\setlength{\footnotemargin}{0.4cm}
|
|
|
|
% Header/footer style
|
|
\makeatletter
|
|
\fancypagestyle{normal}{
|
|
\fancyhead[RO,LE]{}
|
|
\fancyfoot[RO]{{\footnotesize\py@HeaderFamily\nouppercase{\leftmark} | \thepage}}
|
|
\fancyfoot[LE]{{\footnotesize\py@HeaderFamily\thepage}}
|
|
%\renewcommand{\headrulewidth}{0.4pt}
|
|
}
|
|
\makeatother
|
|
|
|
% Back of title page content
|
|
\newcommand{\sphinxbackoftitlepage}{
|
|
\begingroup\scriptsize
|
|
Edition 0.2 first published 2021
|
|
|
|
\vspace*{\fill}
|
|
|
|
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}}
|
|
|
|
Typeset using \LaTeX{} in EB Garamond 12pt
|
|
\endgroup
|
|
}
|
|
|
|
% Fix list spacing in tables
|
|
\usepackage{enumitem}
|
|
\def\sphinxattablestart{\par\vskip\dimexpr\sphinxtablepre\relax\setlist[itemize]{leftmargin=2.5ex,before=\vspace*{-1.3em},after=\vspace*{-1.3em}}}
|
|
|
|
% Override Sphinx title page
|
|
\usepackage[iso]{isodate}
|
|
\makeatletter
|
|
\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
|
|
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
|
\endgroup
|
|
\begin{flushright}%
|
|
\sphinxlogo
|
|
\py@HeaderFamily
|
|
{\Huge \@title \\\vspace{0.2cm}\normalfont\sffamily\LARGE Meeting procedure in Australia and the UK\vspace{0.5cm} \par} % ADD SUBHEADING
|
|
{\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
|
|
}
|
|
\makeatother
|