File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 48
48
}
49
49
\makeatother
50
50
51
+ % %--------------------------------------------------
52
+ % Escaping for index entries. Replaces ! with "! throughout its argument.
53
+ \def\indexescape #1{\doindexescape #1\stopindexescape !\doneindexescape }
54
+ \def\doindexescape #1!{#1"!\doindexescape }
55
+ \def\stopindexescape #1\doneindexescape {}
56
+
51
57
% %--------------------------------------------------
52
58
% % Cross references.
53
- \newcommand {\addxref }[1]{\glossary [xrefindex]{#1}{(\ref {#1 })}}
59
+ \newcommand {\addxref }[1]{%
60
+ \glossary [xrefindex]{\indexescape {#1}}{(\ref {\indexescape {#1 }})}%
61
+ }
54
62
55
63
% %--------------------------------------------------
56
64
% % Sectioning macros.
Original file line number Diff line number Diff line change 1
1
%!TEX root = std.tex
2
2
3
- \newcommand {\secref }[1]{\hyperref [#1]{#1 }}
3
+ \newcommand {\secref }[1]{\hyperref [\indexescape {#1}]{ \indexescape {#1} }}
4
4
5
5
% Turn off page numbers for this glossary, they're not useful.
6
6
\newcommand {\swallow }[1]{}
7
7
\changeglossnumformat [xrefdelta]{|swallow}
8
8
9
- \newcommand {\oldxref }[2]{\glossary [xrefdelta]{#1 }{#2}}
9
+ \newcommand {\oldxref }[2]{\glossary [xrefdelta]{\indexescape {#1} }{#2}}
10
10
\newcommand {\removedxref }[1]{\oldxref {#1 }{\textit {removed }}}
11
11
\newcommand {\movedxrefs }[2]{\oldxref {#1 }{\textit {see } #2}}
12
12
\newcommand {\movedxref }[2]{\movedxrefs {#1}{\secref {#2 }}}
97
97
\movedxref {string::op <=}{string.op<=}
98
98
\movedxref {string::op >}{string.op>}
99
99
\movedxref {string::op >=}{string.op>=}
100
- \movedxref {string::op " ! =}{string.op" !=}
100
+ \movedxref {string::op! =}{string.op!=}
101
101
\movedxref {string::op +}{string.op+}
102
102
\movedxref {string::op +=}{string.op+=}
103
103
\movedxref {string::operator ==}{string.operator==}
112
112
\movedxref {istreambuf.iterator::op ++}{istreambuf.iterator.ops}
113
113
\movedxref {istreambuf.iterator::equal }{istreambuf.iterator.ops}
114
114
\movedxref {istreambuf.iterator::op ==}{istreambuf.iterator.ops}
115
- \movedxref {istreambuf.iterator::op " ! =}{istreambuf.iterator.ops}
115
+ \movedxref {istreambuf.iterator::op! =}{istreambuf.iterator.ops}
You can’t perform that action at this time.
0 commit comments