T-F-S / csvsimple

A LaTeX package for lightweight CSV file processing.
http://www.ctan.org/pkg/csvsimple
LaTeX Project Public License v1.3c
24 stars 5 forks source link

conflict between csvsimple and ctable? #9

Closed alan-isaac closed 3 years ago

alan-isaac commented 4 years ago

The following MWE produces an error upon compilation:

\documentclass{article}
\usepackage{ctable} 
\usepackage{csvsimple}
\begin{document}
test
\end{document} 

The error is:

! Undefined control sequence.
\pgfutil@addpdfresource@extgs ...urce@extgs@plain 
                                                  {#1}
T-F-S commented 4 years ago

This is not a csvsimple problem, but a conflict between ctable and pgfrcs which loads pgfutil-common.tex. Also see https://tex.stackexchange.com/a/536744

An MWE to show the error is

\documentclass{article}
\usepackage{ctable}
\usepackage{pgfrcs}

\begin{document}
test
\end{document}

ctable seems to have a tikz detection, but fails to detect pgf. One gets a package error, if tikz is loaded after ctable.

A workaround is to load tikz additionally before ctable:

\documentclass{article}
\usepackage{tikz}
\usepackage{ctable}
\usepackage{csvsimple}

\begin{document}
test
\end{document}

Maybe, you should contact the author of ctable to detect pgfrcs instead of / additional to tikz.