Skip to content

Commit bc42757

Browse files
jensmaurerzygoloid
authored andcommitted
[macros] Fix PDF links to clauses and annexes
Such links were pointing to immediately after the clause or annex title, not to immediately before them. The issue was introduced with commit beb8815. Fixes NB JP 014 and JP 015 (C++20 DIS)
1 parent 2934897 commit bc42757

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/macros.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@
7070
% Set the xref label for a clause to be "Clause n", not just "n".
7171
\makeatletter
7272
\newcommand{\customlabel}[2]{%
73-
\protected@write \@auxout {}{\string \newlabel {#1}{{#2}{\thepage}{#2}{#1}{}} }%
74-
\hypertarget{#1}{}%
73+
\@bsphack \begingroup \protected@edef \@currentlabel {\protect \M@TitleReference{#2}{\M@currentTitle}}\MNR@label{#1}\endgroup \@esphack%
7574
}
7675
\makeatother
7776
\newcommand{\clauselabel}[1]{\customlabel{#1}{Clause \thechapter}}

0 commit comments

Comments
 (0)