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

Issue with math in LaTeX section title #56

Open
dpo opened this issue Nov 17, 2017 · 1 comment
Open

Issue with math in LaTeX section title #56

dpo opened this issue Nov 17, 2017 · 1 comment

Comments

@dpo
Copy link

dpo commented Nov 17, 2017

In a LaTeX document, I have section titles with math in them. Those aren't rendered correctly in the outline (I'm not sure what they should be rendered as). For instance, in the snippet

  \section{\(x_{\star}\)}

  \section{Next Section}

the title of the first section is just "\star" in the outline. As an experiment, I tried to further enclose the math in curly braces:

\section{{\(x_{\star}\)}}

and what happened is that the next section disappeared from the outline.

@mangecoeur
Copy link
Owner

Probably a limitation in the Latex parser. Unfortunately, Latex is so complicated I there's only so much I can do to work with every case (especially since I use Mardown myself). You are very welcome to try to improve the Regex matching (e.g. try having a look in the latex-parse file at the regexes there, and use a tool like regex101.com to try to make them work with math in headings.)

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

No branches or pull requests

2 participants