acmart icon indicating copy to clipboard operation
acmart copied to clipboard

[regression] Latest version of acmart class results in tikzexternal reporting all figures as having undefined references

Open JasonGross opened this issue 3 years ago • 1 comments

Consider the file

\documentclass{acmart}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize
\begin{document}
\begin{tikzpicture}
    \begin{axis}
      \addplot [color=black,solid,line width=1.0pt,domain=0:1,samples=11]{x+x^2};
    \end{axis}
\end{tikzpicture}
\end{document}

Running pdflatex -shell-escape on this file results in a log that includes

===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape -halt-o
n-error -interaction=batchmode -jobname "test2-figure0" "\def\tikzexternalrealj
ob{test2}\input{test2}"' ========
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
LaTeX Warning: External picture `test2-figure0' contains undefined references o
n input line 11.

===== The previous system call resulted in undefined references inside of the o
utput file. Rescheduling it for \end{document}. ========

This is bogus, is a regression over the version in TeXLive 2019, and, when combined with https://github.com/borisveytsman/acmart/issues/436, results in files that compile fine with the TeXLive 2019 version of acmart but fail with the latest version. See https://github.com/JasonGross/test-latex-errors/runs/2797542141?check_suite_focus=true and acmart-test2.log and https://github.com/JasonGross/test-latex-errors/blob/4c02b20205562fe74c25051f882743e100108f42/test.tex

JasonGross avatar Jun 10 '21 21:06 JasonGross

Hi Jason,

I cannot reproduce the issue you describe below. I’m using TeXLive 2021 under MacOS so there could be related differences.

My .log starts as follows:

This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex) \write18 enabled. entering extended mode (./tikz-test.tex LaTeX2e <2020-10-01> patch level 4 L3 programming layer <2021-05-27> (/usr/local/texlive/texmf-local/tex/latex/acm/acmart.cls Document Class: acmart 2021/05/01 v1.78 Typesetting articles for the Associatio n for Computing Machinery

The output PDF looks fine. I doubt that you'll need to see it.

Hope this helps.

Ross

On 11 Jun 2021, at 7:31 am, Jason Gross @.@.>> wrote:

Consider the file

\documentclass{acmart} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize \begin{document} \begin{tikzpicture} \begin{axis} \addplot [color=black,solid,line width=1.0pt,domain=0:1,samples=11]{x+x^2}; \end{axis} \end{tikzpicture} \end{document}

Running pdflatex -shell-escape on this file results in a log that includes

===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape -halt-o n-error -interaction=batchmode -jobname "test2-figure0" "\def\tikzexternalrealj ob{test2}\input{test2}"' ======== This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex) \write18 enabled. entering extended mode LaTeX Warning: External picture `test2-figure0' contains undefined references o n input line 11.

===== The previous system call resulted in undefined references inside of the o utput file. Rescheduling it for \end{document}. ========

This is bogus, is a regression over the version in TeXLive 2019, and, when combined with #436https://github.com/borisveytsman/acmart/issues/436, results in files that compile fine with the TeXLive 2019 version of acmart but fail with the latest version. See https://github.com/JasonGross/test-latex-errors/runs/2797542141?check_suite_focus=true and acmart-test2.loghttps://github.com/borisveytsman/acmart/files/6634539/acmart-test2.log and https://github.com/JasonGross/test-latex-errors/blob/4c02b20205562fe74c25051f882743e100108f42/test.tex

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/borisveytsman/acmart/issues/437, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACYVIOKQ2R6CEGO7KVSHBI3TSEVKPANCNFSM46PNFA5A.

Dr Ross Moore Department of Mathematics and Statistics 12 Wally’s Walk, Level 7, Room 734 Macquarie University, NSW 2109, Australia T: +61 2 9850 8955 | F: +61 2 9850 8114 M:+61 407 288 255 | E: @.@.> http://www.maths.mq.edu.au @.***D030BE.D37A46F0] CRICOS Provider Number 00002J. Think before you print. Please consider the environment before printing this email.

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of Macquarie University. http://mq.edu.au/ http://mq.edu.au/

ozross avatar Jun 10 '21 23:06 ozross