Skip to content

Commit

Permalink
WIP example of an MWE for flowcharts
Browse files Browse the repository at this point in the history
  • Loading branch information
cedounet committed Jan 3, 2025
1 parent d6f8569 commit c89a442
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions book/mwe.tex
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit c89a442

Please sign in to comment.