recipe makefile, README, carrots
This commit is contained in:
parent
61b7e23dab
commit
bd391f7a90
13
README.md
13
README.md
|
@ -4,17 +4,19 @@ E-book publishing projects for generating fiction works, zines, documentation, a
|
||||||
|
|
||||||
Write in markdown, compile beautiful pdfs, and ebooks.
|
Write in markdown, compile beautiful pdfs, and ebooks.
|
||||||
|
|
||||||
|
> to compile, create and edit markdown files in the project `inputs/` subdirectory and then just type `make` in the project directory.
|
||||||
|
|
||||||
|
|
||||||
TEMPLATES:
|
TEMPLATES:
|
||||||
----------
|
----------
|
||||||
|
|
||||||
* ebook-story book: short stories, fiction works, verse.
|
* ebook-story book: short stories, fiction works, verse.
|
||||||
|
* recipes: standalone recipe pages, should be able to include in book template in the future.
|
||||||
* Upcoming:
|
* Upcoming:
|
||||||
+ seriousbook: nonfiction, technical documentation, etc.
|
+ seriousbook: nonfiction, technical documentation, etc.
|
||||||
* pamphlets: short informative works.
|
* pamphlets: short informative works.
|
||||||
* flier-sm-poster: small poster (A4/letter) fliers or posters
|
* flier-sm-poster: small poster (A4/letter) fliers or posters
|
||||||
* menu: menus for foods, goods, services
|
* menu: menus for foods, goods, services
|
||||||
* recipes: standalone recipes, should be able to include in book template in the future.
|
|
||||||
|
|
||||||
REQUIREMENTS:
|
REQUIREMENTS:
|
||||||
-------------
|
-------------
|
||||||
|
@ -24,6 +26,7 @@ REQUIREMENTS:
|
||||||
* Lipsum package to compile demos
|
* Lipsum package to compile demos
|
||||||
* perl5 (req'd by texlive-full)
|
* perl5 (req'd by texlive-full)
|
||||||
* pandoc
|
* pandoc
|
||||||
|
* gnu make
|
||||||
|
|
||||||
|
|
||||||
DEVELOPMENT MAP:
|
DEVELOPMENT MAP:
|
||||||
|
@ -33,7 +36,7 @@ DEVELOPMENT MAP:
|
||||||
* Identify templates for inclusion in project
|
* Identify templates for inclusion in project
|
||||||
* Modify templates to follow editing conventions (markdown \includes, etc.)
|
* Modify templates to follow editing conventions (markdown \includes, etc.)
|
||||||
* get them working & then use githooks to streamline testing during development.
|
* get them working & then use githooks to streamline testing during development.
|
||||||
* Begin work on makefiles `[/]`
|
* Begin work on makefiles `[X]`
|
||||||
* Begin work on other output formats using pandoc - ebook formats, html formats(will need css magics)
|
* Begin work on other output formats using pandoc - ebook formats, html formats(will need css magics)
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,6 +44,8 @@ TODO:
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* Define auxfiles directory and succeed in compiling pdf without losing aux files.
|
* Define auxfiles directory and succeed in compiling pdf without losing aux files.
|
||||||
* Makefile framework for projects
|
* Makefile framework for projects `[STARTED]`
|
||||||
* Change script md2pdf.sh to move .tex files to a different directory to compile from, isolate "*.md" files
|
* ~~Change script md2pdf.sh to move .tex files to a different directory to compile from, isolate "*.md" files~~
|
||||||
|
* Makefiles - standardize the kinds of targets, document default targets, etc.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
#Makefile for individual recipe pdfs using pandoc
|
||||||
|
|
||||||
|
#some variable declarations
|
||||||
|
# Directories for document inputs (markdown) and outputs (pdf) and pandoc template (tex)
|
||||||
|
INPUTDIR = inputs
|
||||||
|
OUTPUTDIR = outputs
|
||||||
|
TEMPLATEDIR = templates
|
||||||
|
|
||||||
|
# Program and option variables
|
||||||
|
CC = pandoc
|
||||||
|
PANTEMPLATE = $(TEMPLATEDIR)/recipe.tex#specifying template as variable for easier changing of templates.
|
||||||
|
PANDOCFLAGS = -s --template="$(PANTEMPLATE)"
|
||||||
|
|
||||||
|
MDS = $(wildcard $(INPUTDIR)/*.md)
|
||||||
|
PDFS = $(patsubst %.md,$(OUTPUTDIR)/%.pdf,$(notdir $(wildcard $(INPUTDIR)/*.md)))
|
||||||
|
#PDFS = $(patsubst $(INPUTDIR),$(OUTPUTDIR),$(PDFS))
|
||||||
|
#PDFS = $(wildcard $(OUTPUTDIR)/*.pdf)
|
||||||
|
#PDFS = $(patsubst %.md,%.md.pdf,$(MDS))
|
||||||
|
#PDFS = $(patsubst %.md,%.md.pdf,$(wildcard $(INPUTDIR)/*.md))
|
||||||
|
#
|
||||||
|
.PHONY : clean test
|
||||||
|
|
||||||
|
default : $(PDFS)
|
||||||
|
#default : $(OUTPUTDIR)/%.pdf
|
||||||
|
|
||||||
|
|
||||||
|
$(PDFS) : $(MDS)
|
||||||
|
#$(OUTPUTDIR)/%.pdf : $(MDS)
|
||||||
|
# $(CC) $(PANDOCFLAGS) $< -o $(OUTPUTDIR)/$@ #
|
||||||
|
$(CC) $(PANDOCFLAGS) $< -o $@ #
|
||||||
|
# echo $(CC) $(PANDOCFLAGS) $< -o $@ #
|
||||||
|
|
||||||
|
|
||||||
|
all : clean $(PDFS)
|
||||||
|
|
||||||
|
clean :
|
||||||
|
@rm -f $(PDFS)
|
||||||
|
|
||||||
|
|
||||||
|
test :
|
||||||
|
echo $(CC) $(PANDOCFLAGS) $< -o $(OUTPUTDIR)/$@ #
|
||||||
|
echo $(MDS)
|
||||||
|
echo $(PDFS)
|
|
@ -0,0 +1,51 @@
|
||||||
|
# TildePublishingUnlimited
|
||||||
|
|
||||||
|
E-book publishing projects for generating fiction works, zines, documentation, and other things.
|
||||||
|
|
||||||
|
Write in markdown, compile beautiful pdfs, and ebooks.
|
||||||
|
|
||||||
|
> to compile, create and edit markdown files in the project `inputs/` subdirectory and then just type `make` in the project directory.
|
||||||
|
|
||||||
|
|
||||||
|
## recipe single pages
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Standalone recipe pages, should be able to include in book template in the future.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
Write recipes according to the markdown examples provided in the `inputs/` subdirectory. Run `make` in this directory to compile PDFs which will go into the `outputs/` subdirectory.
|
||||||
|
|
||||||
|
> recipe markdown example
|
||||||
|
```
|
||||||
|
---
|
||||||
|
author: Jacques Pepinillo
|
||||||
|
foodname: Banans Nut Sweetbreads
|
||||||
|
prelim:
|
||||||
|
- Begin by preheating the oven to 350 $^o$F
|
||||||
|
- ...
|
||||||
|
ingredient:
|
||||||
|
- 1/2 cup unsalted butter (room temp)
|
||||||
|
- ...
|
||||||
|
- 1/2 small brain
|
||||||
|
---
|
||||||
|
|
||||||
|
The recipe source files are written in markdown with a yaml block header. The author,
|
||||||
|
name(foodname), preparation steps(prelim), and ingredients list are listed in the
|
||||||
|
yaml block above. Instructional prose is the main body of each recipe.
|
||||||
|
\medskip
|
||||||
|
|
||||||
|
Step by step instructions, making sure to refer to prelim and
|
||||||
|
ingredients listed above. Separate paragraphs with this:
|
||||||
|
\medskip
|
||||||
|
|
||||||
|
The latex template (modified pandoc template) can be modified to change formatting
|
||||||
|
and spacing, and to specify new variables that can then be included in the yaml block
|
||||||
|
above.
|
||||||
|
|
||||||
|
Page dimensions and some other variables can be set by modifying the flags that are
|
||||||
|
passed to `pandoc` in the Makefile.
|
||||||
|
|
||||||
|
|
||||||
|
```
|
Binary file not shown.
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
pandoc -s --template="recipe.tex" -o banans.md.pdf banans.md
|
|
||||||
# adapt to process each markdown file into a standalone pdf recipe page by using $1 in script, and find to run script on each?
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
author: Jacques Pepin
|
author: Jacques Pepinillo
|
||||||
foodname: Banans Nut Sweetbreads
|
foodname: Banans Nut Sweetbreads
|
||||||
prelim:
|
prelim:
|
||||||
- Begin by preheating the oven to 350 $^o$F
|
- Begin by preheating the oven to 350 $^o$F
|
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
author: Cookie Baker
|
||||||
|
foodname: Carrot Cake
|
||||||
|
prelim:
|
||||||
|
- Begin by preheating the oven to 350 $^o$F
|
||||||
|
- chill 1lb of peeled carrots
|
||||||
|
- allow eggs to reach room temp
|
||||||
|
- allow butter to reach room temp
|
||||||
|
ingredient:
|
||||||
|
- 1/2 cup unsalted butter (room temp)
|
||||||
|
- 1 cup sugar
|
||||||
|
- 3 large eggs room temp
|
||||||
|
- 1 1/2 cup all purpose flour
|
||||||
|
- 1 teaspoon baking soda
|
||||||
|
- 1/2 teaspoon baking powder
|
||||||
|
- 1 teaspoon salt
|
||||||
|
- 1 pound of peeled carrots
|
||||||
|
- 1/2 cup of sour cream
|
||||||
|
- 1 teaspoon vanilla
|
||||||
|
---
|
||||||
|
|
||||||
|
Begin by grating chilled peeled carrots over a large cutting board. Place grated carrots in a large collander to drain for 1 hour. Reserve liquid.
|
||||||
|
\medskip
|
||||||
|
|
||||||
|
In a large bowl, mix together cream, butter, and sugar at medium speed. Add in eggs one at a time until well incorporated.
|
||||||
|
\medskip
|
||||||
|
|
||||||
|
In two sperate bowls, sift, and then mix the remaining dry ingredients in one bowl, and all the remaining wet ingredients into the other.
|
||||||
|
\medskip
|
||||||
|
Begin mixing contents from dry and wet bowls into the butter and sugar mixture. Make sure to alternate starting with contents from the bowl containing dry ingredients. Do not over-mix. Fold in drained grated carrots.
|
||||||
|
|
||||||
|
\medskip
|
||||||
|
|
||||||
|
Place dough in a buttered, 9x5 loaf pan and bake for 1-1.25 hours.
|
||||||
|
\medskip
|
||||||
|
Enoy chilled carrot liquor drink.
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue