Debian Codegraph @

texmf-dist/doc/latex/onedown/Examples/FancyColors.tex

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \begin{document}
4 \FancyColors
5 \begin{HBox}{Fancy colors for card symbols\hfill File: \FileName}
6 Due to the definition of the card symbols, a simple redefinition like:\\
7 \verb|\let\MyClub\Cl|\\
8 \verb|\renewcommand{\Cl}{%|\\
9 \verb|\textcolor{green}{\MyClub}}|\\
10 will \textbf{not} change the color of the symbol.
11 For details refer to the \OneDown manual, section 6.2.1 \emph{Suit Symbols}.
12
13 Instead put in your preamble e.g. this code to get \textcolor{green}{green}
14 clubs, \textcolor{orange}{orange} diamonds, \textcolor{red}{red} hearts and
15 \textcolor{blue}{blue} spades.
16 \\[\baselineskip]
17 \verb|\makeatletter|\\
18 \verb|\renewrobustcmd\Cl{%|\\
19 \verb|\textcolor{green}%|\\
20 \verb|{\,[0.3]\ensuremath{%|\\
21 \verb|\ODw@clubsuit}}\xspace}%|\\[2mm]
22 \verb|\renewrobustcmd\Di{%|\\
23 \verb|\textcolor{orange}%|\\
24 \verb|{\,[0.3]\ensuremath{%|\\
25 \verb|\ODw@vardiamond}}\xspace}%|\\[2mm]
26 \verb|\renewrobustcmd\He{%|\\
27 \verb|\textcolor{red}%|\\
28 \verb|{\,[0.3]\ensuremath{%|\\
29 \verb|\ODw@varheart}}\xspace}%|\\[2mm]
30 \verb|\renewrobustcmd\Sp{%|\\
31 \verb|\textcolor{blue}%|\\
32 \verb|{\,[0.3]\ensuremath{%|\\
33 \verb|\ODw@spadesuit}}\xspace}%|\\
34 \verb|\makeatother|
35 \\[\baselineskip]
36 Now you will get yor own fancy colors:
37
38 1\Cl, 2\Di, 3\He, 4\Sp\\
39
40 \setdefaults{bidlong=off,bidfirst=N}
41 \begin{bidding}[t]
42 1C & 1D & 1H & 1S \\
43 1N & X & p & p \\
44 R & P \\
45 \end{bidding}
46
47 \end{HBox}
48 \end{document}
49