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

LaTeX input: \% is interpreted as literal \%, not as a command printing a %. #1473

Closed
gunterkoenigsmann opened this issue May 14, 2016 · 1 comment
Labels
Expected Behavior This is how MathJax works

Comments

@gunterkoenigsmann
Copy link

Dear all,

One half-way minimal example:

<!DOCTYPE HTML>
<HTML>
  <HEAD>
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
      displayAlign: "left",
      context: "MathJax"
      })
    </script>
    <script type="text/javascript"
        src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
    </script>
    <link rel="stylesheet" type="text/css" href="TableForm_htmlimg/TableForm.css"/>
  </HEAD>
  <BODY>
    \[
    \tag{\%{}t1}\label{t1} \begin{align}1 & 2\\
    3 & 4\end{align}
    \]
  </BODY>
</HTML>

The label that is shown in the browser should be %t1, not %t1.

@dpvc
Copy link
Member

dpvc commented May 14, 2016

The contents of the \tag{} command is text-mode material. MathJax does not process macros in text-mode, only math-mode, so you should use \tag{%t1} in this case. (Your \tag{%{}t1} produces \%{}t1, not just \%t1.) See #790, #569, #346, #243, and others.

@dpvc dpvc added the Expected Behavior This is how MathJax works label May 14, 2016
@dpvc dpvc closed this as completed May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expected Behavior This is how MathJax works
Projects
None yet
Development

No branches or pull requests

2 participants