Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xelatex compatibility #8

Closed
cgnieder opened this issue Nov 20, 2015 · 7 comments
Closed

xelatex compatibility #8

cgnieder opened this issue Nov 20, 2015 · 7 comments
Labels
bug Something isn't working major

Comments

@cgnieder
Copy link
Owner

Original report by Panteleimon Korolev (Bitbucket: pantlmn, GitHub: pantlmn).


An attempt to use both fnpct and xespotcolor (for documents using PANTONE colors) gives an error:
! LaTeX Error: Option clash for package color.
or:
! Package xcolor Error: Undefined color model `spotcolor'.

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


This MWE:

#!latex

\documentclass{article}
\usepackage{fnpct}
\usepackage{xespotcolor}
\begin{document}

foo

\end{document}

runs without any errors.

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


This is not an issue with fnpct:

#!latex

\documentclass{article}
\usepackage{tikz}
\usepackage{xespotcolor}
\begin{document}

foo

\end{document}

or

#!latex

\documentclass{article}
\usepackage{xcolor}
\usepackage{xespotcolor}
\begin{document}

foo

\end{document}

give the same error. The reason is that xespotcolor loads

#!latex

\RequirePackage[xetex]{color}

when compiled with XeLaTeX. The solution is the same as always in such cases: first try reversing the order of the package loading. If this doesn't help, pass the option explicitly:

#!latex


\documentclass{article}
\PassOptionsToPackage{xetex}{color}
\usepackage{fnpct}
\usepackage{xespotcolor}
\begin{document}

foo

\end{document}

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


This is not a bug of fnpct.

@cgnieder
Copy link
Owner Author

Original comment by Panteleimon Korolev (Bitbucket: pantlmn, GitHub: pantlmn).


Sorry for blaming you and the beautiful fnpct package.

But \PassOptionsToPackage actually does not help :-(

M(non)WE (an attempt to actually use xespotcolor fails):

#!latex

\documentclass{article}
\PassOptionsToPackage{xetex}{color}
\usepackage{fnpct}
\usepackage{xespotcolor}

\NewSpotColorSpace{Pantone}
\AddSpotColor{Pantone} {KINOVAR} {PANTONE\SpotSpace 200\SpotSpace U} {.09 .86 .5 .1}
\definecolor{kinovarPantone}{spotcolor}{KINOVAR,1.0}
\SetPageColorSpace{Pantone}

\begin{document}

foo

\end{document}

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


This is not a fnpct issue:

#!latex

\documentclass{article}
\PassOptionsToPackage{xetex}{color}
\usepackage{xcolor}
\usepackage{xespotcolor}

\NewSpotColorSpace{Pantone}
\AddSpotColor{Pantone} {KINOVAR} {PANTONE\SpotSpace 200\SpotSpace U} {.09 .86 .5 .1}
\definecolor{kinovarPantone}{spotcolor}{KINOVAR,1.0}
\SetPageColorSpace{Pantone}

\begin{document}

foo

\end{document}

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


You should maybe ask a question on a help platform like tex.stackexchange.com

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Removing version: 0.4 (automated comment)

@cgnieder cgnieder added major bug Something isn't working labels Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant