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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Owner

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

This comment has been minimized.

Collaborator

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