Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parsing the content of math environments? #106

@jonathan-laurent

Description

@jonathan-laurent

Currently, it seems to me that TexSoup treats the content of a math environment ($...$, (...) or [...]) like a single token.
Is there any way to get a structured representation of this content too? I was thinking of getting a string representation of the inside of $...$ and then calling TexSoup on it recursively but I am not sure this would work.

To be even more concrete, here is an example of a task I am interested in performing:

  • Find all instances of \infer{A}{B} within a math environment and replace it by \infer{B}{A} where A and B could be arbitrary Latex code.

Could one use TexSoup to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions