curry-cookbook/cookbook.tex

115 lines
2.3 KiB
TeX

\documentclass[%
a4paper,
%twoside,
11pt
]{article}
% encoding, font, language
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{nicefrac}
\newcommand{\recipetarget}[1]{%
\phantomsection
\label{#1}
}
\newcommand{\reciperef}[1]{%
[Seite~\pageref{#1}]
}
\usepackage[
% handwritten,
nowarnings,
%myconfig
]
{xcookybooky}
\setHeadlines{
inghead = Zutaten,
prephead = Arbeitsschritte,
portionvalue = Portionen,
%hinthead = STip ,
%continuationhead = C \dots ,
}
%\setRecipeColors{
% separationgraph = black!0
%}
\setRecipeLengths{
preparationwidth = 0.4\textwidth,
ingredientswidth = 0.5\textwidth,
}
% Modify xcookybooky style
\makeatletter
% Remove separator
\renewcommand*{\xcb@separationgraph}[2][1.5]{}
\makeatother
\usepackage{blindtext} % only needed for generating test text
\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}}
\setcounter{secnumdepth}{1}
\renewcommand*{\recipesection}[2][]
{%
\subsection[#1]{#2}
}
\renewcommand{\subsectionmark}[1]
{% no implementation to display the section name instead
}
\usepackage{hyperref} % must be the last package
\hypersetup{%
pdfauthor = {Michael Krayer},
pdftitle = {Ein Kochbuch voll mit Curries},
pdfsubject = {Recipes},
pdfkeywords = {recipes, cookbook},
pdfstartview = {FitV},
pdfview = {FitH},
pdfpagemode = {UseNone}, % Options; UseNone, UseOutlines
bookmarksopen = {true},
pdfpagetransition = {Glitter},
colorlinks = {true},
linkcolor = {black},
urlcolor = {blue},
citecolor = {black},
filecolor = {black},
}
\hbadness=10000 % Ignore underfull boxes
\begin{document}
\title{Ein Kochbuch voll mit Curries}
\author{Michael Krayer}
\maketitle
\begin{abstract}
%This is a curry cookbook.
\end{abstract}
\tableofcontents
\vspace{5em}
\section{Indisch}
\section{Thai (Kaeng)}
\section{Indonesisch / Malaiisch}
\include{recipes/BeefRendang}
\section{Beilagen und Spezialzutaten}
\include{recipes/CoconutRice}
\include{recipes/Kerisik}
% background graphic
%\setBackgroundPicture[x, y=-2cm, width=\paperwidth-4cm, height, orientation = pagecenter]
%{pic/background}
\end{document}