summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/Examples/FancyColors.tex
blob: 4dfaa125622d77c439c3e2ea97b06d9de6029c7f (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
\documentclass[onedown-examples]{subfiles}

\begin{document}
\FancyColors
\begin{HBox}{Fancy colors for card symbols\hfill File: \FileName}
Due to the definition of the card symbols, a simple redefinition like:\\
\verb|\let\MyClub\Cl|\\
\verb|\renewcommand{\Cl}{%|\\
\verb|\textcolor{green}{\MyClub}}|\\
will \textbf{not} change the color of the symbol.
For details refer to the \OneDown manual, section 6.2.1 \emph{Suit Symbols}.

Instead put in your preamble e.g. this code to get \textcolor{green}{green}
clubs, \textcolor{orange}{orange} diamonds, \textcolor{red}{red} hearts and
\textcolor{blue}{blue} spades.
\\[\baselineskip]
\verb|\makeatletter|\\
\verb|\renewrobustcmd\Cl{%|\\
\verb|\textcolor{green}%|\\
\verb|{\,[0.3]\ensuremath{%|\\
\verb|\ODw@clubsuit}}\xspace}%|\\[2mm]
\verb|\renewrobustcmd\Di{%|\\
\verb|\textcolor{orange}%|\\
\verb|{\,[0.3]\ensuremath{%|\\
\verb|\ODw@vardiamond}}\xspace}%|\\[2mm]
\verb|\renewrobustcmd\He{%|\\
\verb|\textcolor{red}%|\\
\verb|{\,[0.3]\ensuremath{%|\\
\verb|\ODw@varheart}}\xspace}%|\\[2mm]
\verb|\renewrobustcmd\Sp{%|\\
\verb|\textcolor{blue}%|\\
\verb|{\,[0.3]\ensuremath{%|\\
\verb|\ODw@spadesuit}}\xspace}%|\\
\verb|\makeatother|
\\[\baselineskip]
Now you will get yor own fancy colors:

1\Cl, 2\Di, 3\He, 4\Sp\\

\setdefaults{bidlong=off,bidfirst=N}
\begin{bidding}[t]
1C & 1D & 1H & 1S \\
1N & X & p & p \\
R & P \\
\end{bidding}

\end{HBox}
\end{document}