Debian Codegraph @

texmf-dist/source/latex/tangocolors/tangocolors.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2009 by Daniel G. Siegel <[email protected]>
4 % Copyright (C) 2023 by Hilmar Preuße <[email protected]>
5 % ---------------------------------------------------------------------------
6 % This work may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either version 1.3
8 % of this license or later (at your option) or any version of the
9 % GNU Public License.
10 % The latest version of the LPPL is on
11 % http://www.latex-project.org/lppl.txt
12 % (version 1.3 or later is part of all distributions of LaTeX version
13 % 2005/12/01 or later).
14 % The latest version of the GPL is available on
15 % https://www.gnu.org/licenses/gpl-3.0.txt
16 %
17 % This work has the LPPL maintenance status `maintained'.
18 %
19 % The Current Maintainer of this work is Daniel G. Siegel and
20 % Hilmar Preuße.
21 %
22 % This work consists of the files tangocolors.dtx and tangocolors.ins
23 % and the derived filebase tangocolors.sty.
24 %
25 % \fi
26 %
27 % \iffalse
28 %<*driver>
29 \ProvidesFile{tangocolors.dtx}
30 %</driver>
31 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
32 %<package>\ProvidesPackage{tangocolors}
33 %<*package>
34 [2023/03/30 0.3 Tango colors for LaTeX]
35 %</package>
36 %
37 %<*driver>
38 \documentclass{ltxdoc}
39 \usepackage{tangocolors}[2023/03/20]
40 \EnableCrossrefs
41 \CodelineIndex
42 \RecordChanges
43 \begin{document}
44 \DocInput{tangocolors.dtx}
45 \PrintChanges
46 \PrintIndex
47 \end{document}
48 %</driver>
49 % \fi
50 %
51 % \CheckSum{89}
52 %
53 % \CharacterTable
54 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
55 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
56 % Digits \0\1\2\3\4\5\6\7\8\9
57 % Exclamation \! Double quote \" Hash (number) \#
58 % Dollar \$ Percent \% Ampersand \&
59 % Acute accent \' Left paren \( Right paren \)
60 % Asterisk \* Plus \+ Comma \,
61 % Minus \- Point \. Solidus \/
62 % Colon \: Semicolon \; Less than \<
63 % Equals \= Greater than \> Question mark \?
64 % Commercial at \@ Left bracket \[ Backslash \\
65 % Right bracket \] Circumflex \^ Underscore \_
66 % Grave accent \` Left brace \{ Vertical bar \|
67 % Right brace \} Tilde \~}
68 %
69 %
70 % \changes{0.1}{2009/05/11}{Initial release}
71 % \changes{0.2}{2023/03/20}{Converted to DTX file}
72 % \changes{0.3}{2023/03/30}{Introduce line breaks in definition of \\dumptangocolors}
73 %
74 % \DoNotIndex{\newcommand,\newenvironment}
75 %
76 % \providecommand*{\url}{\texttt}
77 % \GetFileInfo{tangocolors.dtx}
78 % \title{The \textsf{tangocolors} package}
79 % \author{Daniel G. Siegel \url{[email protected]} \\
80 % and \\ Hilmar Preuße \url{[email protected]}}
81 % \date{\fileversion~from \filedate}
82 %
83 % \maketitle
84 %
85 % \section{Introduction}
86 %
87 % This package allows to use colors from the Tango color
88 % palette\footnote{\url{http://tango.freedesktop.org/Tango\_Icon\_Theme\_Guidelines}}
89 % easily in \LaTeX. It may be distributed and/or modified
90 %
91 % \begin{enumerate}
92 % \item under the \LaTeX{} Project Public License and/or
93 % \item under the GNU Public License.
94 % \end{enumerate}
95 %
96 % \section{Usage}
97 %
98 % The Tango color palette defines some color names and their RGB codes.
99 % This \LaTeX{} macro package implements these color names, so
100 % one can easily access these colors by their names. The package
101 % uses the \verb|xcolor| package, so please refer to the documentation
102 % to this package to learn how to access these defined colors.
103 %
104 % \DescribeMacro{\dumptangocolors}
105 %
106 % A macro to dump a table of the available additional colors like this.
107 % \begin{verbatim}
108 % \documentclass[11pt,a4paper]{article}
109 %
110 % \usepackage{tangocolors}
111 %
112 % \begin{document}
113 % \dumptangocolors
114 % \end{document}
115 % \end{verbatim}
116
117 % \dumptangocolors
118 %
119 % \StopEventually{}
120 %
121 % \section{Implementation}
122 %
123 % \iffalse
124 %<*package>
125 % \fi
126 %
127 % \begin{macrocode}
128 \NeedsTeXFormat{LaTeX2e}
129 \ProvidesPackage{tangocolors}[2023/03/20 v0.3 Tango colors for LaTeX]
130 \PassOptionsToPackage{table}{xcolor}
131 \RequirePackage{xcolor}
132 \definecolor{butter1}{rgb}{0.988,0.914,0.310}
133 \definecolor{butter2}{rgb}{0.929,0.831,0.000}
134 \definecolor{butter3}{rgb}{0.769,0.627,0.000}
135 \definecolor{orange1}{rgb}{0.988,0.686,0.243}
136 \definecolor{orange2}{rgb}{0.961,0.475,0.000}
137 \definecolor{orange3}{rgb}{0.808,0.361,0.000}
138 \definecolor{chocolate1}{rgb}{0.914,0.725,0.431}
139 \definecolor{chocolate2}{rgb}{0.757,0.490,0.067}
140 \definecolor{chocolate3}{rgb}{0.561,0.349,0.008}
141 \definecolor{chameleon1}{rgb}{0.541,0.886,0.204}
142 \definecolor{chameleon2}{rgb}{0.451,0.824,0.086}
143 \definecolor{chameleon3}{rgb}{0.306,0.604,0.024}
144 \definecolor{skyblue1}{rgb}{0.447,0.624,0.812}
145 \definecolor{skyblue2}{rgb}{0.204,0.396,0.643}
146 \definecolor{skyblue3}{rgb}{0.125,0.290,0.529}
147 \definecolor{plum1}{rgb}{0.678,0.498,0.659}
148 \definecolor{plum2}{rgb}{0.459,0.314,0.482}
149 \definecolor{plum3}{rgb}{0.361,0.208,0.400}
150 \definecolor{scarletred1}{rgb}{0.937,0.161,0.161}
151 \definecolor{scarletred2}{rgb}{0.800,0.000,0.000}
152 \definecolor{scarletred3}{rgb}{0.643,0.000,0.000}
153 \definecolor{aluminium1}{rgb}{0.933,0.933,0.925}
154 \definecolor{aluminium2}{rgb}{0.827,0.843,0.812}
155 \definecolor{aluminium3}{rgb}{0.729,0.741,0.714}
156 \definecolor{aluminium4}{rgb}{0.533,0.541,0.522}
157 \definecolor{aluminium5}{rgb}{0.333,0.341,0.325}
158 \definecolor{aluminium6}{rgb}{0.180,0.204,0.212}
159 % \end{macrocode}
160 %
161 % \begin{macro}{\dumptangocolors}
162 % \begin{macrocode}
163 \newcommand{\dumptangocolors}{%
164 \begingroup
165 \renewcommand{\arraystretch}{1.5}
166 \begin{tabular}{ccc}
167 \cellcolor{butter1}butter1 & \cellcolor{butter2}butter2
168 & \cellcolor{butter3}butter3 \\
169 \cellcolor{orange1}orange1 & \cellcolor{orange2}orange2
170 & \cellcolor{orange3}orange3 \\
171 \cellcolor{chocolate1}chocolate1 & \cellcolor{chocolate2}chocolate2
172 & \cellcolor{chocolate3}chocolate3 \\
173 \cellcolor{chameleon1}chameleon1 & \cellcolor{chameleon2}chameleon2
174 & \cellcolor{chameleon3}chameleon3 \\
175 \cellcolor{skyblue1}skyblue1 & \cellcolor{skyblue2}skyblue2
176 & \cellcolor{skyblue3}\textcolor{white}{skyblue3} \\
177 \cellcolor{plum1}plum1 & \cellcolor{plum2}plum2
178 & \cellcolor{plum3}\textcolor{white}{plum3} \\
179 \cellcolor{scarletred1}scarletred1 & \cellcolor{scarletred2}scarletred2
180 & \cellcolor{scarletred3}\textcolor{white}{scarletred3} \\
181 \cellcolor{aluminium1}aluminium1 & \cellcolor{aluminium2}aluminium2
182 & \cellcolor{aluminium3}aluminium3 \\
183 \cellcolor{aluminium4}aluminium4 & \cellcolor{aluminium5}\textcolor{white}{aluminium5}
184 & \cellcolor{aluminium6}\textcolor{white}{aluminium6} \\
185 \end{tabular}
186 \endgroup
187 }
188 % \end{macrocode}
189 % \end{macro}
190 %
191 %
192 % \iffalse
193 %</package>
194 % \fi
195 %
196 % \Finale
197 \endinput