aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Agarwal <mohit.agarwal@sky.com>2024-12-12 18:04:34 +0000
committerMohit Agarwal <mohit.agarwal@sky.com>2024-12-12 18:04:34 +0000
commitd352671447f09659ea88a5e15d441ae59c503d4a (patch)
tree2e736261e5ffc621a139e4c8015003adf4c04644
parentaa77744a37ef3aefeb672fbff9efa49c211ff583 (diff)
Building Make system. & Minor corrections.
-rw-r--r--.gitignore1
-rw-r--r--02-01-bread-basics.md2
-rw-r--r--02-17-baking.md2
-rw-r--r--03-02-buttermilk-and-honey-whole.md4
-rw-r--r--03-03-san-fransisco-style-sourdough.md4
-rw-r--r--Makefile25
-rw-r--r--TexMakefile2
-rw-r--r--the-fresh-loaf.tex96
8 files changed, 130 insertions, 6 deletions
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}