Skip to content

Commit 01dcd2e

Browse files
committed
[macros] Fix sentence spacing after \tcode
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` macro.
1 parent a449305 commit 01dcd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/macros.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
\newcommand{\GrammarStylex}[1]{\textcolor{grammar-gray}{\textsf{\textit{#1}}}}
243243

244244
% Code and definitions embedded in text.
245-
\newcommand{\tcode}[1]{\CodeStylex{#1}}
245+
\newcommand{\tcode}[1]{\ifmmode\CodeStylex{#1}\else\CodeStylex{#1}\@\fi}
246246
\newcommand{\term}[1]{\textit{#1}}
247247
\newcommand{\gterm}[1]{\GrammarStylex{#1}}
248248
\newcommand{\fakegrammarterm}[1]{\gterm{#1}}

0 commit comments

Comments
 (0)