Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:unexpected:undef Unexpected input remaining: 'undef' at pgfkeys.code.tex.ltxml; #1269

Closed
stef30360 opened this issue Mar 30, 2020 · 15 comments

Comments

@stef30360
Copy link

stef30360 commented Mar 30, 2020

Hi,
It seem that I've problem I can convert .tex

... (Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex... 0.10 sec) 0.25 sec)
Error:unexpected:undef Unexpected input remaining: 'undef'
at pgfkeys.code.tex.ltxml; line 535
....
regards
OS+texmaker

@dginev
Copy link
Collaborator

dginev commented Mar 30, 2020

Thanks for the report @stef30360 ! Since this behaviour depends on the specific toolchain, could you also provide us with the output of:

tex --version

and

latexml --VERSION

Thanks!

@stef30360
Copy link
Author

stef30360 commented Mar 30, 2020 via email

@dginev
Copy link
Collaborator

dginev commented Mar 30, 2020

Would have been a little more informative if you pasted the full output of the commands but oh well. For now I will assume that you are working with an officially distributed 0.8.4 by a package manager? Have you tried updating to the latest master of latexml and checked if that resolves the problem?

@dginev
Copy link
Collaborator

dginev commented Mar 30, 2020

To speed this along, feel free to also include the full log of the conversion, and if you can a minimal example that exhibits the error. As you can imagine this type of error isn't something we can reproduce on our local installations, so the more information we gather, the better the chance we can file a patch. Thanks!

@dginev dginev added the bug label Mar 30, 2020
@dginev dginev added this to the LaTeXML-0.8.6 milestone Mar 30, 2020
@stef30360
Copy link
Author

stef30360 commented Mar 31, 2020 via email

@dginev
Copy link
Collaborator

dginev commented Mar 31, 2020

