The MakeCookbook Bundle Make a Cookbook Using LATEX Terrence P. Murphy Rosalie A. D’Amico December 2, 2018 Contents I Introduction 4 1 About 4 2 Preliminaries 4 2.1 Requirements ............................................. 4 2.1.1 Compiler ........................................... 4 2.1.2 Fonts ............................................. 4 2.2 License ................................................. 4 2.3 Contact Information / Feedback .................................. 5 2.4 Version Information / Change History ............................... 5 2.5 The LATEX Community / StackExchange .............................. 5 3 Installing makecookbook 5 4 How This Document is Organized 6 II Managing/Organizing Your Cookbook Files 7 III Elements of a Book/Cookbook 8 1 Elements of a Book 8 2 Elements of a Cookbook 8 IV Elements of a Book – the Details 9 1 Terminology 9 2 Trim Size and Margins 9 3 Headers and Footers 10 4 Chapter Title Formatting 11 1 5 Odds and Ends 12 5.1 Color .................................................. 12 5.2 Drop Cap ............................................... 12 5.3 Images/Photos ............................................ 13 6 Front Matter, Main Matter and Back Matter 14 6.1 Introduction .............................................. 14 6.2 Front Matter ............................................. 14 6.2.1 Title Page ........................................... 14 6.2.2 Copyright Page ........................................ 14 6.2.3 Dedication .......................................... 14 6.2.4 Table of Contents ...................................... 14 6.2.5 Other ............................................. 14 6.3 Main Matter ............................................. 14 6.4 Back Matter .............................................. 14 V Elements of a Book – the Details (Fonts) 16 1 Introduction 16 1.1 Fonts .................................................. 16 2 Line Length and Font Size 16 3 Our Selected Fonts 17 3.1 Serif Font ............................................... 17 3.2 Sans Serif Font ............................................ 18 3.3 Script ................................................. 18 4 Code to Implement our Font Usage 18 4.1 Load Our Fonts ............................................ 18 4.2 Handle Special Font Faces ...................................... 20 4.3 Commands to Select Our Fonts ................................... 20 4.4 Special Handling of Fractions .................................... 20 4.5 Commands for Certain Glyphs ................................... 21 4.6 Point Size of Default Roman and Sans Fonts ........................... 21 VI Elements of a Cookbook – the Details 22 1 Chapter Introduction 22 2 Recipe Name and Yield 22 3 Recipe Story 23 4 Ingredients and Steps 23 4.1 The IngredientsAndSteps Environment ............................. 24 4.2 The \ListIngredientsAndSteps Command ............................ 24 5 Attribution 25 6 Additional Comments/Advice 25 7 Odds and Ends 26 7.1 Various Simple but Useful Commands/Defines .......................... 26 7.2 \BakeUntil .............................................. 27 7.3 A Few Other Commands ....................................... 28 2 8 Handling of Long Recipes 28 8.1 The “Real” \RecipeStory Command ................................ 29 8.2 The “Real” IngredientsAndSteps Environment ......................... 29 9 Adding Images in the Chapter Intro 31 9.1 The “Real” \ChapterIntro Command ............................... 31 VII The PDF File 32 1 The Digital Cookbook 32 2 The Print-On-Demand Cookbook 32 2.1 Embedded Fonts ........................................... 33 2.2 Bookmarks, Annotations, and Comments ............................. 33 2.3 Trim Size, Crop Marks and Other Printer’s Marks ........................ 33 2.4 PDF/X ................................................ 34 2.5 Other Print-on-Demand Issues ................................... 34 VIII Examples 35 1 \RecipeNameAndYield Command 35 1.1 Recipe A ............................................... 35 1.2 Recipe B ................................................ 35 1.3 Recipe C ............................................... 35 1.4 Recipe D ............................................... 35 2 \RecipeStory Command 36 2.1 Recipe A ............................................... 36 2.2 Recipe E ................................................ 36 3 IngredientsAndSteps Environment 36 3.1 Recipe A ............................................... 36 3.2 Recipe F ................................................ 36 4 \ListIngredientsAndSteps Command 36 4.1 Recipe A ............................................... 36 4.2 Recipe F ................................................ 37 4.3 Recipe I ................................................ 37 4.4 Recipes B, C and G ......................................... 38 5 \ChapterIntro Command 38 5.1 Chapter One ............................................. 38 5.2 Chapter Two ............................................. 38 3 Part I Introduction 1 About The makecookbook bundle contains the files needed to create a nice quality family cookbook in a form ready to submit to most print-on-demand companies. Modifiable choices have been made regarding standard book features such as trim size, margins, headers/footers, chapter heading formatting, front matter (copyright page, table of contents, etc.) and back matter (index). Commands and environments have been created to format the food stories and recipes. The user will need to: (1) supply their own food stories and recipes(!), and (2) select (install if necessary) the needed fonts. The design, layout and typography for cookbooks varies substantially, so we necessarily take a “point of view” on the desired look of the cookbook. However, even if your goal is a significantly different layout, you may find this work helpful in thinking through and implementing your design. Please note that no new document class or package is included here. Rather, we provide a modifiable preamble and a small number of other files that, together, fully support creation of all ofthe internal pages of a cookbook (i.e., everything except the cover art). We may refer to the makecookbook “package” in this documentation – by that we mean package in a broader sense and do not mean an actual .sty style package. 2 Preliminaries 2.1 Requirements 2.1.1 Compiler The makecookbook bundle uses the fontspec package. That means it must be compiled with either LuaTEX or XeTEX. We have only tested with LuaTEX. However, we have not used Lua code, so we expect you should be successful (after a possible tweak or two) with an XeTEX compile. 2.1.2 Fonts The makecookbook bundle assumes you have installed the three fonts listed below. (All are licensed under the SIL Open Font License, Version 1.1). To have a successful compile “out of the box”, these fonts must be installed on your system: Serif EB Garamond TrueType Version from Google Fonts Sans Serif Lato TrueType Version from www.latofonts.com Script Italianno OpenType Version from Google Fonts Please note: we assume that the EB Garamond and Italianno fonts were obtained from Google Fonts, and that the Lato font was obtained from http://www.latofonts.com. These fonts do not required installation of any font-related packgages other than fontspec. Beginning on page 16, we discuss how you can easily substitute your own favorite OpenType (including TrueType flavored) fonts, subject only to certain requirements regarding feature set. 2.2 License Copyright © 2018 Terrence P. Murphy and Rosalie A. D’Amico. This work may be distributed and/or modified under the conditions ofA theLTEX Project Public License (“LPPL”), either version 1.3c of this license or (at your option) any later version. The latest version of this license is at: http://www.latex-project.org/lppl.txt. This work is author-maintained and consists of the files listed in the FILES section of the README file. The makecookbook bundle includes an example cookbook with seven recipes. Those recipes are courtesy of Rosalie D’Amico1. You are, of course, welcome to try them! They are included in the bundle to provide 1D’Amico, Rosalie A. Mama, How Do You Make.... (self-published, 2018). 4 real-world examples of using LATEX code to enter recipes. We only ask that you consider those recipes as for you personal use and not (without attribution) for further food-related publication (further publication OK in a LATEX context). 2.3 Contact Information / Feedback No doubt, this documents contains typos, poorly explained (or unexplained) items, and other errors. It is equally likely the makecookbook package includes coding errors. We value your feedback. Please report problems or make other suggestions to Terry Murphy: [email protected]. 2.4 Version Information / Change History Version 0.85 dated December 2, 2018. This is the initial version of the makecookbook bundle. 2.5 The LATEX Community / StackExchange In this makecookbook package, much of the code (except for the mistakes!) is not original. When we ran into difficulties, we usually turned to tex.stackexchange.com for help. We often found solutions in previous questions and answers, but sometimes had to ask our own questions. The LATEX community is amazingly generous with their time. You may see in the text or in the comments to the code something like “See Q 59619”. That is a reference to a specific question and answer on tex.stackexchange.com. You can often track it down by a Google search of “latex 59619”; if that doesn’t work, try “tex.stackexchange.com
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages38 Page
-
File Size-