From 73ae0b76cec19ae26ec1e4d3603f33a1fb7724b4 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Fri, 2 Aug 2024 18:06:43 +0200 Subject: [PATCH] [macros,diff] Rework header indexing to avoid hyphenation hints --- source/compatibility.tex | 4 ++-- source/macros.tex | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index 59a892fdb7..93baac8554 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}, +\libheaderrefxx{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}, +\libheaderrefxx{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 71121b1927..d54104139d 100644 --- a/source/macros.tex +++ b/source/macros.tex @@ -215,11 +215,13 @@ \newcommand{\libspec}[2]{\indexlibrarymemberx{#1}{#2}#1} % index for library headers -\newcommand{\libheader}[1]{\indexhdr{#1}\tcode{<#1>}} +\newcommand{\libheaderx}[2]{\indexhdr{#1}\tcode{<#2>}} +\newcommand{\libheader}[1]{\libheaderx{#1}{#1}} \newcommand{\indexheader}[1]{\index[headerindex]{\idxhdr{#1}|idxbfpage}} \newcommand{\libheaderdef}[1]{\indexheader{#1}\tcode{<#1>}} \newcommand{\libnoheader}[1]{\indextext{\idxhdr{#1}!absence thereof}\tcode{<#1>}} -\newcommand{\libheaderrefx}[2]{\libheader{#1}\iref{#2}} +\newcommand{\libheaderrefxx}[3]{\libheaderx{#1}{#2}\iref{#3}} +\newcommand{\libheaderrefx}[2]{\libheaderrefxx{#1}{#1}{#2}} \newcommand{\libheaderref}[1]{\libheaderrefx{#1}{#1.syn}} \newcommand{\libdeprheaderref}[1]{\libheaderrefx{#1}{depr.#1.syn}}