unifies all lists.
This commit is contained in:
97
cmds.tex~
Normal file
97
cmds.tex~
Normal file
@@ -0,0 +1,97 @@
|
||||
\let\olddotfill\dotfill
|
||||
\renewcommand{\dotfill}{\scriptsize\olddotfill}
|
||||
|
||||
% colorize text
|
||||
\newcommand*{\ColText}[1]{\textcolor{}{#1}}
|
||||
|
||||
% a tabular* for each drink group
|
||||
\newenvironment{Group}[2]{%
|
||||
\heading{#1}
|
||||
\centering{\desctext{#2}}}
|
||||
|
||||
\newcommand*{\desctext}[1]{%
|
||||
\fontsize{11}{14}\selectfont\ColText{#1}}
|
||||
|
||||
% to format each entry
|
||||
\newcommand*{\Entry}[2]{%
|
||||
%\vspace{0.5mm} % if you uncomment this line, change the Glass yshift to -4mm (idk why such difference)
|
||||
\Large{\artfont #1 #2\\}}
|
||||
|
||||
\newcommand*{\illupage}[1]{\newpage
|
||||
\PageBackground{\bg}
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{#1}
|
||||
\end{center}}
|
||||
|
||||
\newcommand{\bg}{bg-border.png} % define used border background
|
||||
|
||||
\newcommand*{\titlef}[1]{%
|
||||
{\fontsize{70}{60}\headfont\textcolor{head}{#1}}\\\medskip}
|
||||
|
||||
\newcommand*{\heading}[1]{%
|
||||
\makebox[\textwidth]{\centering\linefont\fontsize{30}{10}\selectfont Q+=q {\fontsize{40}{60}{\headfont\textcolor{head}{#1}}} Q+=q\\\medskip}}
|
||||
|
||||
\newcommand*{\subheading}[1]{%
|
||||
{\centering\linefont\fontsize{20}{30}\selectfont Q++++=q {\LARGE{\artfont\selectfont\textcolor{head}{#1}}} Q++++=q\\}}
|
||||
|
||||
\newcommand*{\subsubheading}[1]{%
|
||||
{\centering\linefont\fontsize{20}{30}\selectfont Q++++=q {\Large{\artfont\selectfont\textcolor{head}{#1}}} Q++++=q\\}}
|
||||
|
||||
\newcommand*{\subsubsubheading}[1]{%
|
||||
{\Large{\artfont\selectfont\textcolor{head}{#1}}\\}}
|
||||
|
||||
\newcommand*{\subsubsubsubheading}[1]{%
|
||||
{\raggedright\Large\artfont\selectfont\textcolor{head}{#1}\\}}
|
||||
|
||||
% to format each subentry
|
||||
\newcommand*{\Expl}[1]{%
|
||||
\small #1}
|
||||
|
||||
\newcommand*{\Price}[1]{%
|
||||
\normalsize #1 \texteuro}
|
||||
|
||||
% sets page Backround to #1
|
||||
\newcommand*{\PageBackground}[1]{%
|
||||
\tikz[remember picture,overlay] \node[opacity=1,inner sep=0pt] at (current
|
||||
page.center){\includegraphics[width=\paperwidth,height=\paperheight]{#1}};
|
||||
}
|
||||
|
||||
\newcommand*{\StdEntry}[6]{
|
||||
\Entry{#1}{}\\
|
||||
\Expl{#2}\\
|
||||
\DTLifnullorempty{#6}{\PriceSingl{#3}{#4}}{\PriceMultB{#3}{#4}{#5}{#6}}
|
||||
}
|
||||
|
||||
\newcommand*{\CofEntry}[6]{
|
||||
\Entry{#1}{}\\
|
||||
\Expl{#2}
|
||||
\DTLifnullorempty{#6}{\PriceSingl{}{#4}}{\\PriceMultB{#3}{#4}{#5}{#6}}
|
||||
}
|
||||
|
||||
\newcommand*{\PriceMultA}[4]{%
|
||||
\small #1 \dotfill\Price{#2}\\
|
||||
\small #3 \dotfill\Price{#4}\\
|
||||
}
|
||||
|
||||
\newcommand*{\PriceMultB}[4]{%
|
||||
\hspace*{0.5cm}\small #1 \dotfill\Price{#2}\\
|
||||
\hspace*{0.5cm}\small #3 \dotfill\Price{#4}\\
|
||||
}
|
||||
|
||||
\newcommand*{\PriceSingl}[2]{%
|
||||
\hspace*{0.5cm}\small#1\dotfill\Price{#2}\\
|
||||
}
|
||||
|
||||
\newcommand*{\ShotItem}[4]{%1 = Name; 2 = Desc; 3 = Size; 4 = Price
|
||||
\small#1\scriptsize\space\textit{#2}\small\dotfill #3\space\Price{#4}}
|
||||
|
||||
\newcommand*{\parseprule}{%
|
||||
\par
|
||||
\begingroup
|
||||
\centering
|
||||
\raisebox{.2\baselineskip}{%
|
||||
\rule{.6667\linewidth}{.4pt}%
|
||||
}%
|
||||
\par
|
||||
\endgroup
|
||||
}
|
||||
Reference in New Issue
Block a user