Skip to content

Commit 7125c45

Browse files
committed
Restore the index marker, define a command for it
1 parent 6eed85b commit 7125c45

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

858858
\LMHash{}%

0 commit comments

Comments
 (0)