Skip to content

Conversation

@dginev
Copy link
Collaborator

@dginev dginev commented Dec 15, 2025

Fixes #2696

This may be a bit "too direct" in addressing the parameter symptom, as I have not dived to the full depths of how the --0.5 was generated. What was clear from testing is that this is not coming from any of our perl binding code, neither is it directly interceptable in the usual pgfmathparse routine.

On the other hand, guarding a number parameter type for double negation seems both easy and uncontroversial. So possibly a reasonable patch?

Most importantly, the resulting SVG is quite impressively matching the PDF of the example.

@dginev dginev requested a review from brucemiller as a code owner December 15, 2025 00:11
dginev added a commit to arXiv/LaTeXML that referenced this pull request Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sometimes pgfNumber is --0.5 and computation fails with warning (and wrong results)

1 participant