-
Notifications
You must be signed in to change notification settings - Fork 0
/
FavoriteRecipes.tex
executable file
·87 lines (75 loc) · 1.89 KB
/
FavoriteRecipes.tex
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
\documentclass[12pt,a4paper,notitlepage]{report}
\usepackage{fullpage}
\usepackage{lastpage}
\usepackage{graphicx}
\usepackage[overlay]{textpos}
\usepackage{fancyhdr}
\usepackage{extramarks}
\usepackage{xfrac}
\usepackage{textcomp}
\usepackage[hidelinks,colorlinks,urlcolor=blue]{hyperref}
%% Use fancyhdr to get our desired headers and footers
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}% removes header line
\fancypagestyle{plain}{% for chapter starting pages
\fancyhf{}% clears header fields
\rfoot{\hyperlink{contents}{Return to contents}}}
%% Setup footer for all other pages
\fancyhf{}%clear all fields
\rfoot{\hyperlink{contents}{Return to contents}}% links the TOC at the center of the page footer
\cfoot{\thepage\ of \pageref*{LastPage}}
\lfoot{\leftmark}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
%%TOC Hyperlink Setup
%%Document start
\begin{document}
%% Macros Section
\newcommand{\newrecipe}[2] {%parameter1 is the recipe name parameter 2 is the hyperlink to original content (if applicable).
\newpage
\phantomsection
\addcontentsline{toc}{section}{#1}
\section*{
\center {\Huge \href{#2}{#1}}
% \centerline {\Huge \href{#2}{#1}}
}
}
%%List Style Setup
\newenvironment{ingredients-list}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{itemize}
}
%%Title Page
\title{Tried and Tested}
\date{}
\author{}
\maketitle
\begin{figure}[h!]
\centering
\includegraphics[scale=1]{./img/recipe-book.jpg}
\end{figure}
\thispagestyle{empty}
\newpage
%%TOC page(s)
\hypertarget{contents}{}%Navigation target to return to Toc from any page
\hypersetup{
colorlinks,
linkcolor=blue,
linktoc=all
}
\tableofcontents
\include{fingerfood}
\include{brunch}
\include{mains}
\include{vegetarianmains}
\include{salads}
\include{dips_extras}
\include{desserts}
\include{sides_extras}
\include{sauces_dressings}
%%The end
\end{document}