mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-12-04 08:34:24 -06:00
* Use sans-serif font in TikZ, match font for units I think this makes the diagrams easier to read and also makes unit not looking weird in the HTML version. Not sure why match ain't the default * Use palatino for main serif font - Andale mono - SourceSansPro for non-serif * Disable Andale mono font for typwriter It is not available on GitHub CI. Need to find an alternative.
80 lines
2.0 KiB
TeX
80 lines
2.0 KiB
TeX
\ProvidesPackage{sourdough}
|
|
\usepackage{blindtext}
|
|
\usepackage{graphicx}
|
|
\usepackage{booktabs}
|
|
\usepackage{longtable}
|
|
\usepackage{tocbasic}
|
|
\usepackage{chemformula}
|
|
\usepackage{chemfig}
|
|
\usepackage{booktabs}
|
|
\usepackage{makecell}
|
|
\usepackage[mode=match, reset-text-family=false]{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}
|
|
|
|
\tikzstyle{every picture}+=[font=\small\sffamily]
|
|
\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
|
|
\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX}
|
|
% Fonts for accessibility
|
|
\ifdefined\isaccessible
|
|
\setmainfont{Open Sans}
|
|
\AtBeginDocument{\sisetup{mode =text}}
|
|
\else
|
|
\setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc.
|
|
\setsansfont{Open Sans}[Scale=MatchLowercase]
|
|
% TODO not available on github CI
|
|
% \setmonofont{Andale Mono}[Scale=MatchLowercase]
|
|
\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}
|