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

Excessive white space after exponents #1662

Closed
5nizza opened this issue Feb 17, 2025 · 1 comment
Closed

Excessive white space after exponents #1662

5nizza opened this issue Feb 17, 2025 · 1 comment

Comments

@5nizza
Copy link

5nizza commented Feb 17, 2025

Brief outline of the bug

There is an excessive white space after exponents.
Please see the picture explanation.

Image

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}

\begin{document}

The problem can be solved in $2^{2^{O(n)}}$ time.

The problem can be solved in $2^{2^{O(n)}}\!$ time.

\vspace{4mm}

Consider the state $(q^S,v,t)$.

Consider the state $(q^S\!,v,t)$.

\end{document}

Log file (required) and possibly PDF file

bad_white_space.log

@davidcarlisle
Copy link
Member

davidcarlisle commented Feb 17, 2025

This is not under the control of LaTeX. It is a primitive TeX feature that additional space is added. this is the user settable length \scriptspace which you can set to 0pt if you do not wish it to be added.

\documentclass{article}

\begin{document}

The problem can be solved in $2^{2^{O(n)}}$ time.

\setlength\scriptspace{0pt}
The problem can be solved in $2^{2^{O(n)}}$ time.

The problem can be solved in $2^{2^{O(n)}}\!$ time.

\vspace{4mm}

Consider the state $(q^S,v,t)$.

Consider the state $(q^S\!,v,t)$.

\end{document}

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

No branches or pull requests

2 participants