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

pgfmath regression #991

Closed
dginev opened this issue May 8, 2018 · 2 comments
Closed

pgfmath regression #991

dginev opened this issue May 8, 2018 · 2 comments

Comments

@dginev
Copy link
Collaborator

@dginev dginev commented May 8, 2018

The sine plot has funnily enough turned into a flatline in the tikz showcase example:

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

\section{Plot of $\sin(x)$}
\begin{tikzpicture}
\draw plot (\x,{sin(\x r)});
\end{tikzpicture}

\end{document}

latexml produces 48 errors of the kind:

Error:pgfparse:pgfparse Parse of 'sin(-5r)' failed
	at /tmp/test.tex; line 7 col 27
	LTX: '0'
	Left: sin(-5r)
	Next token is T_CS[\let]
	In Core::Definition::Expandable[\lx@pgfm... from pgfmath.code.tex.ltxml line 320
	 <= Core::Gullet[@0x559065c97ab8] <= Core::Stomach[@0x559065c9f738] <= Core::Definition::Primitive[Begin] <= ...

which may be easy to fix

@brucemiller
Copy link
Owner

@brucemiller brucemiller commented May 10, 2018

Did that actually work correctly before? Not sure when/where it broke, but it should be good now. Thanks for the report!

@dginev
Copy link
Collaborator Author

@dginev dginev commented May 11, 2018

Just as a note - yes, it worked correctly years ago, when i made the showcase examples. Thanks for reviving it!

@dginev dginev changed the title pdgfmath regression pgfmath regression May 11, 2018
@dginev dginev added this to the LaTeXML-0.8.3 milestone May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants