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
Code, edit and compile here:
% 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 ~= 76mmtextheight=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}