Thank you for the log @stef30360 , very helpful! I'm reformatting as a new comment, since github doesn't allow re-linting email replies (for reasons I don't understand for now).

srmojaves-iMac:test srmojave$ latexml --verbose  qcmVAV_bn_Modif.tex
latexml (LaTeXML version 0.8.4)
processing started Tue Mar 31 11:17:26 2020

(Digesting TeX qcmVAV_bn_Modif...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/TeX.pool.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/eTeX.pool.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pdfTeX.pool.ltxml... 0.00 sec) 0.07 sec)
(Processing content /Users/srmojave/Projets-qcm/amc2moodle-master/test/qcmVAV_bn_Modif.tex...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/LaTeX.pool.ltxml... 0.09 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/article.cls.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/inputenc.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/utf8.def.ltxml... 0.00 sec) 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/fontenc.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/t1enc.def.ltxml...
(Processing definitions /opt/local/share/texmf-texlive/tex/latex/base/t1enc.def...[#25][#50][#75][#100]
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/t1.fontmap.ltxml... 0.00 sec)[#125][#150][#175][#200][#225][#250][#275] 0.04 sec) 0.46 sec) 0.47 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/geometry.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/keyval.sty.ltxml...
(Processing definitions /opt/local/share/texmf-texlive/tex/latex/graphics/keyval.sty...[#25][#50][#75] 0.01 sec) 0.01 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/ifpdf.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/ifvtex.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/ifxetex.sty.ltxml... 0.00 sec) 0.01 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/alltt.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/multicol.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amsmath.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amsbsy.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amstext.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amsopn.sty.ltxml... 0.00 sec) 0.01 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amssymb.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/amsfonts.sty.ltxml... 0.00 sec) 0.01 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/color.sty.ltxml... 0.00 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/graphicx.sty.ltxml...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/graphics.sty.ltxml... 0.00 sec) 0.01 sec)
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/tikz.sty.ltxml...
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgf.sty.ltxml...
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/basiclayer/pgf.sty...
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850]
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfutil-common-lists.tex...[#25][#50][#75][#100][#125][#150] 0.01 sec) 0.07 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfutil-latex.def...[#25][#50][#75][#100]
(Processing definitions /opt/local/share/texmf-texlive/tex/latex/ms/everyshi.sty...[#25][#50][#75][#100] 0.01 sec)[#125][#150][#175][#200] 0.02 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex...[#25][#50][#75][#100][#125][#150] 0.08 sec) 0.25 sec)[#25]
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty...
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgfkeys.code.tex.ltxml...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850][#875][#900][#925][#950][#975][#1000][#1025][#1050][#1075][#1100][#1125]
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850][#875][#900][#925][#950][#975][#1000] 0.10 sec) 0.25 sec)
Error:unexpected:undef Unexpected input remaining: 'undef'
	at pgfkeys.code.tex.ltxml; line 535
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgfkeys.code.tex.ltxml; line 535
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.25 sec)
Error:unexpected:T_CS[\par] Unexpected input remaining: 'T_CS[\par]'
	at pgfsys.code.tex; line 15 col 0 - line 15 col 1
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_CS[\pgfkeys]
	In Core::Gullet[@0x7f9a6001de48] /opt/local/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex; from line 17 col 8 to line 17 col 8
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.26 sec)
Error:unexpected:T_SPACE[U+000a/LF] Unexpected input remaining: 'T_SPACE[U+000a/LF]'
	at pgfsys.sty; line 16 col 0 - line 16 col 24
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_CS[\input]
	In Core::Gullet[@0x7f9a6001de48] /opt/local/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty; from line 17 col 6 to line 17 col 6
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.26 sec)
Error:unexpected:T_CS[\RequirePackage] Unexpected input remaining: 'T_CS[\RequirePackage]'
	at pgfcore.sty; line 12 col 15 - line 12 col 15
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_BEGIN[{]
	In Core::Gullet[@0x7f9a6001de48] /opt/local/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty; from line 12 col 16 to line 12 col 16
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.26 sec)
Error:unexpected:T_CS[\par] Unexpected input remaining: 'T_CS[\par]'
	at pgf.sty; line 29 col 0 - line 29 col 1
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_CS[\usepgfmodule]
	In Core::Gullet[@0x7f9a6001de48] /opt/local/share/texmf/tex/latex/pgf/basiclayer/pgf.sty; from line 30 col 13 to line 30 col 13
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.52 sec)
Error:unexpected:undef Unexpected input remaining: 'undef'
	at pgf.sty.ltxml; line 29
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgf.sty.ltxml; line 29
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.53 sec)
Error:unexpected:T_CS[\par] Unexpected input remaining: 'T_CS[\par]'
	at tikz.sty; line 12 col 0 - line 12 col 1
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_CS[\input]
	In Core::Gullet[@0x7f9a6001de48] /opt/local/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty; from line 13 col 6 to line 13 col 6
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.53 sec)
Error:unexpected:undef Unexpected input remaining: 'undef'
	at tikz.sty.ltxml; line 24
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/tikz.sty.ltxml; line 24
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 0.53 sec)
Error:unexpected:T_CS[\usepackage] Unexpected input remaining: 'T_CS[\usepackage]'
	at qcmVAV_bn_Modif.tex; line 16 col 11 - line 16 col 11
	Finished reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it still has input.
	Next token is T_OTHER[[]
	In Core::Gullet[@0x7f9a6001de48] /Users/srmojave/Projets-qcm/amc2moodle-master/test/qcmVAV_bn_Modif.tex; from line 16 col 12 to line 16 col 12
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...
 1.17 sec)
Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 0 col 0 - line 0 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 1 col 0 to line 1 col 0
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 1 col 0 - line 1 col 0
	Reading from Mouth::Binding[/opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgfkeys.code.tex.ltxml], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 2 col 0 to line 2 col 0
	 <= Core::Definition::Expandable[\input T... <= Core::Gullet[@0x7f9a6001de48] <= Core::Definition::Primitive[\@iinput {}] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 3 col 0 - line 3 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 4 col 0 to line 4 col 0
	 <= Core::Definition::Primitive[\@iinput {}] <= Core::Stomach[@0x7f9a5aafbb98] <= Core::Gullet[@0x7f9a6001de48] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 5 col 0 - line 5 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 6 col 0 to line 6 col 0
	 <= Core::Definition::Constructor[\Requir... <= Core::Stomach[@0x7f9a5aafbb98] <= Core::Gullet[@0x7f9a6001de48] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 7 col 0 - line 7 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 8 col 0 to line 8 col 0
	 <= Core::Definition::Constructor[\Requir... <= Core::Stomach[@0x7f9a5aafbb98] <= Core::Gullet[@0x7f9a6001de48] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 9 col 0 - line 9 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/latex/pgf/basiclayer/pgf.sty@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 10 col 0 to line 10 col 0
	 <= Core::Definition::Constructor[\Requir... <= Core::Stomach[@0x7f9a5aafbb98] <= Core::Gullet[@0x7f9a6001de48] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 10 col 0 - line 10 col 0
	Reading from Mouth::Binding[/opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgf.sty.ltxml], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 11 col 0 to line 11 col 0
	 <= Core::Definition::Constructor[\Requir... <= Core::Stomach[@0x7f9a5aafbb98] <= Core::Gullet[@0x7f9a6001de48] <= ...

(Processing definitions /opt/local/share/texmf/tex/latex/pgf/utilities/pgffor.sty...
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/utilities/pgfkeys.sty... 0.00 sec)
(Processing definitions /opt/local/share/texmf/tex/latex/pgf/math/pgfmath.sty...
(Loading /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/pgfmath.code.tex.ltxml...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmath.code.tex...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathcalc.code.tex...
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathutil.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275] 0.04 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathparser.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850][#875][#900][#925][#950][#975] 0.16 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225]
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800] 0.16 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850][#875][#900][#925][#950][#975][#1000][#1025][#1050][#1075][#1100][#1125][#1150][#1175][#1200][#1225][#1250][#1275][#1300][#1325][#1350][#1375][#1400][#1425][#1450][#1475][#1500][#1525][#1550] 0.66 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.random.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225] 0.02 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex...[#25][#50][#75][#100][#125][#150][#175] 0.12 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.base.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325] 0.06 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.round.code.tex...[#25][#50][#75][#100] 0.02 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325] 0.07 sec)[#250]
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex...[#25][#50][#75][#100] 0.02 sec) 1.17 sec)[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525] 1.39 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/math/pgfmathfloat.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750][#775][#800][#825][#850][#875][#900][#925][#950][#975][#1000][#1025][#1050][#1075][#1100][#1125][#1150][#1175][#1200][#1225][#1250][#1275][#1300][#1325][#1350][#1375][#1400][#1425][#1450][#1475][#1500][#1525][#1550][#1575][#1600][#1625][#1650][#1675][#1700][#1725][#1750][#1775][#1800][#1825][#1850][#1875][#1900][#1925][#1950][#1975][#2000][#2025][#2050][#2075][#2100][#2125][#2150][#2175][#2200][#2225][#2250][#2275][#2300][#2325][#2350][#2375][#2400][#2425][#2450][#2475][#2500][#2525][#2550][#2575][#2600][#2625][#2650] 0.37 sec)[#25] 1.76 sec) 1.77 sec) 1.77 sec)
(Processing definitions /opt/local/share/texmf/tex/generic/pgf/utilities/pgffor.code.tex...[#25][#50][#75][#100][#125][#150][#175][#200][#225][#250][#275][#300][#325][#350][#375][#400][#425][#450][#475][#500][#525][#550][#575][#600][#625][#650][#675][#700][#725][#750] 0.07 sec) 1.85 sec)
Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 12 col 0 - line 12 col 0
	Reading from Mouth[/opt/local/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty@0x0], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 13 col 0 to line 13 col 0
	 <= Core::Definition::Constructor[\usepac... <= Core::Stomach[@0x7f9a5aafbb98] <= ...

Error:unexpected:<closed> Mouth is unexpectedly already closed
	at String; line 13 col 0 - line 13 col 0
	Reading from Mouth::Binding[/opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/Package/tikz.sty.ltxml], but it has already been closed.
	Input is empty
	In Core::Gullet[@0x7f9a6001de48] Anonymous String; from line 14 col 0 to line 14 col 0
	 <= Core::Definition::Constructor[\usepac... <= Core::Stomach[@0x7f9a5aafbb98] <= ...
 3.09 sec)
(Building...
(Loading compiled schema /opt/local/lib/perl5/vendor_perl/5.28/LaTeXML/resources/RelaxNG/LaTeXML.model... 0.01 sec) 0.01 sec)
(Rewriting... 0.00 sec)
(Finalizing... 0.00 sec)
Conversion complete: 18 errors.
processing finished Tue Mar 31 11:17:29 2020
<?xml version="1.0" encoding="UTF-8"?>

@stef30360
Copy link
Author

stef30360 commented Apr 2, 2020

Hi,
This is my .tex ... I don't understant why latexml doesn't work ! Line error (535) pgfkeysfiltered.code.tex. file shows a commented line ? Below my .tex code...it seems that the "tikz "package does not work with latexml !
regards
SR

(Deyan update: moving a minimal snippet as highlighted in the next comment)

@dginev
Copy link
Collaborator

dginev commented Apr 2, 2020

Thank you @stef30360 ! I minimized your snippet further, to:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}

\begin{tikzpicture}[scale=1]
  \draw [very thin, gray!20] (0,-6) grid[step=0.1] (12,6);
  \draw [very thin, black!20] (0,-6) grid[step=0.5] (12,6);
  \draw [very thin, black!40] (0,-6) grid[step=1] (12,6);
  \draw[->,>=stealth] (0,0) -- (12,0) node[below right] {temps (s)};
  \draw[->,>=stealth] (0,-6) -- (0,6);
  \draw (1,0.1) -- (1,-0.1) node [below] {{\scriptsize $1s$}}; %échelle abscisse
  \draw (0.1,1) -- (-0.1,1) node [left] {{\scriptsize $2 m/s$}}; %échelle ordonnée v
(-1.2,2.7) node [right] [red] {$V_E$};\draw [blue] (-1.8,2.2)--(-1.2,2.2) node [right] [blue] {$V_S$};
  \draw[color=blue,thick,domain=0:2] plot ({\x},{1.5*\x});
  \draw[color=blue,thick,domain=4:2] plot ({\x},{3});
  \draw[color=blue,thick,domain=8:4] plot ({\x},{9-1.5*\x});
  \draw[color=blue,thick,domain=10:8] plot ({\x},{-3});
  \draw[color=blue,thick,domain=12:10] plot ({\x},{1.5*\x-18})node[above left] {$v (m/s)$};
\end{tikzpicture}

\end{document}

Can you confirm you see the error here as well? The reason I can't reproduce on my machine is that you are likely using an older version of latexml and we may have already resolved this particular issue. Even with it resolved however, I am seeing the regression described in #1227 .

As to the reason why it is not immediately working - latexml implements its own binding definitions that connect Tikz primitives to SVG, so it is not as robust as running pdflatex itself. It is additionally made complicated by using the raw texlive code for most of pgf and tikz, upto the point where it has to draw the SVG, and that native code is different in subtle ways between each texlive. Which is often something latexml can handle, but at times we see these types of malfunctions.

I would once again recommend that you update to the latest github version of latexml and try again, but you are bound to encounter the #1227 regression if you do so before we close that issue. As things stand I can't offer you a quick solution here, apologies.

@dginev dginev modified the milestones: LaTeXML-0.8.6, LaTeXML-0.8.5 Apr 2, 2020
@dginev dginev added the packages label Apr 2, 2020
@stef30360
Copy link
Author

stef30360 commented Apr 2, 2020

HI
Tank you for your reply. Absolutly I've same error. Could you send me a way to upload and reinstall the last packages. I'd installed my version with macport (like on web site https://dlmf.nist.gov/LaTeXML/).
regards
SR

@dginev
Copy link
Collaborator

dginev commented Jun 24, 2020

Just to have an explicit demonstration of the remaining bug, even though the conversion succeeds error-free with the latest latexml, the particular SVG generated is mostly broken. And also mentioning I used texlive 2020 to generate.

  • pdflatex PDF
    test

  • latexml, texlive 2020
    latexml_test

@dginev dginev modified the milestones: LaTeXML-0.8.5, LaTeXML-0.8.6 Jun 24, 2020
@dginev
Copy link
Collaborator

dginev commented Jun 24, 2020

Somewhat ironically running the latest latexml on texlive 2015 has the inverse error -- good grid, absent annotations. Here is a screenshot of the SVG:

  • latexml, texlive 2015
    image

@dginev
Copy link
Collaborator

dginev commented Jun 24, 2020

Hm, actually, I think I was using an inconsistent local LaTeXML installation. Removing the installation directory and rebuilding, I am now seeing the following result with the latest commit 456c715 , texlive 2019:

testnew

So we could consider the issue resolved for now? This is also the example discussed in #1279 which is co-resolved.

@dginev
Copy link
Collaborator

dginev commented Jun 25, 2020

I was alerted that I'm using texlive 2019 for these examples locally (I got mislead due to my expl3 being from early 2020, oops). And the working screenshot above is indeed with texlive 2019. Would need to get a 2020 texlive to double-check the newest state.

@brucemiller
Copy link
Owner

brucemiller commented Jun 25, 2020 via email

@dginev
Copy link
Collaborator

dginev commented Jun 26, 2020

Alright, sounds like both 2019 and 2020 work well at the moment in that case! (Also judging by the related #1279 ).

Let's close here for now, and @stef30360 please feel free to open a new issue - or reopen this one - if you encounter more problems with pgf. latexml's support there can still be considered experimental, but we're improving gradually, as you can see from the screenshots.

@dginev dginev closed this as completed Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants