Skip to content

Commit 685a565

Browse files
tkoeppezygoloid
authored andcommitted
[macros] Remove terms-and-definitions entries from TOC and bookmarks
1 parent 6a5edb7 commit 685a565

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/macros.tex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,11 @@
508508
}
509509

510510
%%--------------------------------------------------
511-
%% Definitions section
512-
% usage: \definition{name}{xref}
513-
%\newcommand{\definition}[2]{\rSec2[#2]{#1}}
514-
% for ISO format, use:
511+
%% Definitions section for "Terms and definitions"
512+
\newcommand{\nocontentsline}[3]{}
513+
\newcommand{\tocless}[2]{\bgroup\let\addcontentsline=\nocontentsline#1{#2}\egroup}
515514
\newcommand{\definitionx}[3]{%
516515
\addxref{#3}%
517-
#1[#2]{\hfill[#3]}\vspace{-.3\onelineskip}\label{#3}\textbf{#2}\\%
516+
\tocless{#1[#2]}{\hfill[#3]}\vspace{-.3\onelineskip}\label{#3}\textbf{#2}\\*%
518517
}
519518
\newcommand{\defncontext}[1]{\textlangle#1\textrangle}

0 commit comments

Comments
 (0)