summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/recipebook/ShortSample.tex
blob: ce38c39f54d7d0afbfcd13680c34d41fff8af0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
%	Filename: ShortSample.tex
% Minimal sample cookbook using RecipeBook class.  Demonstrates
% syntax for creating a title page, hyperlinked table of
% contents, and several recipe formats.

\documentclass{RecipeBook}

\begin{document}

% \titlepage[<Text>]{<image1>}{<image2>}{<image3>}
% Provide title text and three image files to \titlepage to
% generate a title page.  In the following the images are located
% in the subdirectory images.
\titlepage[Sample Title]
	{images/sample_image.jpg}
	{images/sample_image.jpg}
	{images/sample_image.jpg}
	
% \makecontents
% Generate hyperlinked table of contents
\makecontents

% Section and subsection commands for making ToC entries and 
% managing pagebreaks.
\section{Sample section num. 1}
\subsection{Sample recipe num. 1}

% \author{<name>}
% Author, to be displayed in a footnote
\author{Sample Author}

% Recipe title and subtitle
\title{Sample Title}
\subtitle{\hspace*{0.5in}sample subtitle}

% info environment.  This is a tabular environment with two
% columns, so entries on the same line are separated by & and
% lines must be ended with \\.
\begin{info}
	Makes: & X servings \\
	Cooking time: & X hours
\end{info}

% \begin[<size>]{shrink} ... \end{shrink}
% Shrink the text within this environment by value <size>.  Default
% value is 1 pt, a good place to start if your recipe is too long.
\begin{shrink}

% \recipesection{<text>}
% Formats a heading with text <text>. 
\recipesection{Ingredients}

% \begin{ingredients} ... \end{ingredients}
% \ingr[<bullet>]{<text>}
% Format ingredients in a tabular environment with bullet points
% specified by <bullet>.  The default is \square.
% \group{<text>} removes bullet point and underlines the text.

\begin{ingredients}
	\group{Sample group heading}
	\item{Sample ingredient}
	\group{Sample group heading 2}
	\item{Sample ingredient 2}
\end{ingredients}

\recipesection{Instructions}

% \instr{<step_number>}{<text>}
% Used for numbered instructions.
\step{1.}{
	Sample instruction with some extra text text text text text 
	text text text text text text text.
}

% \hlgroup{<text>}
% Used for heading within instruction set.
\hlgroup{Sample group heading}
\step{2.}{
	Sample instruction with some extra text text text text text 
	text text text text text text text.
}

\pagebreak
\pic[t]{images/sample_image.jpg}

\end{shrink}

\section{Sample side-by-side recipes}
\subsection{Sample recipe (a)}
\subsection{Sample recipe (b)}
\author{Sample Author}

% \leftbgpic[<offset>][<transparency>]{<image_file>}
% Places a transparent image with edge fading in the left
% column, with <offset> setting the vertical distance from
% the top of the page (default is \pagetop). 
% \rightbgpic[<offset>][<transparency>]{<image>}
% Same syntax for \rightbgpic and leftbgpic.  Default value
% for <offset> is \pagebottom.
\rightbgpic{images/sample_image.jpg}
\leftbgpic{images/sample_image.jpg}

%----Title and info----------------------------------------------------------%
\title{Sample recipe (a)}

\begin{info}
	Makes: & X servings \\
	Cooking time: & X hours
\end{info}

\recipesection{Ingredients}
\begin{ingredients}
	\item{Sample ingredient}
	\item{Sample ingredient}
\end{ingredients}

\recipesection{Instructions}

\step{1.}{
	Sample instruction with some extra text text text text text 
	text text text text text text text.
}

\pagebreak

\title{Sample recipe (b)}

\begin{info}
	Makes: & X servings \\
	Cooking time: & X hours
\end{info}

\recipesection{Ingredients}
\begin{ingredients}
	\item{Sample ingredient}
\end{ingredients}

\recipesection{Instructions}

\step{1.}{
	Sample instruction with some extra text text text text text 
	text text text text text text text.
}
	
\clearpage

\end{document}