Files
SimplLatexMenu/cmds.tex
2023-03-28 20:17:35 +02:00

65 lines
1.8 KiB
TeX

% colorize text
\newcommand*{\ColText}[1]{\textcolor{desc}{#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*{\titlef}[1]{%
{\fontsize{70}{60}{\textcolor{head}{#1}}}\\\medskip}
\newcommand*{\heading}[1]{%
{\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}}\\}}
% to format each subentry
\newcommand*{\Expl}[1]{%
\scriptsize #1}
\newcommand*{\Price}[1]{%
\normalsize #1 €}
% 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*{\PriceMultA}[4]{%
\hspace*{0.5cm}\footnotesize #1 \dotfill\Price{#2}\\
\hspace*{0.5cm}\footnotesize #3 \dotfill\Price{#4}\\
}
\newcommand*{\PriceMultB}[4]{%
\footnotesize #1 \dotfill\Price{#2}\\
\footnotesize #3 \dotfill\Price{#4}\\
}
\newcommand*{\parseprule}{%
\par
\begingroup
\centering
\raisebox{.2\baselineskip}{%
\rule{.6667\linewidth}{.4pt}%
}%
\par
\endgroup
}