| 1 |
%#!pdflatex --synctex=1 test |
| 2 |
\documentclass{article}\listfiles\pagestyle{empty} |
| 3 |
|
| 4 |
\usepackage[table]{xcolor}%requires colortbl, array |
| 5 |
\usepackage{tikz}%requires xcolor |
| 6 |
\usetikzlibrary{calc, patterns, patterns.meta, fadings} |
| 7 |
\usepackage{tcolorbox}%requires tikz, xcolor |
| 8 |
\tcbuselibrary{xparse,hooks,skins} |
| 9 |
|
| 10 |
\usepackage{spotxcolor} |
| 11 |
\definespotcolor{DIC161s}{DIC 161s*}{0, 0.64, 1, 0} |
| 12 |
\definespotcolor{DIC256s}{DIC 256s*}{0.9, 0, 0.4, 0} % Green |
| 13 |
\definespotcolor{DIC200s}{DIC 200s*}{0.5, 0.8, 0, 0} % Purple |
| 14 |
|
| 15 |
% PANTONE Metallic Coated (true spot color — Lab→CMYK via ML model) |
| 16 |
\definespotcolor{PANTONE876C}{PANTONE 876 C}{0.4467, 0.7463, 0.9732, 0.0} |
| 17 |
|
| 18 |
% \NewSpotColorSpace{DIC} |
| 19 |
% \AddSpotColor{DIC}{DIC161s}{DIC\SpotSpace 161s*}{0 0.64 1 0} |
| 20 |
% \SetPageColorSpace{DIC} |
| 21 |
|
| 22 |
\newcommand\onelineskip{\par\vspace{\baselineskip}\par} |
| 23 |
|
| 24 |
\begin{document} |
| 25 |
\IfFileExists{test_version}{ |
| 26 |
\expandafter\title\expandafter{\input{test_version}} |
| 27 |
\author{} |
| 28 |
\maketitle |
| 29 |
}\relax |
| 30 |
|
| 31 |
\sffamily\bfseries |
| 32 |
|
| 33 |
\section{Basic Command Tests} |
| 34 |
|
| 35 |
DIC 161 |
| 36 |
|
| 37 |
\begingroup |
| 38 |
\color{DIC161s}DIC 161 |
| 39 |
\endgroup |
| 40 |
|
| 41 |
\begingroup |
| 42 |
\color{DIC161s!50}DIC 161 |
| 43 |
\endgroup |
| 44 |
|
| 45 |
\begingroup |
| 46 |
\color{DIC161s!25}DIC 161 |
| 47 |
\endgroup |
| 48 |
|
| 49 |
\textcolor{DIC161s}{DIC 161} |
| 50 |
|
| 51 |
\textcolor{DIC161s!50}{DIC 161} |
| 52 |
|
| 53 |
\textcolor{DIC161s!25}{DIC 161} |
| 54 |
|
| 55 |
|
| 56 |
\SpotColor{DIC161s}{1.0} |
| 57 |
DIC 161 |
| 58 |
|
| 59 |
\SpotColor{DIC161s}{0.5} |
| 60 |
DIC 161 |
| 61 |
|
| 62 |
\SpotColor{DIC161s}{0.25} |
| 63 |
DIC 161 |
| 64 |
|
| 65 |
\clearpage |
| 66 |
\pagecolor{DIC161s} |
| 67 |
|
| 68 |
DIC 161 |
| 69 |
|
| 70 |
\clearpage |
| 71 |
\pagecolor{DIC161s!50} |
| 72 |
|
| 73 |
50\% DIC 161 |
| 74 |
|
| 75 |
\clearpage |
| 76 |
\nopagecolor |
| 77 |
|
| 78 |
DIC 161 |
| 79 |
|
| 80 |
\clearpage |
| 81 |
\section{TikZ Environment Tests} |
| 82 |
|
| 83 |
% 1-a. 簡単な図形 |
| 84 |
% v0.14 NG: xetex, dvipdfmx |
| 85 |
% v0.15 OK: xetex, dvipdfmx |
| 86 |
% NG: colorspace 2019/03/25 v1.3 |
| 87 |
\subsection*{Simple Shapes} |
| 88 |
\begin{tikzpicture} |
| 89 |
\fill[DIC161s] (0,0) circle (1.5); |
| 90 |
\fill[DIC161s!50] (2,-1.5) rectangle (5,1.5); |
| 91 |
\draw[DIC161s, ultra thick, rounded corners] (6,-1.5) rectangle (9,1.5); |
| 92 |
\fill[DIC161s!20] (6,-1.5) rectangle (9,1.5); |
| 93 |
%% v1.4 NOTE: |
| 94 |
%% CMYK値: 0 0.512 0.8 0.2 |
| 95 |
%% 色: DIC161s!80!black |
| 96 |
%% 理由: 非比例混色(K成分0.2が追加)→ 正しいフォールバック |
| 97 |
\node[DIC161s!80!black] at (7.5, 0) {100\%, 50\%, 20\%}; |
| 98 |
\end{tikzpicture} |
| 99 |
|
| 100 |
\onelineskip |
| 101 |
|
| 102 |
% 1-b. 初等関数のグラフ (正弦波) |
| 103 |
\subsection*{Elementary Function Graph} |
| 104 |
\begin{tikzpicture}[domain=0:2*pi, scale=1.5, samples=100] |
| 105 |
% 軸 |
| 106 |
\draw[->, thick, DIC161s!70] (-0.2,0) -- (6.8,0) node[right] {$x$}; |
| 107 |
\draw[->, thick, DIC161s!70] (0,-1.2) -- (0,1.2) node[above] {$f(x)$}; |
| 108 |
% グラフ本体 |
| 109 |
\draw[color=DIC161s, ultra thick] plot (\x,{sin(\x r)}) node[right] {$\sin x$}; |
| 110 |
% 補助線 |
| 111 |
\draw[color=DIC161s!30, dashed] (0,1) -- (2*pi,1); |
| 112 |
\draw[color=DIC161s!30, dashed] (0,-1) -- (2*pi,-1); |
| 113 |
\end{tikzpicture} |
| 114 |
|
| 115 |
\onelineskip |
| 116 |
|
| 117 |
% 1-c. 別行立て数式 (TikZノードを使った装飾付き) |
| 118 |
\subsection*{Riemann Zeta Function} |
| 119 |
\begin{tikzpicture} |
| 120 |
\node[ |
| 121 |
draw=DIC161s, |
| 122 |
line width=1.5pt, |
| 123 |
fill=DIC161s!5, |
| 124 |
rounded corners=2ex, |
| 125 |
inner sep=1.5em |
| 126 |
] { |
| 127 |
%% v1.4 NOTE: |
| 128 |
%% CMYK値: 0 0.512 0.8 0.2 |
| 129 |
%% 色: DIC161s!80!black |
| 130 |
%% 理由: 非比例混色(K成分0.2が追加)→ 正しいフォールバック |
| 131 |
\color{DIC161s!80!black} |
| 132 |
$\displaystyle |
| 133 |
\zeta(s) |
| 134 |
= \sum_{n=1}^\infty \frac{1}{n^s} |
| 135 |
= \frac{1}{\Gamma(s)} \int_0^\infty \frac{x^{s-1}}{e^x - 1} \, dx |
| 136 |
\quad (\Re(s) > 1) |
| 137 |
$ |
| 138 |
}; |
| 139 |
\end{tikzpicture} |
| 140 |
|
| 141 |
\clearpage |
| 142 |
% 1-d. PGF/TikZ Stroke and Fill Tests |
| 143 |
% v0.1x: Test separation of stroke (CS/SC) and fill (cs/sc) operators |
| 144 |
\subsection*{Stroke and Fill Separation} |
| 145 |
|
| 146 |
\begin{tikzpicture} |
| 147 |
% Test 1: Fill with spot color, stroke with black |
| 148 |
\draw[ultra thick, fill=DIC161s!40] (0,0) circle (1.2) node[black, align=center] {Fill:\\40\% DIC161s}; |
| 149 |
|
| 150 |
% Test 2: Stroke with spot color, fill with gray |
| 151 |
\draw[DIC161s, ultra thick, fill=gray!20] (3.5, -1.2) rectangle (6.5, 1.2) node[pos=0.5, black, align=center] {Stroke:\\100\% DIC161s}; |
| 152 |
|
| 153 |
% Test 3: Stroke and Fill with DIFFERENT spot color tints |
| 154 |
%% v1.4 NOTE: |
| 155 |
%% CMYK値: 0 0.512 0.8 0.2 |
| 156 |
%% 色: DIC161s!80!black |
| 157 |
%% 理由: 非比例混色(K成分0.2が追加)→ 正しいフォールバック |
| 158 |
\draw[DIC161s, line width=3pt, fill=DIC161s!15, rounded corners] (7.5, -1.2) rectangle (10.5, 1.2) node[pos=0.5, DIC161s!80!black, align=center] {Stroke: 100\%\\Fill: 15\%}; |
| 159 |
\end{tikzpicture} |
| 160 |
|
| 161 |
\onelineskip |
| 162 |
|
| 163 |
% 1-e. Low-level PGF commands test (Checking pgfsys integration) |
| 164 |
\subsection*{Low-level PGF Color Commands} |
| 165 |
% Directly calling PGF commands to ensure the driver macros (\pgfsys@color@...) are hooked correctly. |
| 166 |
\begin{pgfpicture} |
| 167 |
% Set fill color to 60% tint, stroke color to 100% |
| 168 |
\pgfsetfillcolor{DIC161s!60} |
| 169 |
\pgfsetstrokecolor{DIC161s} |
| 170 |
\pgfsetlinewidth{4pt} |
| 171 |
|
| 172 |
\pgfpathcircle{\pgfpoint{2cm}{0cm}}{1.5cm} |
| 173 |
\pgfusepath{fill,stroke} |
| 174 |
|
| 175 |
\pgftext[x=2cm, y=0cm]{\sffamily\color{white} PGF Native} |
| 176 |
\end{pgfpicture} |
| 177 |
|
| 178 |
\onelineskip |
| 179 |
|
| 180 |
% 1-f. Pattern Fill Tests (Hatching) |
| 181 |
\subsection*{Pattern Fill Tests (Hatching)} |
| 182 |
|
| 183 |
% v0.15: |
| 184 |
% * (u)platex+dvipdfmx, xelatex: OK |
| 185 |
% * pdflatex, lualatex: NG |
| 186 |
% v0.16: all engines OK |
| 187 |
% v0.17: Test 1: all engines OK, Test 2,3: NG |
| 188 |
%% v1.4 NOTE: |
| 189 |
%% CMYK値: 0 0.512 0.8 0.2 |
| 190 |
%% 色: DIC161s!80!black |
| 191 |
%% 理由: 非比例混色(K成分0.2が追加)→ 正しいフォールバック |
| 192 |
\begin{tikzpicture} |
| 193 |
% Test 1: 古い patterns ライブラリを使った標準的な斜線ハッチ |
| 194 |
\draw[DIC161s, ultra thick, pattern=north east lines, pattern color=DIC161s] |
| 195 |
(0,0) rectangle (3, 2) |
| 196 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC161s!80!black] {Basic Hatch}; |
| 197 |
|
| 198 |
% Test 2: patterns.meta ライブラリを使ったカスタマイズ斜線 (60% tint) |
| 199 |
\draw[DIC161s, ultra thick, pattern={Lines[angle=45, distance=6pt, line width=1.5pt]}, pattern color=DIC161s!60] |
| 200 |
(4,0) rectangle (7, 2) |
| 201 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC161s!80!black] {Meta Lines (60\%)}; |
| 202 |
|
| 203 |
% Test 3: patterns.meta ライブラリを使ったドットパターン (40% tint) |
| 204 |
\draw[DIC161s, ultra thick, pattern={Dots[distance=3mm, radius=1mm]}, pattern color=DIC161s!40] |
| 205 |
(8,0) rectangle (11, 2) |
| 206 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC161s!80!black] {Meta Dots (40\%)}; |
| 207 |
\end{tikzpicture} |
| 208 |
|
| 209 |
\clearpage |
| 210 |
|
| 211 |
% 1-g. Fading Tests (Transparency Masks) |
| 212 |
\subsection*{Fading Tests (Transparency Masks)} |
| 213 |
|
| 214 |
\begin{tikzpicture} |
| 215 |
% 背景として特色の網点を敷く |
| 216 |
\fill[DIC161s!20] (-1,-1) rectangle (10, 2); |
| 217 |
|
| 218 |
% Test 1: 左から右へ透明になるフェーディング |
| 219 |
\fill[DIC161s, path fading=east] (0, 0) rectangle (4, 1.5) |
| 220 |
node[pos=0.5, text=white, font=\sffamily\small] {Fading East}; |
| 221 |
|
| 222 |
% Test 2: 中心から外側へ透明になる円形フェーディング |
| 223 |
\fill[DIC161s, path fading=circle with fuzzy edge 20 percent] (7, 0.5) circle (1.2) |
| 224 |
node[text=white, font=\sffamily\small] {Fuzzy Circle}; |
| 225 |
\end{tikzpicture} |
| 226 |
|
| 227 |
\onelineskip |
| 228 |
|
| 229 |
% 1-h. Shading Tests (Gradients) |
| 230 |
\subsection*{Shading Tests (Gradients)} |
| 231 |
% Note: Standard PGF shadings might fallback to RGB natively depending on the driver. |
| 232 |
% This tests if xcolor's CMYK definition survives the gradient creation. |
| 233 |
\begin{tikzpicture} |
| 234 |
% Test 1: 特色100%から特色10%への線形グラデーション (left to right) |
| 235 |
\shade[left color=DIC161s, right color=DIC161s!10] (0,0) rectangle (4, 1.5) |
| 236 |
node[pos=0.5, font=\sffamily\small, text=white] {Linear Shading}; |
| 237 |
|
| 238 |
% Test 2: 中心が白、外側が特色の放射状グラデーション |
| 239 |
\shade[inner color=white, outer color=DIC161s] (7, 0.5) circle (1.2) |
| 240 |
node[font=\sffamily\small, text=white] {Radial Shading}; |
| 241 |
\end{tikzpicture} |
| 242 |
|
| 243 |
\clearpage |
| 244 |
|
| 245 |
\onelineskip |
| 246 |
|
| 247 |
% 1-i. Opacity and Blend Modes |
| 248 |
\subsection*{Opacity and Blend Modes} |
| 249 |
\begin{tikzpicture} |
| 250 |
% 背景 |
| 251 |
\fill[gray!20] (0,0) rectangle (8,3); |
| 252 |
|
| 253 |
% Test 1: Tint (網点) + Opacity (アルファチャンネル透過) の複合 |
| 254 |
% !80 で色を薄くしつつ、さらに opacity=0.5 で透かすという、PDFオペレータ的には全く異なる2つの処理の同時適用 |
| 255 |
\fill[DIC161s!80, opacity=0.5] (1.5, 1.5) circle (1.2) |
| 256 |
node[black, opacity=1, font=\sffamily\small, align=center] {Tint: 80\%\\Opacity: 0.5}; |
| 257 |
|
| 258 |
% Test 2: ブレンドモード (乗算 / Multiply) |
| 259 |
% 特色とプロセスカラー(Cyan, Yellow)を乗算モードで重ねる |
| 260 |
\begin{scope}[blend mode=multiply] |
| 261 |
\fill[DIC161s] (5.5, 1.8) circle (1); |
| 262 |
\fill[cyan] (5.0, 1.0) circle (1); |
| 263 |
\fill[yellow] (6.0, 1.0) circle (1); |
| 264 |
\end{scope} |
| 265 |
\node[font=\sffamily\small] at (5.5, 3.2) {Multiply Blend: DIC161s + Cyan + Yellow}; |
| 266 |
\end{tikzpicture} |
| 267 |
|
| 268 |
\onelineskip |
| 269 |
|
| 270 |
% 1-j. Mixed Color Space Shading |
| 271 |
\subsection*{Mixed Color Space Shading} |
| 272 |
% 異なるカラーモデル(RGBの赤 と CMYK/特色のDIC161)を両端に指定したグラデーション。 |
| 273 |
% PGFが内部でこれをどう補間し、どのカラースペース(おそらくRGBかCMYKに強制フォールバック)で出力するか。エラーでクラッシュしないかが重要。 |
| 274 |
\begin{tikzpicture} |
| 275 |
\shade[left color=red, right color=DIC161s] (0,0) rectangle (8, 1.5) |
| 276 |
node[pos=0.5, font=\sffamily\small, text=white] {Red (RGB) to DIC161s (CMYK)}; |
| 277 |
\end{tikzpicture} |
| 278 |
|
| 279 |
\clearpage |
| 280 |
|
| 281 |
% ========================================== |
| 282 |
\section{Zebra-striped Table Test} |
| 283 |
|
| 284 |
% 行の偶奇で背景色を変える (colortbl の機能) |
| 285 |
\rowcolors{2}{DIC161s!10}{white} |
| 286 |
\begin{center} |
| 287 |
\renewcommand{\arraystretch}{1.5} |
| 288 |
\begin{tabular}{p{3cm} p{5cm} c} |
| 289 |
% ヘッダー行 |
| 290 |
\rowcolor{DIC161s} |
| 291 |
\textcolor{white}{\textbf{Parameter}} & \textcolor{white}{\textbf{Description}} & \textcolor{white}{\textbf{Value}} \\ |
| 292 |
Alpha & First coefficient used in calc & 0.98 \\ |
| 293 |
Beta & Secondary alignment offset & 1.24 \\ |
| 294 |
Gamma & Spot color tint percentage & 50\% \\ |
| 295 |
Delta & Base margin parameter & 4.00 \\ |
| 296 |
Epsilon & Threshold for error correction & 0.01 \\ |
| 297 |
\end{tabular} |
| 298 |
\end{center} |
| 299 |
|
| 300 |
\onelineskip |
| 301 |
|
| 302 |
% ========================================== |
| 303 |
\section{tcolorbox Test} |
| 304 |
|
| 305 |
\begin{tcolorbox}[ |
| 306 |
enhanced, % skinsライブラリの機能 |
| 307 |
colframe=DIC161s, % 枠線の色 |
| 308 |
colback=DIC161s!5, % 背景色 (5% tint) |
| 309 |
coltitle=white, % タイトル文字色 |
| 310 |
colbacktitle=DIC161s!80,% タイトル背景色 (80% tint) |
| 311 |
fonttitle=\sffamily\bfseries\Large, |
| 312 |
title={spotxcolor $\times$ tcolorbox}, |
| 313 |
drop fuzzy shadow=DIC161s!30 % 影の色にも特色を指定 |
| 314 |
] |
| 315 |
This is an example of \textbf{tcolorbox} seamlessly integrating with the \textsf{spotxcolor} package. |
| 316 |
|
| 317 |
\onelineskip |
| 318 |
|
| 319 |
\begin{itemize} |
| 320 |
\item The outer frame is drawn in \textcolor{DIC161s}{100\% DIC161}. |
| 321 |
\item The title background uses \textcolor{DIC161s!80}{80\% DIC161}. |
| 322 |
\item The content background uses a subtle \textcolor{DIC161s!10}{10\% DIC161} tint. |
| 323 |
\item Even the drop shadow is rendered using a \textcolor{DIC161s!30}{30\% DIC161} tint! |
| 324 |
\end{itemize} |
| 325 |
\end{tcolorbox} |
| 326 |
|
| 327 |
\clearpage |
| 328 |
|
| 329 |
% ========================================== |
| 330 |
\section{PANTONE Spot Color Test} |
| 331 |
|
| 332 |
% v1.5: Test PANTONE Metallic Coated (true spot color) |
| 333 |
% PDF Name "PANTONE 876 C" must appear as /PANTONE#20876#20C in QDF |
| 334 |
\subsection*{PANTONE 876 C (Metallic Gold)} |
| 335 |
|
| 336 |
\textcolor{PANTONE876C}{PANTONE 876 C at 100\% tint.} |
| 337 |
|
| 338 |
\textcolor{PANTONE876C!50}{PANTONE 876 C at 50\% tint.} |
| 339 |
|
| 340 |
\textcolor{PANTONE876C!25}{PANTONE 876 C at 25\% tint.} |
| 341 |
|
| 342 |
{\color{PANTONE876C}\rule{\linewidth}{4pt}} |
| 343 |
\vskip2pt |
| 344 |
{\color{PANTONE876C!50}\rule{\linewidth}{4pt}} |
| 345 |
\vskip2pt |
| 346 |
{\color{PANTONE876C!25}\rule{\linewidth}{4pt}} |
| 347 |
|
| 348 |
\onelineskip |
| 349 |
|
| 350 |
% Tint series |
| 351 |
\noindent |
| 352 |
{\color{PANTONE876C!10}\rule{0.1\linewidth}{10pt}}% |
| 353 |
{\color{PANTONE876C!20}\rule{0.1\linewidth}{10pt}}% |
| 354 |
{\color{PANTONE876C!30}\rule{0.1\linewidth}{10pt}}% |
| 355 |
{\color{PANTONE876C!40}\rule{0.1\linewidth}{10pt}}% |
| 356 |
{\color{PANTONE876C!50}\rule{0.1\linewidth}{10pt}}% |
| 357 |
{\color{PANTONE876C!60}\rule{0.1\linewidth}{10pt}}% |
| 358 |
{\color{PANTONE876C!70}\rule{0.1\linewidth}{10pt}}% |
| 359 |
{\color{PANTONE876C!80}\rule{0.1\linewidth}{10pt}}% |
| 360 |
{\color{PANTONE876C!90}\rule{0.1\linewidth}{10pt}}% |
| 361 |
{\color{PANTONE876C}\rule{0.1\linewidth}{10pt}} |
| 362 |
|
| 363 |
\onelineskip |
| 364 |
|
| 365 |
\subsection*{TikZ with PANTONE Metallic} |
| 366 |
|
| 367 |
\begin{tikzpicture} |
| 368 |
% DIC + PANTONE coexistence |
| 369 |
\fill[PANTONE876C] (0,0) rectangle (3,2) |
| 370 |
node[pos=0.5, white, font=\sffamily\small] {PANTONE 876 C}; |
| 371 |
\fill[DIC161s] (3.5,0) rectangle (6.5,2) |
| 372 |
node[pos=0.5, white, font=\sffamily\small] {DIC 161s*}; |
| 373 |
\fill[PANTONE876C!40] (7,0) rectangle (10,2) |
| 374 |
node[pos=0.5, font=\sffamily\small] {876 C (40\%)}; |
| 375 |
\end{tikzpicture} |
| 376 |
|
| 377 |
\clearpage |
| 378 |
|
| 379 |
% ========================================== |
| 380 |
\section{Backward Compatibility Tests} |
| 381 |
|
| 382 |
\subsection*{\textsf{colorspace} package macros} |
| 383 |
|
| 384 |
This page tests the dummy backward compatibility macros for the \textsf{colorspace} package. |
| 385 |
They should produce no visible output and cause no compilation errors. |
| 386 |
\onelineskip |
| 387 |
|
| 388 |
Testing \verb|\pagecolorspace|... |
| 389 |
\pagecolorspace{DIC161s} % Should silently do nothing |
| 390 |
\onelineskip |
| 391 |
|
| 392 |
Testing \verb|\resetpagecolorspace|... |
| 393 |
\resetpagecolorspace % Should silently do nothing |
| 394 |
\onelineskip |
| 395 |
|
| 396 |
If the document compiles successfully and this page renders without errors, the backward compatibility wrappers are working perfectly. |
| 397 |
|
| 398 |
\clearpage |
| 399 |
|
| 400 |
% ========================================== |
| 401 |
\section{Multiple Spot Color Tests} |
| 402 |
% ========================================== |
| 403 |
% v1.5: Three distinct spot colors used simultaneously. |
| 404 |
% Verify that each color registers its own Separation CS, Pattern CS, |
| 405 |
% and resource dictionary entries without collision. |
| 406 |
|
| 407 |
\subsection*{Three Spot Colors: Basic} |
| 408 |
|
| 409 |
\textcolor{DIC161s}{DIC 161s (Vermilion) --- 100\%}\par |
| 410 |
\textcolor{DIC256s}{DIC 256s (Green) --- 100\%}\par |
| 411 |
\textcolor{DIC200s}{DIC 200s (Purple) --- 100\%} |
| 412 |
|
| 413 |
\onelineskip |
| 414 |
|
| 415 |
\textcolor{DIC161s!50}{DIC 161s --- 50\%}\par |
| 416 |
\textcolor{DIC256s!50}{DIC 256s --- 50\%}\par |
| 417 |
\textcolor{DIC200s!50}{DIC 200s --- 50\%} |
| 418 |
|
| 419 |
\onelineskip |
| 420 |
|
| 421 |
\subsection*{Three Spot Colors: TikZ Fill and Stroke} |
| 422 |
|
| 423 |
\begin{tikzpicture} |
| 424 |
% Vermilion circle |
| 425 |
\fill[DIC161s] (0,0) circle (1.2); |
| 426 |
\fill[DIC161s!30] (0,-1.8) rectangle (2.4,1.8); |
| 427 |
\fill[DIC161s] (0,0) circle (1.2); |
| 428 |
|
| 429 |
% Green rectangle |
| 430 |
\draw[DIC256s, ultra thick, fill=DIC256s!20, rounded corners] |
| 431 |
(3,-1.2) rectangle (6,1.2); |
| 432 |
\node[DIC256s] at (4.5,0) {\textsf{DIC 256s}}; |
| 433 |
|
| 434 |
% Purple diamond |
| 435 |
\fill[DIC200s!60] (8.5,0) -- (9.5,1.2) -- (10.5,0) -- (9.5,-1.2) -- cycle; |
| 436 |
\draw[DIC200s, ultra thick] (8.5,0) -- (9.5,1.2) -- (10.5,0) -- (9.5,-1.2) -- cycle; |
| 437 |
\node[white, font=\sffamily\small] at (9.5,0) {DIC 200s}; |
| 438 |
\end{tikzpicture} |
| 439 |
|
| 440 |
\onelineskip |
| 441 |
|
| 442 |
\subsection*{Three Spot Colors: Multiply Blend Mode} |
| 443 |
|
| 444 |
\begin{tikzpicture} |
| 445 |
\fill[gray!10] (-1.5,-2) rectangle (4.5,3); |
| 446 |
\begin{scope}[blend mode=multiply] |
| 447 |
\fill[DIC161s] (90:1) circle (1.3); |
| 448 |
\fill[DIC256s] (210:1) circle (1.3); |
| 449 |
\fill[DIC200s] (330:1) circle (1.3); |
| 450 |
\end{scope} |
| 451 |
\node[font=\sffamily\small] at (1.5, 2.8) {Multiply: DIC161s + DIC256s + DIC200s}; |
| 452 |
\end{tikzpicture} |
| 453 |
|
| 454 |
\onelineskip |
| 455 |
|
| 456 |
\subsection*{Three Spot Colors: Pattern Fills} |
| 457 |
|
| 458 |
\begin{tikzpicture} |
| 459 |
% DIC161s pattern |
| 460 |
\draw[DIC161s, ultra thick, |
| 461 |
pattern={Lines[angle=45, distance=6pt, line width=1.5pt]}, |
| 462 |
pattern color=DIC161s!60] |
| 463 |
(0,0) rectangle (3, 2) |
| 464 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC161s] {161s Lines}; |
| 465 |
|
| 466 |
% DIC256s pattern |
| 467 |
\draw[DIC256s, ultra thick, |
| 468 |
pattern={Lines[angle=-45, distance=6pt, line width=1.5pt]}, |
| 469 |
pattern color=DIC256s!60] |
| 470 |
(4,0) rectangle (7, 2) |
| 471 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC256s] {256s Lines}; |
| 472 |
|
| 473 |
% DIC200s dots |
| 474 |
\draw[DIC200s, ultra thick, |
| 475 |
pattern={Dots[distance=3mm, radius=1mm]}, |
| 476 |
pattern color=DIC200s!50] |
| 477 |
(8,0) rectangle (11, 2) |
| 478 |
node[pos=0.5, fill=white, inner sep=2pt, font=\sffamily\small, text=DIC200s] {200s Dots}; |
| 479 |
\end{tikzpicture} |
| 480 |
|
| 481 |
\onelineskip |
| 482 |
|
| 483 |
\subsection*{Three Spot Colors: Zebra-striped Table} |
| 484 |
|
| 485 |
\rowcolors{2}{DIC256s!8}{white} |
| 486 |
\begin{center} |
| 487 |
\renewcommand{\arraystretch}{1.5} |
| 488 |
\begin{tabular}{p{3cm} p{5cm} c} |
| 489 |
\rowcolor{DIC200s} |
| 490 |
\textcolor{white}{\textbf{Color}} & \textcolor{white}{\textbf{PDF Name}} & \textcolor{white}{\textbf{Base CMYK}} \\ |
| 491 |
\textcolor{DIC161s}{DIC 161s} & DIC 161s* (Vermilion) & (0, 0.64, 1, 0) \\ |
| 492 |
\textcolor{DIC256s}{DIC 256s} & DIC 256s* (Green) & (0.9, 0, 0.4, 0) \\ |
| 493 |
\textcolor{DIC200s}{DIC 200s} & DIC 200s* (Purple) & (0.5, 0.8, 0, 0) \\ |
| 494 |
\end{tabular} |
| 495 |
\end{center} |
| 496 |
|
| 497 |
\onelineskip |
| 498 |
|
| 499 |
\subsection*{Three Spot Colors: tcolorbox} |
| 500 |
|
| 501 |
\begin{tcolorbox}[ |
| 502 |
enhanced, |
| 503 |
colframe=DIC256s, |
| 504 |
colback=DIC256s!5, |
| 505 |
coltitle=white, |
| 506 |
colbacktitle=DIC256s!80, |
| 507 |
fonttitle=\sffamily\bfseries\Large, |
| 508 |
title={Three-Color Harmony}, |
| 509 |
drop fuzzy shadow=DIC256s!30 |
| 510 |
] |
| 511 |
This box frame uses \textcolor{DIC256s}{\textbf{DIC 256s}} (Green). |
| 512 |
|
| 513 |
Inside, we can mix all three spot colors freely: |
| 514 |
\textcolor{DIC161s}{\textbf{Vermilion (DIC 161s)}}, |
| 515 |
\textcolor{DIC256s}{\textbf{Green (DIC 256s)}}, and |
| 516 |
\textcolor{DIC200s}{\textbf{Purple (DIC 200s)}}. |
| 517 |
|
| 518 |
\onelineskip |
| 519 |
|
| 520 |
Tints also work for each: |
| 521 |
\textcolor{DIC161s!50}{161s @ 50\%}, |
| 522 |
\textcolor{DIC256s!50}{256s @ 50\%}, |
| 523 |
\textcolor{DIC200s!50}{200s @ 50\%}. |
| 524 |
\end{tcolorbox} |
| 525 |
|
| 526 |
\clearpage |
| 527 |
|
| 528 |
% ========================================== |
| 529 |
\section{pdfmanagement Compatibility Test} |
| 530 |
% ========================================== |
| 531 |
% v1.5: This section tests basic compilation when pdfmanagement is NOT active. |
| 532 |
% The actual pdfmanagement interaction test requires \DocumentMetadata{} before |
| 533 |
% \documentclass, which makes it a separate test file (test-pdfmanagement.tex). |
| 534 |
% |
| 535 |
% Here we verify that spotxcolor's resource management works correctly in the |
| 536 |
% traditional (non-pdfmanagement) mode, i.e., via \pgfutil@addpdfresource@colorspaces |
| 537 |
% and direct \pdfpageresources manipulation. |
| 538 |
|
| 539 |
\subsection*{Resource Registration Verification} |
| 540 |
|
| 541 |
This page verifies that all three spot color resources are registered correctly |
| 542 |
in the traditional (non-pdfmanagement) mode: |
| 543 |
|
| 544 |
\begin{itemize} |
| 545 |
\item \textcolor{DIC161s}{\textbf{DIC161s}}: Separation CS + Pattern CS registered |
| 546 |
\item \textcolor{DIC256s}{\textbf{DIC256s}}: Separation CS + Pattern CS registered |
| 547 |
\item \textcolor{DIC200s}{\textbf{DIC200s}}: Separation CS + Pattern CS registered |
| 548 |
\end{itemize} |
| 549 |
|
| 550 |
\onelineskip |
| 551 |
|
| 552 |
To confirm correct PDF structure, inspect the compiled PDF with a tool such as |
| 553 |
\texttt{qpdf --json} or Adobe Preflight. Each page should contain |
| 554 |
\texttt{/ColorSpace} entries for all three spot colors. |
| 555 |
|
| 556 |
\onelineskip |
| 557 |
|
| 558 |
\subsection*{Note on pdfmanagement Testing} |
| 559 |
|
| 560 |
A dedicated test file \texttt{test-pdfmanagement.tex} should be used to test the |
| 561 |
\verb|\DocumentMetadata{}| pathway (Issue \#2). That file places |
| 562 |
\verb|\DocumentMetadata{}| \emph{before} \verb|\documentclass| and exercises the |
| 563 |
same spot color commands to verify that \textsf{spotxcolor} correctly switches to |
| 564 |
the \verb|\pdfmanagement_add:nnn| API when pdfmanagement is active. |
| 565 |
|
| 566 |
\end{document} |