I have the following diagram using the tikz-cd package:
\begin{tikzcd}[]
A \rar[equal] & B \\
C \uar[twoheadleftarrow,shift right=.60ex]
\uar[hookrightarrow,shift left=.60ex]
\end{tikzcd}
This compiles perfectly well on my own computer, but when submitting to the arXiv produces a number of compile errors.
- ! Package pgfkeys Error: I do not know the key '/tikz/equal' and I am going to ignore it. Perhaps you misspelled it.
- ! Package pgfkeys Error: I do not know the key '/tikz/shift right' and I am going to ignore it. Perhaps you misspelled it.
It seems the source of the problem is that arXiv uses older versions of tikz-cd and pgf, which do not support these keys.
The first error can be worked around by replacing [equal]
with [-, double equal sign distance]
(see e.g. here), however I don't know how to achieve the results of the shifts right and left with other commands. Does anybody know another way to achieve the same results, preferably with minimal extra work (i.e. I'd rather avoid translating all my diagrams to xy-pic
if possible)? Including an updated tikzlibrarycd.code.tex
with the submission (as suggested here) doesn't work for the reasons specified in that answer.