Top tag
Next privilege 500 Rep.
Access review queues
3 5
~6k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
comment Is there a BNF grammar of the TeX language?
Thank you for this comprehensive answer, I knew nothing about catcode. It seems that parsing tex is not a simple task as I thought before. My final task is to extract all math formulas from a set of articles (in tex), I thought I could parse them to do it, but now I'm not sure about it. What approach could you recommend? I think casual articles do not use catcode, so to extract correct math formulas I may parse tex and process newcommand. The alternative is to try use existing engine to parse and extract the needed information from its internals.