siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
91 stars 24 forks source link

\path macro should be parsed like \verb #94

Open retorquere opened 8 months ago

retorquere commented 8 months ago

\path|beebe@acm.org| should be parsed analogous to \verb|beebe@acm.org|

siefkenj commented 7 months ago

Could you please let me know what package the \path macro comes from?

retorquere commented 7 months ago

https://ftp.snt.utwente.nl/pub/software/tex/macros/generic/path/path-doc.pdf

siefkenj commented 7 months ago

Okay, the path package can be added to unified-latex-ctan. It won't verbatim parse (because verbatim parsing can only be done by modifying the grammar itself), but it would be able to parse the argument of \path. As long as people don't use the \path\...\ syntax, it should work just fine :-)