Move breakfast recipes into a subdirectory

And create a makefile system that will build the directory and join
together the pdfs into a single document.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2016-06-25 15:23:15 -04:00
parent 2049bc97ea
commit 3635fcba59
7 changed files with 45 additions and 3 deletions

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
all:
$(MAKE) -C breakfast/
cp breakfast/breakfast.pdf cookbook.pdf
clean:
rm cookbook.pdf
cd breakfast/ && make clean

7
breakfast/0_title.tex Normal file
View File

@ -0,0 +1,7 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\documentclass{../titlepage}
\begin{document}
\setTitle{Breakfast}
\end{document}

11
breakfast/Makefile Normal file
View File

@ -0,0 +1,11 @@
SOURCES = $(sort $(wildcard *.tex))
OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES))
all:
latexmk -pdf $(SOURCES)
pdfjoin -o breakfast.pdf $(OBJECTS)
clean:
latexmk -C
rm breakfast.pdf

View File

@ -1,7 +1,7 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\documentclass{recipe}
\documentclass{../recipe}
\recipeName{Breakfast Quesadillas}
\recipeServes{1}

View File

@ -1,7 +1,7 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\documentclass{recipe}
\documentclass{../recipe}
\recipeName{Nutty Bran Flakes}
\recipeServes{6}

View File

@ -1,7 +1,7 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\documentclass{recipe}
\documentclass{../recipe}
\recipeName{Pancakes}
\recipeServes{4}

16
titlepage.cls Normal file
View File

@ -0,0 +1,16 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\ProvidesClass{section}
\LoadClass[letterpaper]{letter}
\RequirePackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
\RequirePackage{newcent}
\pagestyle{empty}
\newcommand{\setTitle}[1]
{
\vspace*{3in}
\textbf{\centering{\fontsize{44}{1}\selectfont #1}\\}
}