From 84c546ba33b98c07bd1d89f7363f9e6e2e80723d Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 20 Feb 2021 22:33:46 +1100 Subject: [PATCH] Reduce font size to 11pt Reduce paper size to A5 Increase margins French spacing --- conf.py | 2 +- preamble.tex.txt | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/conf.py b/conf.py index 7aedb02..a949c96 100644 --- a/conf.py +++ b/conf.py @@ -83,7 +83,7 @@ latex_elements = { #'geometry': r'\usepackage[paperwidth=5.5in,paperheight=9in,margin=0.5in,bottom=0.75in,inner=0.5in]{geometry}', 'sphinxsetup': r'AtStartFootnote={},OuterLinkColor={rgb}{0.208,0.374,0.486}', 'papersize': 'a4paper', - 'pointsize': '12pt', + 'pointsize': '11pt', 'releasename': 'Edition', } latex_additional_files = ['pass-options.tex.txt', 'preamble.tex.txt', 'NLA_PDS.eps'] diff --git a/preamble.tex.txt b/preamble.tex.txt index 58b0a36..bf5da76 100644 --- a/preamble.tex.txt +++ b/preamble.tex.txt @@ -3,6 +3,8 @@ % Typographic improvements \usepackage{microtype} +\frenchspacing + % Disable numbering of body headings \setcounter{secnumdepth}{0} @@ -27,15 +29,23 @@ \usepackage{newunicodechar}\newfontface{\libserif}{Liberation Serif}\newunicodechar{¶}{{\libserif ¶\hspace{0.1ex}}} % use filled in ¶ % 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} \ifpoprint \definecolor{TitleColor}{cmyk}{0,0,0,1} \definecolor{InnerLinkColor}{cmyk}{0,0,0,1} \definecolor{OuterLinkColor}{cmyk}{0,0,0,1} - \geometry{paperwidth=6in,paperheight=9in,margin=0.5in,bottom=0.75in,inner=0.625in} % Add bleed, gutter, etc. - %\usepackage[width=6.25truein,height=9.25truein,center,cam,noinfo]{crop} - \usepackage[width=6.25truein,height=9.25truein,center,noinfo]{crop} % No crop marks for Lulu + \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} \else - \geometry{paperwidth=5.875in,paperheight=9in,margin=0.5in,bottom=0.75in,inner=0.5in} % Deduct 0.125in from width to account for gutter + \geometry{paperwidth=\dimexpr\trimwidth-\gutteradd\relax,paperheight=\trimheight,margin=\stdmargin,bottom=\dimexpr\stdmargin+\bottomadd\relax} % Deduct 4mm from width to account for gutter \fi % Footnote style @@ -68,7 +78,7 @@ \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 12pt and Source Sans Pro + Authored in \sphinxhref{https://www.sphinx-doc.org/}{Sphinx} and typeset using \LaTeX{} in EB Garamond 11pt and Source Sans Pro \ifpoprint 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}