[macros] Restore sentence spacing after \tcode#8160
Conversation
|
Could you paste a (small) screenshot of an example showing the spacing before/after this change? Did you run "diffpdf" in a sufficiently detailed mode to ensure nothing gets broken? |
|
This change seems to cause us to lose some index entries. Please see std-generalindex.ilg. |
\tcode\tcode
|
Sorry for the breakage. I'll dig into it more and I'll attach a diff screenshot after it's resolved. |
01dcd2e to
4aee7f1
Compare
\tcode\tcode
|
OK, fixed the breakage and added a comment. |
|
Oops, forgot to reply to this one.
After fixing the breakage, yes, I checked with DiffPDF (and diff-pdf) and didn't find any particular problems. |
TeX treats a word ending with an uppercase letter as an abbreviation.
This makes the space after `\tcode{T}.` result in regular interword
spacing. To restore proper (wider) sentence spacing, this commit
appends `\@` to the `\tcode` command. The insertion of `\@` happens
only during normal typesetting; it is suppressed when writing the .idx
file and when generating bookmarks.
4aee7f1 to
3dfc8e3
Compare
|
@morinmorin: Hi! Is it possible that this change has introduced a lot of new "Token not allowed in a PDF string" warnings? Are we missing some |
|
@tkoeppe Thanks, you're right that this commit does introduce those warnings. The commit log says
But it fails to suppress the insertion of to |
|
Here's PR #8432 for convenience. |




TeX treats a word ending with an uppercase letter as an abbreviation. This makes the space after
\tcode{T}.result in regular interword spacing. To restore proper (wider) sentence spacing, this commit appends\@to the\tcodemacro.There are dozens of intances of
\tcode{...UPPERCASE}.