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

\stackrel: behaviour incompatible to LaTeX #838

Closed
dominique-unruh opened this issue May 16, 2017 · 2 comments
Closed

\stackrel: behaviour incompatible to LaTeX #838

dominique-unruh opened this issue May 16, 2017 · 2 comments
Milestone

Comments

@dominique-unruh
Copy link

@dominique-unruh dominique-unruh commented May 16, 2017

The command \stackrel is supposed to typeset its first argument in smaller over the second argument. However, in combination with a size change in its first argument, it behaves differently than LaTeX's \stackrel. Namely, the size change escapes the first argument of \stackrel, and if the size change is followed by only one token, it does not affect that token.

(Tested with LaTeXML 0.8.2.)

Example document (expected behavior is that all examples look like the examples marked with "All is OK"):

\documentclass{article}
\begin{document}

\verb|\scriptscriptstyle| escapes the argument of \verb|\stackrel|, but does not apply to $z$:

$  x \stackrel{\scriptscriptstyle z}\leftarrow e$ 

\verb|\scriptscriptstyle| escapes the argument of \verb|\stackrel|:

$  x \stackrel{\scriptscriptstyle zz}\leftarrow e$

\verb|\scriptscriptstyle| not apply to $z$:

$  x \stackrel{{\scriptscriptstyle z}}\leftarrow e$

All is OK:

$  x \stackrel{{\scriptscriptstyle zz}}\leftarrow e$

All is OK:

$  x \stackrel{{\scriptscriptstyle {}z}}\leftarrow e$
\end{document}
@brucemiller
Copy link
Owner

@brucemiller brucemiller commented May 27, 2017

Hmm, weird that was never noticed (more likely a regression). Anyway, should be good now in the development version. Thanks for the report!

@dginev
Copy link
Collaborator

@dginev dginev commented May 27, 2017

Hmm, weird that was never noticed (more likely a regression).

Should we add a unit test?

@dginev dginev added this to the LaTeXML-0.8.3 milestone Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants