[latex3-commits] [git/LaTeX3-latex3-latex3] main: Fix bookmark levels by a simple hack in l3doc (fixes #860) (3f925b3c2)

Bruno Le Floch blflatex at gmail.com
Fri Apr 23 23:50:31 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/3f925b3c231c9ece4abded0d9d356eb4b760b5c8

>---------------------------------------------------------------

commit 3f925b3c231c9ece4abded0d9d356eb4b760b5c8
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Fri Apr 23 23:50:31 2021 +0200

    Fix bookmark levels by a simple hack in l3doc (fixes #860)
    
    Simply \let all of the \section and similar commands to the level
    above.  I've also fixed up a few instances where the \section/\subsection
    usage was not very consistent with other files.


>---------------------------------------------------------------

3f925b3c231c9ece4abded0d9d356eb4b760b5c8
 l3kernel/doc/source3.tex        | 8 ++++----
 l3kernel/l3deprecation.dtx      | 2 +-
 l3kernel/l3kernel-functions.dtx | 6 ++++--
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/l3kernel/doc/source3.tex b/l3kernel/doc/source3.tex
index 2b01ff376..b3975480f 100644
--- a/l3kernel/doc/source3.tex
+++ b/l3kernel/doc/source3.tex
@@ -70,11 +70,11 @@ for those people who are interested.
 
 \part{Implementation}
 
-\def\maketitle{\refstepcounter{chapter}} %step chapter
+\def\maketitle{}
+\let\subsubsection\subsection
+\let\subsection\section
+\let\section\chapter
 
-\def\toclevel at section{0}   %change levels 
-\def\toclevel at subsection{1}
-\def\toclevel at subsubsection{2}
 \EnableImplementation
 \DisableDocumentation
 \DocInputAgain
diff --git a/l3kernel/l3deprecation.dtx b/l3kernel/l3deprecation.dtx
index d54d57b13..dd3d6cb54 100644
--- a/l3kernel/l3deprecation.dtx
+++ b/l3kernel/l3deprecation.dtx
@@ -714,7 +714,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \subsubsection{Deprecated \pkg{l3tl} functions}
+% \subsection{Deprecated \pkg{l3tl} functions}
 %
 %    \begin{macrocode}
 %<@@=tl>
diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index 4786f6732..09a3f3022 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -53,7 +53,9 @@
 %
 % \begin{implementation}
 %
-% \section{Internal kernel functions}
+% \section{\pkg{l3kernel-functions}: kernel-reserved functions}
+%
+% \subsection{Internal kernel functions}
 %
 % \begin{function}{\__kernel_chk_cs_exist:N, \__kernel_chk_cs_exist:c}
 %   \begin{syntax}
@@ -613,7 +615,7 @@
 %   \meta{tl~var} and \meta{tokens}.
 % \end{function}
 %
-% \section{Kernel backend functions}
+% \subsection{Kernel backend functions}
 %
 % These functions are required to pass information to the backend. The nature
 % of these means that they are defined only when the relevant backend is in





More information about the latex3-commits mailing list.