tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Error in xcolor while compiling latexdiff output

Open Zosoworld opened this issue 1 year ago • 1 comments

I have been trying to compile the output of a latexdiff execution with tectonic (Tectonic 0.15.0), but have been unable to. The relevant output is:

) (calc.sty) (indentfirst.sty) (fancyhdr.sty) (graphicx.sty (keyval.sty)
(graphics.sty (trig.sty) (graphics.cfg) (pdftex.def))) (epstopdf.sty
(infwarerr.sty) (grfext.sty (kvdefinekeys.sty)) (kvoptions.sty (ltxcmds.sty)
(kvsetkeys.sty)) (pdftexcmds.sty (iftex.sty)) (epstopdf-base.sty

Package epstopdf Warning: Shell escape feature is not enabled.

(epstopdf-sys.cfg))) (lastpage.sty) (ifthen.sty) (float.sty) (amsmath.sty
For additional information on amsmath, use the `?' option.
(amstext.sty (amsgen.sty)) (amsbsy.sty) (amsopn.sty)) (amssymb.sty
(amsfonts.sty)) (lineno.stywarning: lineno.sty:296: Invalid UTF-8 byte or sequence at line 296 replaced by U+FFFD.
) (setspace.sty) (enumitem.sty) (mathpazo.sty)
(booktabs.sty) (titlesec.sty) (etoolbox.sty) (tabto.sty) (xcolor.sty (color.cfg
)
error: xcolor.sty:1461: Undefined control sequence
! Undefined control sequence.
\set@color ->\pdfcolorstack 
                            \@pdfcolorstack push{\current@color }\aftergroup...
l.1461 \color{black}
                    
No pages of output

After reading that probably \pdfcolorstack is not defined with Tectonic, I modified the MDPI template I am using to include xcolor with the dvips option to no avail.

Zosoworld avatar Dec 04 '24 10:12 Zosoworld

Check the \documentclass{} command, in particular, see that it does not contain pdftex. That is, it should not look like

\documentclass[journal,article,submit,pdftex,moreauthors]{Definitions/mdpi} %----> the pdftex should be removed

If it does, remove the pdftex

JayanAXHF avatar Mar 24 '25 17:03 JayanAXHF