Skip to content

Commit b83acf2

Browse files
committed
Restore the index marker, define a command for it
1 parent 517273e commit b83acf2

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
@@ -844,11 +844,11 @@ \section{Notation}
844844
\LMHash{}%
845845
The document contains an index at the end.
846846
Each entry in the index refers to a page number, $p$.
847-
On page $p$ there is a `$\diamond$' in the margin
847+
On page $p$ there is a `\IndexMarker{}' in the margin
848848
at the definition of the given indexed phrase,
849849
and the phrase itself is shown using \emph{this typeface}.
850850
We have hereby introduced the
851-
\Index{index marker $\diamond$}
851+
\Index{index marker \IndexMarker{}}
852852
itself.
853853

854854
\LMHash{}%

0 commit comments

Comments
 (0)