Skip to content

Commit 2296c4c

Browse files
committed
Restore the index marker, define a command for it
1 parent e21915c commit 2296c4c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

specification/dart.sty

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,12 @@
173173
\newcommand{\id}{\metavar{id}}
174174
\newcommand{\op}{\metavar{op}}
175175

176+
% Used in margin to indicate that a term is being defined here.
177+
\newcommand{\IndexMarker}{\ensuremath{^\vartriangle}}
178+
176179
% Used for defining occurrence of phrase, with customized index entry.
177180
\newcommand{\IndexCustom}[2]{%
178-
\leavevmode\marginpar{\ensuremath{\vartriangle}}\emph{#1}\index{#2}}
181+
\leavevmode\marginpar{\IndexMarker}\emph{#1}\index{#2}}
179182

180183
% Used for the defining occurrence of a local symbol.
181184
\newcommand{\DefineSymbol}[1]{%
@@ -196,7 +199,7 @@
196199

197200
% Same appearance, but not adding an entry to the index.
198201
\newcommand{\NoIndex}[1]{%
199-
\leavevmode\marginpar{\ensuremath{\vartriangle}}\emph{#1}}
202+
\leavevmode\marginpar{\IndexMarker}\emph{#1}}
200203

201204
% Mark a compile-time error in the margin.
202205
\newcommand{\Error}[1]{%

specification/dartLangSpec.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,11 +857,11 @@ \section{Notation}
857857
\LMHash{}%
858858
The document contains an index at the end.
859859
Each entry in the index refers to a page number, $p$.
860-
On page $p$ there is a `$\diamond$' in the margin
860+
On page $p$ there is a `\IndexMarker{}' in the margin
861861
at the definition of the given indexed phrase,
862862
and the phrase itself is shown using \emph{this typeface}.
863863
We have hereby introduced the
864-
\Index{index marker $\diamond$}
864+
\Index{index marker \IndexMarker{}}
865865
itself.
866866

867867
\LMHash{}%

0 commit comments

Comments
 (0)