Steps to Reproduce
1. Declare {xcolor} package with [cmyk] color mode option.
2. Define custom color: vermillion
3. Draw line for rectangle with custom color.
BUG: Line color is black, not custom color.
Code: Select all
% File name: TitlePageBorder.tex
% LaTeX version: LaTeX2e
% TeX compiler: lualatex
% Updated: 4/2/2022
% Preamble -------------------------------------------------------
\documentclass{article}
\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fontspec} % Supports OpenType fonts (*.OTF).
\usepackage[cmyk]{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\geometry{paperwidth=105mm,
paperheight=160mm,
textwidth=216pt, % 216pt ~= 76mm
textheight=320pt % 320pt ~= 113mm
}
% Declare title font.
\newfontfamily{\MyPerpetuaTitlingMTFont}[Ligatures = {Common, Rare}]{Perpetua Titling MT}
% Define custom color: myVermillion
% Vermillion values at: https://www.colorhexa.com/e34234
\definecolor{myVermillion}{cmyk}{10, 90, 90, 0}
\begin{document} % ----------------------------------------------
\begin{titlepage}
\begin{center}
% Typeset title page border: rectangle.
\begin{tikzpicture}[overlay,remember picture]
\draw [line width=1.5pt, color=myVermillion]
($ (current page.north west) + (1cm,-1cm) $)
rectangle
($ (current page.south east) + (-1cm,1cm) $);
\end{tikzpicture}
% Typeset title page text.
\vspace*{50pt}
\fontspec{Perpetua Titling MT Bold}\par
\fontsize{18pt}{20pt}
\selectfont
{CENTERED TITLE}%
\end{center}
\end{titlepage}
\end{document} % ------------------------------------------------