Files
the-sourdough-framework/book/book.tex
cedounet ca43ef0bd9 Improve typography (#120)
* Add unbreakable space before a reference or a citation

avoids ref to be put on next line or page...

* Add unbreakable space between I and verb

* Remove spacing before footnotes

Also moved it before the final sentence dots in many cases... might need
a review of what is best.  But this is a safe default choice from an
esthetic point of view.

* Improve footnotes and punctuations

Reverse order/kerning especially with sans-serif version.

* Remove manual enumerate

* Fix wording in a citation.

Reads better that way and is shorter.

* Use emph instead of italics

1) Markup semantic not style
2) Will deal with various level of empahasis
3) Was a mix of \it and \textit

* Fix usage of quotes

Also replaced some of then by \emph as it is (IMHO) more visually
pleasant.

* Captitalize before reference

* Correct dashes length

see here:
https://www.merriam-webster.com/words-at-play/em-dash-en-dash-how-to-use

* Remove space before label and homogenize caption

Apparently it can create a wrong reference, if notthing else shuts
texcheck up and cost nothing... so let's do it.

While at it adding a dot at the end of each caption.

* Add missing empty line before signature in preface

* Add a static checker target to makefile

Shall help prevent adding mistakes in new versions
2023-06-12 09:12:22 +02:00

140 lines
2.7 KiB
TeX

\documentclass[a4paper, 12pt]{book}
% General packages
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage{filecontents}
\usepackage{longtable}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{tocloft}
\usepackage{tex4ebook}
\usepackage{chemformula}
\usepackage{booktabs}
\usepackage{makecell}
\renewcommand\theadfont{\bfseries}
% Fonts for accessibility
\ifdefined\isaccessible
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\fi
% Kerning in footnotes
\usepackage{fnpct}
% References
\usepackage[backend=biber]{biblatex}
\addbibresource{references.bib}
% Clickable links in the table of contents
\usepackage[hidelinks]{hyperref}
\hypersetup{
linktoc=all
allcolors=black
}
% Folders where to search for images
\graphicspath{
{images/}
{troubleshooting/}
{sourdough-starter/}
{troubleshooting/crumb-structures/}
{history/}
{images/external/}
{baking/}
{wheat-sourdough/}
{wheat-sourdough/shaping/}
{non-wheat-sourdough/}
}
% Layout rules
\interfootnotelinepenalty=10000
\advance\cftsecnumwidth 0.5em\relax
\advance\cftsubsecindent 0.5em\relax
\advance\cftsubsecnumwidth 0.5em\relax
% Space between paragraphs
\usepackage[skip=5pt plus1pt, indent=0pt]{parskip}
% Caption and figure size below images
\usepackage{caption}
\captionsetup[figure]{font=footnotesize}
% Basic attributes
\author{Hendrik Kleinwächter}
\title{The Sourdough Framework}
\begin{document}
% Title page
\begin{titlepage}
\centering
\includegraphics[width=\textwidth]{images/cover-page.jpg}
Version:
\today
\end{titlepage}
\frontmatter
\tableofcontents
\chapter{Foreword}
\input{intro/foreword}
\chapter{Preface}
\input{intro/preface}
\chapter{Acknowledgements}
\input{intro/acknowledgements}
\mainmatter
\chapter{The history of sourdough}
\input{history/sourdough-history}
\chapter{How sourdough works}
\input{basics/how-sourdough-works}
\chapter{Making a sourdough starter}
\input{sourdough-starter/sourdough-starter}
\chapter{Sourdough starter types}
\input{sourdough-starter/sourdough-starter-types}
\chapter{Flour types}
\input{flour-types/flour-types}
\chapter{Bread types}
\input{bread-types/bread-types}
\chapter{Wheat sourdough}%
\label{chapter:wheat-sourdough}
\input{wheat-sourdough/wheat-sourdough}
\chapter{Non wheat sourdough}%
\label{chapter:non-wheat-sourdough}
\input{non-wheat-sourdough/non-wheat-sourdough}
\chapter{Baking}%
\label{chapter:baking}
\input{baking/baking}
\chapter{Storing bread}%
\label{chapter:storing-bread}
\input{storing-bread/storing-bread}
\chapter{Troubleshooting}
\input{troubleshooting/crumb-structures/crumb-structures}
\input{troubleshooting/misc}
\printbibliography
\end{document}