mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-25 20:33:59 -06:00
Komascript (#148)
* Add chemfig package Somhow forgot it in chemical equation commit 8004497b * Change links colors to codeblue Closes https://github.com/hendricius/the-sourdough-framework/issues/142 * Use KOMA-Script and twosided printing Because it looks better. Also gets rid of headers/footers on empty pages * Fix tex4ebook and komascript clash See https://github.com/michal-h21/tex4ebook/issues/110 * Factor out packages into a sty file Separates style details out of the main file, now that we start having more and more style-related settings. * Remove parskip Not needed with Koma-script * Remove tocloft package Not needed with koma-script * Use tocbasics instead of floats to please kpmascript internal algorithm * Add a bit more breathing space in ToC so they are not stuck together at 11.11 onwards...
This commit is contained in:
70
book/sourdough.sty
Normal file
70
book/sourdough.sty
Normal file
@@ -0,0 +1,70 @@
|
||||
\ProvidesPackage{sourdough}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{blindtext}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{longtable}
|
||||
\usepackage{tocbasic}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{chemformula}
|
||||
\usepackage{chemfig}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{makecell}
|
||||
\usepackage{siunitx}
|
||||
|
||||
\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[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}
|
||||
|
||||
\RedeclareSectionCommand[
|
||||
tocindent=0pt,
|
||||
tocnumwidth=35pt,
|
||||
]{section}
|
||||
Reference in New Issue
Block a user