liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.27k stars 331 forks source link

Colors under dvipsnames are different when using AltaCV #54

Closed rajodecastro closed 3 years ago

rajodecastro commented 4 years ago

Colors seem to shift when loading the altacv document type.

Using article document type:

\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\begin{document}
Using article:
\large
\fcolorbox{Aquamarine}{Aquamarine}{Aquamarine}
\fcolorbox{Emerald}{Emerald}{Emerald}
\fcolorbox{Goldenrod}{Goldenrod}{Goldenrod}
\end{document}

article-color.pdf

Using altacv document type:

\PassOptionsToPackage{dvipsnames}{xcolor}
\documentclass{altacv}
\begin{document}
Using AltaCV:
\fcolorbox{Aquamarine}{Aquamarine}{Aquamarine}
\fcolorbox{Emerald}{Emerald}{Emerald}
\fcolorbox{Goldenrod}{Goldenrod}{Goldenrod}
\end{document}

altacv-color.pdf

liantze commented 4 years ago

altacv.cls now loads \RequirePackage[a-1b]{pdfx}, which uses an RGB colour profile; but dvipsnames colours are defined in CMYK. Related: https://tex.stackexchange.com/questions/464079/pdfx-cmyk-color-profile-in-pdf-a but it doesn't seem to work for me.

(I should remove the example \PassOptionsToPackage in sample.tex)