You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrated from SourceForge
Author: funkycoder2
Timestamp: 2011-01-02 05:57:00
In the attached example, this line:
\node[align=center]{\MakeUppercase{a\\ b}};
creates an infinite loop when compiling the document using pdflatex/lualatex/xelatex. By pressing ^C after a minute you get the following error message:
! Interruption.
\pgfkeys@parse ...uturelet \pgfkeys@possiblerelax
\pgfkeys@parse@main
l.5 \node[align=center]{\MakeUppercase{a\\ b}
};
There seems to be an issue with the redefined \\-command, because leaving align=center away gets rid of the problem, as does not enclosing the command in a picture and node at all, so it's definitely PGF's fault.
The equivalent TeX-command works though:
\node[align=center]{\uppercase{a\\ b}};
The text was updated successfully, but these errors were encountered:
Migrated from SourceForge
Author: tantau
Timestamp: 2013-07-12 21:36:54.561000
I patched the CVS so that at least no infinite loop results any longer.
However, the underlying problem cannot be fixed directly. The problem is that \MakeUppercase surrounds its result by braces. So, this has the same effect as if you had written \node [align=center] {{A//B}};. This is illegal, however, since \ may only be given with the align option on the outermost TeX group of the node box when text width is not set (this is mentioned indirectly somewhere in the fine print of the align option.
Interestingly, the problem is really caused by a "buggy" implementation of \MakeUppercase in the latex core: The additional brace is to blame. Here is a version of \MakeUppercase that works:
Migrated from SourceForge
Author: funkycoder2
Timestamp: 2011-01-02 05:57:00
In the attached example, this line:
\node[align=center]{\MakeUppercase{a\\ b}};
creates an infinite loop when compiling the document using pdflatex/lualatex/xelatex. By pressing ^C after a minute you get the following error message:
! Interruption.
\pgfkeys@parse ...uturelet \pgfkeys@possiblerelax
\pgfkeys@parse@main
l.5 \node[align=center]{\MakeUppercase{a\\ b}
};
There seems to be an issue with the redefined \\-command, because leaving align=center away gets rid of the problem, as does not enclosing the command in a picture and node at all, so it's definitely PGF's fault.
The equivalent TeX-command works though:
\node[align=center]{\uppercase{a\\ b}};
The text was updated successfully, but these errors were encountered: