textcolor consumes whitespaces #1474
Labels
bug (improve documentation)
nothing really wrong but documentation could be better
category graphics
wont fix/change/enhance
something that might be desirable but ...
Milestone
Whitespaces after the opening brace of the text argument of
\textcolor{<color>}{ <text>}
consumes the whitespace, while other\text
-Macros (like\textbf{ }
) don't consume trailing whitespaces. I would like to suggest to ensure that all\textXY
macros behave the same way when it comes to trailing spaces.(same with
xcolor
instead ofcolor
)test.log
A potential fix could be to define
\@textcolor
as\def\@textcolor#1#2#3{\protect\leavevmode{\color#1{#2}\relax#3}}
to eliminate the effects of the\ignorespaces
that comes with\color
, iff the community decides that this is an issue and that\textcolor{}
should behave like\textbf{}
.The text was updated successfully, but these errors were encountered: