Skip to content

[Unintended Feature or Bug] Table of content with latex #1994

Answered by facelessuser
SPyofgame asked this question in Q&A
Discussion options

You must be logged in to vote

Pictures are nice, but in the future, also post copy/pastable examples as well so I don't have to transcribe them from an image.

With all of that said, this is a documentation system issue, not an issue with these plugins. You could force the information into the toc:

## Bruteforces $O(4^n)$ {data-toc-label='<span class=arithmatex>\\(O(4^n)\\)</span>'}

But the documentation system still strips the HTML tag <span> out. That is needed, along with the class to get it translated. I guess if you adjust the MathJax config, you may be able to get it to target navigation link items, but you'd have to look into that.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SPyofgame
Comment options

@SPyofgame
Comment options

@facelessuser
Comment options

@SPyofgame
Comment options

Answer selected by facelessuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants