| 1 |
\documentclass[% |
| 2 |
a4paper, |
| 3 |
%twoside, |
| 4 |
11pt |
| 5 |
]{article} |
| 6 |
|
| 7 |
% encoding, font, language |
| 8 |
\usepackage[T1]{fontenc} |
| 9 |
\usepackage[latin1]{inputenc} |
| 10 |
\usepackage{lmodern} |
| 11 |
\usepackage[ngerman, english]{babel} |
| 12 |
|
| 13 |
\usepackage{nicefrac} |
| 14 |
|
| 15 |
\usepackage[ |
| 16 |
handwritten, |
| 17 |
nowarnings, |
| 18 |
%myconfig |
| 19 |
] |
| 20 |
{xcookybooky} |
| 21 |
|
| 22 |
\usepackage{blindtext} % only needed for generating test text |
| 23 |
|
| 24 |
\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}} |
| 25 |
|
| 26 |
|
| 27 |
\setcounter{secnumdepth}{1} |
| 28 |
\renewcommand*{\recipesection}[2][] |
| 29 |
{% |
| 30 |
\subsection[#1]{#2} |
| 31 |
} |
| 32 |
\renewcommand{\subsectionmark}[1] |
| 33 |
{% no implementation to display the section name instead |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
\usepackage{hyperref} % must be the last package |
| 38 |
\hypersetup{% |
| 39 |
pdfauthor = {Sven Harder}, |
| 40 |
pdftitle = {Example Recipes for xcookybooky}, |
| 41 |
pdfsubject = {Recipes}, |
| 42 |
pdfkeywords = {example, recipes, cookbook, xcookybooky}, |
| 43 |
pdfstartview = {FitV}, |
| 44 |
pdfview = {FitH}, |
| 45 |
pdfpagemode = {UseNone}, % Options; UseNone, UseOutlines |
| 46 |
bookmarksopen = {true}, |
| 47 |
pdfpagetransition = {Glitter}, |
| 48 |
colorlinks = {true}, |
| 49 |
linkcolor = {black}, |
| 50 |
urlcolor = {blue}, |
| 51 |
citecolor = {black}, |
| 52 |
filecolor = {black}, |
| 53 |
} |
| 54 |
|
| 55 |
\hbadness=10000 % Ignore underfull boxes |
| 56 |
|
| 57 |
\begin{document} |
| 58 |
|
| 59 |
\title{Examples for using \textbf{xcookybooky}} |
| 60 |
\author{Sven Harder\\ \href{mailto:sven\[email protected]}{sven\[email protected]}} |
| 61 |
\maketitle |
| 62 |
|
| 63 |
\begin{abstract} |
| 64 |
\noindent The examples in this document require at least version~1.4 of the \texttt{xcookybooky}\footnote{\url{http://www.ctan.org/pkg/xcookybooky}} package. For more examples and test recipes especially for using hook functions take a look at the source files located at \url{https://code.google.com/p/xcookybooky/}. If you are interested in modifying the layout of \texttt{xcookybooky} you will find examples in the documentation as well as in the configuration file \textbf{xcookybooky.cfg}. |
| 65 |
\end{abstract} |
| 66 |
|
| 67 |
\tableofcontents |
| 68 |
|
| 69 |
\vspace{5em} |
| 70 |
|
| 71 |
\section{Recipes} |
| 72 |
The following recipes are examples for the usage of the \texttt{xcookybooky} package. The copyright of the pictures is owned by Roman Gaus. If you are using MiKTeX~2.9 you should get no errors, no warnings and no overfull boxes. The underfull boxes are suppressed due to the settings. |
| 73 |
|
| 74 |
% background graphic |
| 75 |
\setBackgroundPicture[x, y=-2cm, width=\paperwidth-4cm, height, orientation = pagecenter] |
| 76 |
{pic/background} |
| 77 |
|
| 78 |
\include{tex/Mousse_au_Chocolat} |
| 79 |
|
| 80 |
\include{tex/Complete_Recipe} |
| 81 |
|
| 82 |
\end{document} |