Files
the-sourdough-framework/book/sourdough.sty
cedounet 538df0aa95 Align to hardcover book (#166)
* Align sans-serif font to printed book

- We now use Open Sans
- Also have units in text mode, looks nicer in Sans serif mode at least

See:
https://github.com/hendricius/the-sourdough-framework/pull/158#event-9914405309

* Add colours definition from the printed book

New colors taken from
https://github.com/hendricius/the-sourdough-framework/pull/158#event-9914405309
2023-08-07 22:14:27 +02:00

72 lines
1.6 KiB
TeX

\ProvidesPackage{sourdough}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{tocbasic}
\usepackage{chemformula}
\usepackage{chemfig}
\usepackage{booktabs}
\usepackage{makecell}
\usepackage{siunitx}
\usepackage{fontspec}
\renewcommand\theadfont{\bfseries}
\definecolor{codeblue}{RGB}{69, 161, 248}
\definecolor{codeblack}{RGB}{40, 40, 40}
\definecolor{maingray}{HTML}{F8F8F8}
\definecolor{hlocre}{HTML}{E5B874}
\definecolor{hlorange}{HTML}{EC7850}
\definecolor{hlyellow}{HTML}{FAE69E}
\usetikzlibrary{shapes,arrows}
\tikzstyle{decision} = [diamond, draw, fill=codeblack, 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
\setmainfont{Open Sans}
\AtBeginDocument{\sisetup{mode =text}}
\fi
% Kerning in footnotes
\usepackage{fnpct}
% References
\usepackage[backend=biber]{biblatex}
\addbibresource{references.bib}
% Clickable links in the table of contents
\usepackage[ocgcolorlinks]{hyperref}
\hypersetup{%
linktoc=all,
allcolors=codeblue
}
% 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/}
}
% Caption and figure size below images
\usepackage{caption}
\captionsetup[figure]{font=footnotesize}
\DeclareSIUnit\degF{\text{°}F}