Skip to content

Commit b9e683e

Browse files
jensmaurertkoeppe
authored andcommitted
[macros] Use maths mode for range delimiters (#5164)
Ranges are mathematical notation and not valid syntax, so it is more appropriate to typeset them as maths than as code.
1 parent e7ffdb1 commit b9e683e

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
@@ -476,7 +476,7 @@
476476
\newcommand{\defexposconceptnc}[1]{\ecname{#1}\indexconcept{\idxexposconcept{#1}|idxbfpage}\itcorr[-1]} % macro length: 18
477477

478478
%% Ranges
479-
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}}
479+
\newcommand{\Range}[4]{\ensuremath{#1}\tcode{#3}\ensuremath{,}\,\penalty2000{}\tcode{#4}\ensuremath{#2}}
480480
\newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
481481
\newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
482482
\newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}

0 commit comments

Comments
 (0)