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

\tag + _: Got group of unknown type: 'internal' ``` #3892

Open
nschloe opened this issue Oct 30, 2023 · 1 comment
Open

\tag + _: Got group of unknown type: 'internal' ``` #3892

nschloe opened this issue Oct 30, 2023 · 1 comment

Comments

@nschloe
Copy link
Contributor

nschloe commented Oct 30, 2023

In LaTeX, one can start an equation with _ or ^

\documentclass{article}
\begin{document}
\[
\label{2}
_{2}x_{2}
\]
\end{document}

screenshot_2023-10-30-180031

The same works in KaTeX, but not with a \tag{} prepended:

\tag{2}
_{2}x_{2}
KaTeX parse error: Got group of unknown type: 'internal'

I suppose the "fix" is to prefix the underscore with a {}, but it'd be nice if KaTeX could handle these situations itself.

@pzinn
Copy link
Contributor

pzinn commented Mar 23, 2024

in a similar vein, I was trying to get cf' right, $cf'$ looked ugly because c and f were too far apart, $\mathit{cf}'$ looked ugly because the ' was too close, finally $\mathit{cf}\,'$ looks perfect in LaTeX but KaTeX will throw KaTeX parse error: Got group of unknown type: 'internal'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants