Files
the-sourdough-framework/book/book.tex
cedounet 05c33a76b6 Use input figs (#123)
* Make figs includable in main document

Remove the capability to build them as standalone document but we can
include them in the main document.  It should simplify things down the
road.

* Replace tikx pics

* Remove figures compilation from makefile

No need to compile figs to pdf anymore, at least to build the books

* Delete svg figures from ebook build

* Create png for TikZ figures

    - Add export_figures back
    - Build a pdf from the the TikZ in standalone mode
    - Change the cleanup to deal with those changes
    - Remove trailing spaces..

* Replace centering by an environment

More LaTeX idomatic

* Increase clean_figures robustness

as we use temporary tex files (.tex.in) we can't run clean_figures twice in a
row

* Center TikZ figures

Because it looks better

* Remove png building

Seems to struggle on CI with \\\b or something, we don't absolutely need
it right now so let's get rid of it.

* Remove trgt_figures dependency for pdf and ebooks

This should not be needed now that we include the TikZ directly, only
needed for png generation.

* Revert "Remove png building"

This reverts commit fdd542de57.

This is now fine to add the code back, so that it can be debugged when
times come.
2023-06-27 11:07:19 +02:00

150 lines
3.1 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}
\definecolor{codeblue}{RGB}{69, 161, 248}
\definecolor{codegray}{RGB}{40, 40, 40}
\usetikzlibrary{shapes,arrows}
\tikzstyle{decision} = [diamond, draw, fill=codegray, text=white,
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=codeblue, text=white,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
% 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}
\begin{center}
\includegraphics[width=\textwidth]{images/cover-page.jpg}
Version:
\today
\end{center}
\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}