Skip to content

Commit 4933269

Browse files
Use a new macro to avoid \- in index reference.
1 parent 3de9b1c commit 4933269

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/compatibility.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@
22642264
\libheaderrefx{condition_variable}{condition.variable.syn},
22652265
\libheaderrefx{forward_list}{forward.list.syn},
22662266
\libheaderref{future},
2267-
\libheaderrefx{initiali\-zer_list}{initializer.list.syn},
2267+
\libheaderreftxtx{initializer_list}{initiali\-zer_list}{initializer.list.syn},
22682268
\libheaderref{mutex},
22692269
\libheaderrefx{random}{rand.synopsis},
22702270
\libheaderref{ratio},
@@ -2273,7 +2273,7 @@
22732273
\libheaderrefx{system_error}{system.error.syn},
22742274
\libheaderref{thread},
22752275
\libheaderref{tuple},
2276-
\libheaderrefx{type\-index}{type.index.synopsis},
2276+
\libheaderreftxtx{typeindex}{type\-index}{type.index.synopsis},
22772277
\libheaderrefx{type_traits}{meta.type.synop},
22782278
\libheaderrefx{unordered_map}{unord.map.syn},
22792279
and

source/macros.tex

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
\newcommand{\libheaderrefx}[2]{\libheader{#1}\iref{#2}}
223223
\newcommand{\libheaderref}[1]{\libheaderrefx{#1}{#1.syn}}
224224
\newcommand{\libdeprheaderref}[1]{\libheaderrefx{#1}{depr.#1.syn}}
225+
\newcommand{\libheaderreftxtx}[3]{\indexhdr{#1}\tcode{<#2>}\iref{#3}}
225226

226227
%%--------------------------------------------------
227228
% General code style

0 commit comments

Comments
 (0)