I have to show up with several cdx files in my document.
I didn't find a ChemDraw handling package for LaTeX, so I took the cdx files converted to pdf and imported them in inkscape, which I then could save as tex files containing the cdx content as pspicture.
Now I wanted to include the tex files into my LaTeX document, which couldn't deal with that. I got an Undefined control sequence in my document.aux (troubling line is bold):
\relax
\providecommand\hyper@newdestlabel[2]{}
\catcode `"\active
\bibstyle{biblatex}
\bibdata{x-2-2-blx,quellen}
\citation{biblatex-control}
\abx@aux@refcontext{none/global//global/global}
\abx@aux@refcontext{none/global//global/global}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
I tried to reduce the problem to an MWE recognizing it wasn't minimal and now, I cannot reproduce it :-/
With the folliwing MWE, I got an Undefined control sequence for the third last line:
\documentclass[a4paper,twoside,twocolumn,9pt]{article}
%\usepackage[pdf]{pstricks} - either one of two
%\usepackage{pstricks-add} - commented out
\begin{document}
%LaTeX with PSTricks extensions
%%Creator: inkscape 0.92.3
%%Please note this file requires PSTricks extensions
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(718,922)
{
\newrgbcolor{curcolor}{1 0 0}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(41.9793042,780.79536604)
\lineto(37.03209961,788.66890119)
\lineto(37.06490601,788.0324571)
\lineto(37.0977124,786.93672346)
\closepath
}
}
\end{pspicture}
\end{document}
\abx@aux@refcontextis abiblatexauxiliary command. It will only be recognised if you havebiblatexloaded. The only way this command can end up in the aux file of a document that does not loadbiblatexis if the document used to have\usepackage{biblatex}and that line was removed on the last run. In your MWE you don't loadbiblatex, so you can't reproduce the problem there. Did you try to delete the temporary files (.aux, ...) and compile again? – moewe Apr 04 '18 at 21:45*.cdxfiles, but I didn't find any package to include a*.cdx; althoughBKChemcan save files ascdxit couldn't read/open the ChemDraw files at all -.- (which makes me wonder wether that's "real"cdx) I don't want to write this work withLibreOfficeor - way more frustrating - withMS Office. Therefore, I'd like to include the formula / reactions aspostscriptand I got "automacitally made"texfiles containing one pspicture each. @moewe I did delete everyLaTeXfile except*.tex"and*.pdf". Also my main problem here ispspicture... – Nepumuk Apr 06 '18 at 07:28.auxfile of your MWE then. The unknown\abx@aux@refcontextis definitely abiblatexcommand, and if it is in the.auxwhenbiblatexis not loaded it stems from a previous run. This should be irrelevant to your question and you should remove it to avoid confusing people like me. For what it is worth I tried your MWE and it compiled fine with XeLaTeX (I only got a blank page, though). You can't compile PS stuff with pdfLaTeX out of the box. See https://en.wikibooks.org/wiki/LaTeX/PSTricks, https://tex.stackexchange.com/q/8413/35864 – moewe Apr 06 '18 at 07:55The error remains the same.
– Nepumuk Jul 23 '18 at 09:01pstricks-addand second do not run it withpdflatexwhen not loading packageauto-pst-pdf– Jul 23 '18 at 09:17