From 493326937c1ac3c7cf8b328a3e33b392c7a1f7d9 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Sun, 21 Jul 2024 23:43:30 +0800 Subject: [PATCH] Use a new macro to avoid `\-` in index reference. --- source/compatibility.tex | 4 ++-- source/macros.tex | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index 44052918b0..b1723ef084 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -2264,7 +2264,7 @@ \libheaderrefx{condition_variable}{condition.variable.syn}, \libheaderrefx{forward_list}{forward.list.syn}, \libheaderref{future}, -\libheaderrefx{initiali\-zer_list}{initializer.list.syn}, +\libheaderreftxtx{initializer_list}{initiali\-zer_list}{initializer.list.syn}, \libheaderref{mutex}, \libheaderrefx{random}{rand.synopsis}, \libheaderref{ratio}, @@ -2273,7 +2273,7 @@ \libheaderrefx{system_error}{system.error.syn}, \libheaderref{thread}, \libheaderref{tuple}, -\libheaderrefx{type\-index}{type.index.synopsis}, +\libheaderreftxtx{typeindex}{type\-index}{type.index.synopsis}, \libheaderrefx{type_traits}{meta.type.synop}, \libheaderrefx{unordered_map}{unord.map.syn}, and diff --git a/source/macros.tex b/source/macros.tex index 8b4821fdf3..994b78e553 100644 --- a/source/macros.tex +++ b/source/macros.tex @@ -222,6 +222,7 @@ \newcommand{\libheaderrefx}[2]{\libheader{#1}\iref{#2}} \newcommand{\libheaderref}[1]{\libheaderrefx{#1}{#1.syn}} \newcommand{\libdeprheaderref}[1]{\libheaderrefx{#1}{depr.#1.syn}} +\newcommand{\libheaderreftxtx}[3]{\indexhdr{#1}\tcode{<#2>}\iref{#3}} %%-------------------------------------------------- % General code style