From 3635fcba596e63cb4b2fd8d329fce0f0c284061c Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sat, 25 Jun 2016 15:23:15 -0400 Subject: [PATCH] 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 --- Makefile | 8 ++++++++ breakfast/0_title.tex | 7 +++++++ breakfast/Makefile | 11 +++++++++++ .../breakfast_quesadillas.tex | 2 +- .../nutty_bran_flakes.tex | 2 +- pancakes.tex => breakfast/pancakes.tex | 2 +- titlepage.cls | 16 ++++++++++++++++ 7 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 Makefile create mode 100644 breakfast/0_title.tex create mode 100644 breakfast/Makefile rename breakfast_quesadillas.tex => breakfast/breakfast_quesadillas.tex (98%) rename nutty_bran_flakes.tex => breakfast/nutty_bran_flakes.tex (98%) rename pancakes.tex => breakfast/pancakes.tex (98%) create mode 100644 titlepage.cls diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2248fba --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ + +all: + $(MAKE) -C breakfast/ + cp breakfast/breakfast.pdf cookbook.pdf + +clean: + rm cookbook.pdf + cd breakfast/ && make clean diff --git a/breakfast/0_title.tex b/breakfast/0_title.tex new file mode 100644 index 0000000..99173cf --- /dev/null +++ b/breakfast/0_title.tex @@ -0,0 +1,7 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../titlepage} +\begin{document} +\setTitle{Breakfast} +\end{document} diff --git a/breakfast/Makefile b/breakfast/Makefile new file mode 100644 index 0000000..c471a41 --- /dev/null +++ b/breakfast/Makefile @@ -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 diff --git a/breakfast_quesadillas.tex b/breakfast/breakfast_quesadillas.tex similarity index 98% rename from breakfast_quesadillas.tex rename to breakfast/breakfast_quesadillas.tex index 6cd094a..96472db 100644 --- a/breakfast_quesadillas.tex +++ b/breakfast/breakfast_quesadillas.tex @@ -1,7 +1,7 @@ % % Copyright 2016 (c) Anna Schumaker. % -\documentclass{recipe} +\documentclass{../recipe} \recipeName{Breakfast Quesadillas} \recipeServes{1} diff --git a/nutty_bran_flakes.tex b/breakfast/nutty_bran_flakes.tex similarity index 98% rename from nutty_bran_flakes.tex rename to breakfast/nutty_bran_flakes.tex index f39f3ca..f087edc 100644 --- a/nutty_bran_flakes.tex +++ b/breakfast/nutty_bran_flakes.tex @@ -1,7 +1,7 @@ % % Copyright 2016 (c) Anna Schumaker. % -\documentclass{recipe} +\documentclass{../recipe} \recipeName{Nutty Bran Flakes} \recipeServes{6} diff --git a/pancakes.tex b/breakfast/pancakes.tex similarity index 98% rename from pancakes.tex rename to breakfast/pancakes.tex index c9d73f4..f1598ef 100644 --- a/pancakes.tex +++ b/breakfast/pancakes.tex @@ -1,7 +1,7 @@ % % Copyright 2016 (c) Anna Schumaker. % -\documentclass{recipe} +\documentclass{../recipe} \recipeName{Pancakes} \recipeServes{4} diff --git a/titlepage.cls b/titlepage.cls new file mode 100644 index 0000000..f19b8c4 --- /dev/null +++ b/titlepage.cls @@ -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}\\} +}