From c89a442c23b99764b553473dd17a9c5885db5735 Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 3 Jan 2025 08:30:37 +0000 Subject: [PATCH] WIP example of an MWE for flowcharts --- book/mwe.tex | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 book/mwe.tex diff --git a/book/mwe.tex b/book/mwe.tex new file mode 100644 index 0000000..df44c1a --- /dev/null +++ b/book/mwe.tex @@ -0,0 +1,49 @@ +\documentclass[paper=a4, twoside=false, fontsize=12pt, parskip=half, + bibliography=totoc, listof=totoc]{scrbook} + +% General packages +\usepackage{pgfplots} +\usepackage{fontspec} +\usepackage[mode=match, reset-text-family=false]{siunitx} +\usepackage{fontspec} +\usepackage{calc} +\input{colors.tex} +% Define flowcharts macros independently so we can build them as png files +% for the website or something. This is supported in the makefile +\input{figures/flowcharts_tikz.tex} +% Fonts +\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX} +% Define Semi-bold +\DeclareRobustCommand\sbseries{\fontseries{sb}\selectfont} +% Fonts for accessibility +\ifdefined\isaccessible + \setmainfont{Open Sans}[ + Scale=MatchLowercase] +\else + \setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc. + % TODO not available on github CI + % \setmonofont{Andale Mono}[Scale=MatchLowercase] +\fi +% Opens Sans in both case.. +\setsansfont{Open Sans}[ + Scale=MatchLowercase, + FontFace = {sb}{it}{* Semibold Italic}, + FontFace = {sb}{n}{*-semibold}] +\usepackage{layouts} + +\newcommand{\printsizes}{ + Width: \printinunitsof{in}\prntlen{\textwidth}in \\ + Height: \printinunitsof{in}\prntlen{\textheight}in +} + +\begin{document} +\begin{figure}[!htb] + \centering + \input{figures/fig-starter-process.tex} + \caption[Dough strength over time with kneading]{A schematic visualization + of gluten development in sourdoughs with different kneading techniques. + A combination of techniques can be utilized to achieve maximum dough + strength.}% + \label{fig:dough-strength-sourdough} +\end{figure} +\end{document}