From d352671447f09659ea88a5e15d441ae59c503d4a Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Thu, 12 Dec 2024 18:04:34 +0000 Subject: Building Make system. & Minor corrections. --- .gitignore | 1 + 02-01-bread-basics.md | 2 +- 02-17-baking.md | 2 +- 03-02-buttermilk-and-honey-whole.md | 4 +- 03-03-san-fransisco-style-sourdough.md | 4 +- Makefile | 25 ++++++++- TexMakefile | 2 + the-fresh-loaf.tex | 96 ++++++++++++++++++++++++++++++++++ 8 files changed, 130 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 TexMakefile create mode 100644 the-fresh-loaf.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f8bb43 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*pdf diff --git a/02-01-bread-basics.md b/02-01-bread-basics.md index e1ea384..1ef3783 100644 --- a/02-01-bread-basics.md +++ b/02-01-bread-basics.md @@ -3,6 +3,6 @@ You can jump right in and start baking without knowing much about the ingredients or how the process works, but if you'll take the time to learn a little bit about the baking process you'll find baking to be -much more rewarding. You'll also be equipped to modify recipes to fit +much more rewarding. You'll also be equipped to modify recipes to fit your taste if you first understand how those modifications will change the results. diff --git a/02-17-baking.md b/02-17-baking.md index 10ba4ec..f59bb81 100644 --- a/02-17-baking.md +++ b/02-17-baking.md @@ -70,7 +70,7 @@ the bread can finish in a dry oven. The covered cooker captures the steam given off by the dough, and so mimics a wood-fired brick oven. Unfortunately, this method only works -for round loaves (though Sassafras also makes a 14 ½ x 5 ⅛ inch +for round loaves (though Sassafras also makes a 14 1/2 x 5 1/8 inch clay cooker which works for batards). Breads should cool for about an hour on a rack (or something else that diff --git a/03-02-buttermilk-and-honey-whole.md b/03-02-buttermilk-and-honey-whole.md index 35692a2..1f1cb61 100644 --- a/03-02-buttermilk-and-honey-whole.md +++ b/03-02-buttermilk-and-honey-whole.md @@ -1,4 +1,6 @@ -## Buttermilk Honey Whole Wheat Sandwich Bread -- _JMonkey_ +## Buttermilk Honey Whole Wheat Sandwich Bread + +***_JMonkey_*** > This is one of my favorite breads. The honey adds a touch of > sweetness while the buttermilk gives it a slightly tangy flavor. diff --git a/03-03-san-fransisco-style-sourdough.md b/03-03-san-fransisco-style-sourdough.md index abf5440..06c9a24 100644 --- a/03-03-san-fransisco-style-sourdough.md +++ b/03-03-san-fransisco-style-sourdough.md @@ -1,4 +1,6 @@ -### San Francisco Style Sourdough -- _ JMonkey_ +## San Francisco Style Sourdough + +***JMonkey*** I don't make white breads very often, but I make this one every so often to satisfy the occasional, overpowering hankering. If you like, diff --git a/Makefile b/Makefile index 25da930..088fd81 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,25 @@ SOURCES=$(wildcard *.md) +TARGETS=$(SOURCES:%.md=target/%.tex) -the-fresh-loaf.pdf: $(SOURCES) - pandoc --pdf-engine=xelatex $^ -o $@ +default: target/ \ + target/Makefile \ + target/the-fresh-loaf.tex \ + $(TARGETS) include.tex + +target/: + mkdir target +target/the-fresh-loaf.tex: the-fresh-loaf.tex + cp -ruv the-fresh-loaf.tex target/ +target/Makefile: TexMakefile + cp -ruv TexMakefile target/Makefile +target/%.tex: %.md + pandoc --top-level-division=chapter $^ -o $@ +include.tex: + rm target/include.tex + touch target/include.tex + for f in $(SOURCES:%.md=%);\ + do echo \\include{$$f} >> target/include.tex;\ + done + +clean: + rm -rf target/ diff --git a/TexMakefile b/TexMakefile new file mode 100644 index 0000000..14201f9 --- /dev/null +++ b/TexMakefile @@ -0,0 +1,2 @@ +target/the-fresh-loaf.pdf: + pdflatex the-fresh-loaf.tex diff --git a/the-fresh-loaf.tex b/the-fresh-loaf.tex new file mode 100644 index 0000000..d3948d4 --- /dev/null +++ b/the-fresh-loaf.tex @@ -0,0 +1,96 @@ +\documentclass[twoside]{book} + +\usepackage[a4paper, outer=1.625in, inner=1.625in, top=1.5in, bottom=1.5in]{geometry} + +\usepackage{ebgaramond-maths} +\usepackage[scale = 0.78]{plex-mono} +\usepackage[T1]{fontenc} + +\usepackage[final]{pdfpages} +\usepackage{booktabs} +\usepackage{microtype} +\usepackage{hanging} % for bib indentations +\usepackage{ragged2e} +\usepackage{blindtext} + +\usepackage[hyphens]{url} +\usepackage{hyperref} +\usepackage{xcolor} +\hypersetup{ + colorlinks, + linkcolor={red!50!black}, + citecolor={blue!50!black}, + urlcolor={blue!80!black} +} +\urlstyle{tt} + + +\def \hangingindent {3em} +\def \credgap {15pt} +\def \ackgap {10pt} + +\interfootnotelinepenalty=10000 + +\title{Aporia XXIV} +\author{The University of St Andrews Philosophy Society} +\date{June 2024} + +\usepackage[raggedright]{titlesec} +\usepackage{fancyhdr} + +\renewcommand\thesection{\arabic{section}} + +\titleformat{\chapter}[display]{\sffamily\LARGE\bfseries\raggedright}{}{0em}{} +\titlespacing*{\chapter}{0pt}{-50pt}{40pt} +\titleformat{\section}{\large\bfseries\raggedright}{{\sf\thesection}}{2em}{} +\titleformat{\subsection}{\bfseries}{{\sf\thesubsection}}{1.5em}{} + +\pagestyle{fancy} +\renewcommand{\chaptermark}[1]{% +\markboth{#1}{}} +\renewcommand{\headrulewidth}{0pt} % remove lines as well +\fancyhead{} +\fancyfoot{} +\fancyhead[RO]{\thepage} +\fancyhead[LE]{\thepage} +\fancyhead[RE]{\small\sc\itshape\leftmark} +\fancyhead[LO]{\small\sc The Fresh Loaf} + +\usepackage{suffix} + +\newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}} +\WithSuffix\newcommand\chapterauthor*[1]{\printchapterauthor{#1}} + +\makeatletter +\newcommand{\printchapterauthor}[1]{% + {\parindent0pt\vspace*{-25pt}% + \linespread{1.1}\large\scshape#1% + \par\nobreak\vspace*{35pt}} + \@afterheading% +} +\newcommand{\authortoc}[1]{% + \addtocontents{toc}{\vskip-00pt}% + \addtocontents{toc}{% + \protect\contentsline{chapter}% + {\hskip1.3em\mdseries\scshape\protect\normalsize#1}{}{}} + \addtocontents{toc}{\vskip5pt}% +} +\makeatother + +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + +\def \refsection {\newpage\section*{Bibliography}} + +\counterwithin{figure}{section} +\renewcommand\thefigure{\arabic{figure}} + +\begin{document} +%includepdf{APORIA IV COVER.pdf} +\frontmatter +\tableofcontents +\mainmatter +\input{ include } +\backmatter +%\input{coverrear} +\end{document} -- cgit v1.2.3