Debian Codegraph @

texmf-dist/doc/latex/xcolor/xcolor4.tex

raw
1 %%
2 %% This is file `xcolor4.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% xcolor.dtx (with options: `test4')
8 %%
9 %% IMPORTANT NOTICE:
10 %%
11 %% For the copyright see the source file.
12 %%
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from xcolor4.tex.
15 %%
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file xcolor.dtx.
18 %%
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %%
24 \ProvidesFile{xcolor4}
25 [2024/09/29 v3.02 Color driver test (UK)]
26 %%
27 %% ----------------------------------------------------------------
28 %% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
29 %% 2021-2024 LaTeX Project https://github.com/latex3/xcolor/issues
30 %% ----------------------------------------------------------------
31 %%
32 \def\XCfileversion{v3.02}%
33 \def\XCfiledate{2024/09/29}%
34
35 \listfiles
36 \documentclass[a4paper]{article}
37 %%\PassOptionsToPackage{dvipdf}{xcolor}
38 %%\PassOptionsToPackage{dvipdfm}{xcolor}
39 %%\PassOptionsToPackage{dvipdfmx}{xcolor}
40 %%\PassOptionsToPackage{dvips}{xcolor}
41 %%\PassOptionsToPackage{dvipsone}{xcolor}
42 %%\PassOptionsToPackage{dviwin}{xcolor}
43 %%\PassOptionsToPackage{dviwindo}{xcolor}
44 %%\PassOptionsToPackage{emtex}{xcolor}
45 %%\PassOptionsToPackage{oztex}{xcolor}
46 %%\PassOptionsToPackage{luatex}{xcolor}
47 %%\PassOptionsToPackage{pctex32}{xcolor}
48 %%\PassOptionsToPackage{pctexhp}{xcolor}
49 %%\PassOptionsToPackage{pctexps}{xcolor}
50 %%\PassOptionsToPackage{pctexwin}{xcolor}
51 %%\PassOptionsToPackage{pdftex}{xcolor}
52 %%\PassOptionsToPackage{tcidvi}{xcolor}
53 %%\PassOptionsToPackage{textures}{xcolor}
54 %%\PassOptionsToPackage{truetex}{xcolor}
55 %%\PassOptionsToPackage{vtex}{xcolor}
56 %%\PassOptionsToPackage{xdvi}{xcolor}
57 %%\PassOptionsToPackage{xetex}{xcolor}
58 %%\PassOptionsToPackage{prologue}{xcolor}
59 %%\PassOptionsToPackage{kernelfbox}{xcolor}
60 %%\PassOptionsToPackage{xcdraw}{xcolor}
61 \usepackage[emtex]{graphics}
62 \usepackage{xcolor}
63 \usepackage[margin=1.25cm,noheadfoot]{geometry}
64 \pagestyle{empty}
65 \parindent0pt
66 \nofiles
67 \let\familydefault\sfdefault
68 \makeatletter
69 %% special code for driver list construction via
70 %% latex \def\xcdriverlist{1}\input{xcolor4}
71 %% writes list in file xcolor4.tmp
72 \@ifundefined{xcdriverlist}{}{%
73 %% optional * (skips test whether #1.def exists)
74 %% #1 = driver
75 %% #2 = additional options (stored in \options@#2)
76 %% #3 = processor 1
77 %% #4 = output format 1
78 %% #5 = processor 2
79 %% #6 = output format 2
80 %% #7 = processor 3
81 %% #8 = output format 3
82 \def\0{\@ifstar
83 {\def\@@tmp####1{\@firstoftwo}\1}{\def\@@tmp####1{\IfFileExists{####1.def}}\1}}
84 \def\1#1#2#3#4#5#6#7#8{\@@tmp{#1}%
85 {\XC@let@Nc\@@tmp{options@#2}
86 \ifx\@@tmp\@empty\else
87 \edef\@@tmp{,\@@tmp}\XC@replace\@@tmp,{;#1-}\XC@replace\@@tmp;,
88 \fi
89 \edef\@@tmp{:=#1\@@tmp}
90 \expandafter\@for\expandafter\@tempa\@@tmp\do
91 {\let\@@tmp\@tempa\XC@replace\@@tmp-,
92 \edef\@@tmp{\@tempa\space\string\PassOptionsToPackage{\@@tmp}{xcolor}}
93 \@namexdef{list@#4}{\@nameuse{list@#4},#3 \@@tmp}
94 \@namexdef{list@#6}{\@nameuse{list@#6},#5 \@@tmp}
95 \@namexdef{list@#8}{\@nameuse{list@#8},#7 \@@tmp}}}%
96 {\typeout{No file `#1.def' found.}}}
97 \def\list@{}
98 \def\list@dvi{}
99 \def\list@ps{}
100 \def\list@pdf{}
101 \@namedef{options@0}{}
102 \@namedef{options@1}{kernelfbox,prologue,xcdraw,kernelfbox-xcdraw,prologue-xcdraw}
103 \0{dvips}1{latex}{dvi}{dvips}{ps}{ps2pdf}{pdf}
104 \0{pctex32}0{latex}{dvi}{dvips}{ps}{ps2pdf}{pdf}
105 \0{dvipdf}0{latex}{dvi}{dvipdf}{pdf}{}{}
106 \0{dvipdfm}1{latex}{dvi}{dvipdfm}{pdf}{}{}
107 \0{dvipdfmx}0{latex}{dvi}{dvipdfmx}{pdf}{}{}
108 \0{dvipsone}0{latex}{dvi}{}{}{}{}
109 \0{dviwin}0{latex}{dvi}{}{}{}{}
110 \0*{dviwindo}0{latex}{dvi}{}{}{}{}
111 \0{emtex}0{latex}{dvi}{}{}{}{}
112 \0*{oztex}0{latex}{dvi}{}{}{}{}
113 \0{pctexhp}0{latex}{dvi}{}{}{}{}
114 \0{pctexps}0{latex}{dvi}{}{}{}{}
115 \0{pctexwin}0{latex}{dvi}{}{}{}{}
116 \0{tcidvi}0{latex}{dvi}{}{}{}{}
117 \0{textures}0{latex}{dvi}{}{}{}{}
118 \0{truetex}0{latex}{dvi}{}{}{}{}
119 \0*{xdvi}0{latex}{dvi}{}{}{}{}
120 \0{pdftex}1{pdflatex}{pdf}{}{}{}{}
121 \0{vtex}0{vlatex}{pdf}{}{}{}{}
122 \0{xetex}0{xelatex}{pdf}{}{}{}{}
123 \newwrite\@tempa\immediate\openout\@tempa=\jobname.tmp
124 \@tfor\@tempb:={dvi}{ps}{pdf}\do
125 {\edef\@@tmp{\@nameuse{list@\@tempb}}\edef\@@tmp{:=\expandafter\@gobble\@@tmp}
126 \expandafter\@for\expandafter\@@tmp\@@tmp\do
127 {\immediate\write\@tempa{\@@tmp}}}
128 \immediate\closeout\@tempa
129 \@@end}% end of driver list construction code
130 \edef\Options{}
131 \@tfor\@@tmp:={dvipdf}{dvipdfm}{dvipdfmx}{dvips}{dvipsone}{dviwin}{dviwindo}%
132 {emtex}{oztex}{pctex32}{pctexhp}{pctexps}{pctexwin}{pdftex}%
133 {tcidvi}{textures}{truetex}{vtex}{xdvi}{xetex}%
134 {natural}{table}{fixpdftex}{hyperref}{showerrors}{hideerrors}%
135 {override}{usenames}{nodvipsnames}{debugshow}\do
136 {\expandafter\XC@replace\expandafter\Options\expandafter{\@@tmp,}{}}
137 \edef\Options{\XC@@drv,\Options}
138 \def\@@tmp#1,#2%
139 {\ifx,#2#1\expandafter\remove@to@nnil\else#1', `\expandafter\@@tmp\fi#2}
140 \edef\Options{`\expandafter\@@tmp\Options,,\@nnil'}
141 \makeatother
142 \begin{document}
143 \vbox to\textheight{\vss\centering
144 {\Large\textbf{xcolor} driver test: \Options}
145 \vskip0.5cm
146 \begin{testcolors}[rgb,hsb,cmyk,gray,HTML]
147 \testcolor{magenta}
148 \testcolor[rgb]{1,0,1}
149 \testcolor[hsb]{0.83333,1,1}
150 \testcolor[cmyk]{0,1,0,0}
151 \testcolor[gray]{0.41}
152 \noalign{\medskip}
153 \testcolor{blue}
154 \testcolor[rgb]{0,0,1}
155 \testcolor[hsb]{0.66667,1,1}
156 \testcolor[cmyk]{1,1,0,0}
157 \testcolor[gray]{0.11}
158 \noalign{\medskip}
159 \testcolor{cyan}
160 \testcolor[rgb]{0,1,1}
161 \testcolor[hsb]{0.5,1,1}
162 \testcolor[cmyk]{1,0,0,0}
163 \testcolor[gray]{0.7}
164 \noalign{\medskip}
165 \testcolor{green}
166 \testcolor[rgb]{0,1,0}
167 \testcolor[hsb]{0.33333,1,1}
168 \testcolor[cmyk]{1,0,1,0}
169 \testcolor[gray]{0.59}
170 \noalign{\medskip}
171 \testcolor{yellow}
172 \testcolor[rgb]{1,1,0}
173 \testcolor[hsb]{0.16667,1,1}
174 \testcolor[cmyk]{0,0,1,0}
175 \testcolor[gray]{0.89}
176 \noalign{\medskip}
177 \testcolor{red}
178 \testcolor[rgb]{1,0,0}
179 \testcolor[hsb]{0,1,1}
180 \testcolor[cmyk]{0,1,1,0}
181 \testcolor[gray]{0.3}
182 \noalign{\medskip}
183 \testcolor{black}
184 \testcolor[rgb]{0,0,0}
185 \testcolor[hsb]{0,0,0}
186 \testcolor[cmyk]{0,0,0,1}
187 \testcolor[gray]{0}
188 \noalign{\medskip}
189 \testcolor{gray}
190 \testcolor[rgb]{0.5,0.5,0.5}
191 \testcolor[hsb]{0,0,0.5}
192 \testcolor[cmyk]{0,0,0,0.5}
193 \testcolor[gray]{0.5}
194 \noalign{\medskip}
195 \testcolor{white}
196 \testcolor[rgb]{1,1,1}
197 \testcolor[hsb]{0,0,1}
198 \testcolor[cmyk]{0,0,0,0}
199 \testcolor[gray]{1}
200 \noalign{\medskip\smallskip}
201 f(color)box &
202 \multicolumn5{c}{\def\i{\fbox{\a}}\def\ii{\fcolorbox{red}{yellow}{\a}}\def\iii{\scalebox{3}}%
203 \def\a{{\setbox0=\hbox to3ex{\hss\textcolor{blue}{\vrule width .75ex height1.5ex depth1.5ex}\hss}\ht0=0pt\dp0=0pt\box0}}%
204 \fboxsep0.333ex \i\quad\ii\quad\iii\i\quad\iii\ii\quad\fboxrule.75ex \iii\i\quad\iii\ii}
205 \end{testcolors}
206 \vskip0.5cm
207 {\footnotesize This table was generated with \textbf{xcolor4.tex} which is part of the \textbf{xcolor} package \XCfileversion{} (\XCfiledate) by Uwe Kern.}
208 \vss}
209 \end{document}
210 \endinput
211 %%
212 %% End of file `xcolor4.tex'.