summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/menucard/menucard.sty
blob: 65b69dd99fedae8b1a81182862db9263eb193e5e (plain)
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
%%
%% This is file `menucard.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% menucard.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2020 by Sascha Frank <menucard@sascha-frank.com>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{menucard}
    [2020/06/17 v0.1 menucards ]
\RequirePackage[x11names]{xcolor}
\RequirePackage{soul}
\newcommand{\ColTextColor}{Goldenrod3}
\newcommand{\ColSubTextColor}{\ColTextColor!50}
\newcommand*\ColText[1]{\textcolor{\ColTextColor}{#1}}
\newcommand*\ColSubText[1]{\textcolor{\ColSubTextColor}{#1}}
\newcounter{menucount}
\newcommand{\zapf}{\fontfamily{pzc}\selectfont}
\newcommand{\Allergens}[1]{\textsuperscript{\tiny\sffamily #1}}
\newcommand*\Entry[2]{%
  \sffamily#1 & #2}
\newcommand*\Expl[1]{%
  \hspace*{1em}\footnotesize #1}
\newcommand*\Entrycount[2]{\stepcounter{menucount} %
  \zapf{\themenucount}\hspace*{1em} & \sffamily#1 & #2 }
\newenvironment{Group*}[1]{
  \noindent\begin{tabular*}{\textwidth}{@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    {\fontsize{24}{29}\selectfont\ColText{#1}}\\[0.8em]}
  {\end{tabular*}}
\newenvironment{Group}[1]
  {\noindent\begin{tabular*}{\textwidth}{p{2em}@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    \multicolumn{3}{l}{{\fontsize{24}{29}\selectfont\ColText{#1}}}\\[0.8em]}
  {\end{tabular*}}
\newenvironment{menugroup*}[2]
  {
\noindent\begin{tabular*}{\columnwidth}{@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    {\huge\textcolor{\ColTextColor}{#1}\hspace*{0.1em}
    \LARGE\textcolor{\ColSubTextColor}{#2}}\\[0.2em]
 \noindent\rule{\columnwidth}{0.4pt} & \\[0.8em]}
  {\end{tabular*}}
\newenvironment{menugroup}[2]
  {
\noindent\begin{tabular*}{\columnwidth}{p{2em}@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    \multicolumn{3}{l}{\hspace*{-0.5em}{\huge\textcolor{\ColTextColor}{#1}\hspace*{0.1em} \LARGE\textcolor{\ColSubTextColor}{#2}}}\\[0.2em]
 \noindent\hspace*{-0.55em}\rule{\columnwidth}{0.4pt} & \\[0.8em]}
  {\end{tabular*}}
\newenvironment{menugroupsc*}[2]
  {
\noindent\begin{tabular*}{\columnwidth}{@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    {\huge\textcolor{\ColTextColor}{\caps{#1}}\hspace*{0.1em} \LARGE\textcolor{\ColSubTextColor}{\caps{#2}}}\\[0.2em]
 \noindent\rule{\columnwidth}{0.4pt} & \\[0.8em]}
  {\end{tabular*}}
\newenvironment{menugroupsc}[2]
  {
\noindent\begin{tabular*}{\columnwidth}{p{2em}@{}p{.8\linewidth}@{\extracolsep{\fill}}r@{}}
    \multicolumn{3}{l}{\hspace*{-0.5em}{\huge\textcolor{\ColTextColor}{\caps{#1}}\hspace*{0.1em} \LARGE\textcolor{\ColSubTextColor}{\caps{#2}}}}\\[0.2em]
 \noindent\hspace*{-0.55em}\rule{\columnwidth}{0.4pt} & \\[0.8em]}
  {\end{tabular*}}
\endinput
%%
%% End of file `menucard.sty'.