[latex3-commits] [latex3/latex2e] If-X-TF: Standardise "sec:" label prefix (6c7632fc)

github at latex-project.org github at latex-project.org
Mon Sep 2 14:05:23 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : If-X-TF
Link       : https://github.com/latex3/latex2e/commit/6c7632fc5084bf4145848651a624cd48950c4cda

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

commit 6c7632fc5084bf4145848651a624cd48950c4cda
Author: Joseph Wright <joseph at texdev.net>
Date:   Mon Sep 2 12:58:40 2024 +0100

    Standardise "sec:" label prefix


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

6c7632fc5084bf4145848651a624cd48950c4cda
 base/doc/clsguide.tex | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index 35bf2cfe..9106d055 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -76,13 +76,13 @@ information for general \LaTeX{} users on up-to-date approaches to creating
 commands, etc.
 
 \section{Writing classes and packages}
-\label{Sec:writing}
+\label{sec:writing}
 
 This section covers some general points concerned with writing
 \LaTeX{} classes and packages.
 
 \subsection{Is it a class or a package?}
-\label{Sec:classorpkg}
+\label{sec:classorpkg}
 
 The first thing to do when you want to put some new \LaTeX{} commands
 in a file is to decide whether it should be a \emph{document class} or a
@@ -211,7 +211,7 @@ introduction to the approach is provided at
 \url{https://www.alanshawn.com/latex3-tutorial/}.
 
 \subsection{Box commands and color}
-\label{Sec:color}
+\label{sec:color}
 
 Even if you do not intend to use color in your own documents, by taking note of
 the points in this section you can ensure that your class or package is
@@ -243,14 +243,14 @@ regions of the page such as captions or section headings to the `main document
 color'.
 
 \subsection{General style}
-\label{Sec:general}
+\label{sec:general}
 
 \LaTeX{} provides many commands designed to help you produce well-structured
 class and package files that are both robust and portable. This section
 outlines some ways to make intelligent use of these.
 
 \subsubsection{Loading other files}
-\label{Sec:loading}
+\label{sec:loading}
 
 \LaTeX{} provides these commands:
 \begin{verbatim}
@@ -351,7 +351,7 @@ the interface for using these is described in \texttt{lthooks}. There are
 also hooks to apply to files, described in \texttt{ltfilehooks}.
 
 \section{The structure of a class or package}
-\label{Sec:structure}
+\label{sec:structure}
 
 The outline of a class or package file is:
 \begin{description}
@@ -470,7 +470,7 @@ the \LaTeX{} source: declaration of options first then processing options in a
 second step. Both also allow options to be passed on to other packages or an
 underlying class. As the `classical' simple text approach is conceptually more
 straight-forward to illustrate, it is used here to show the general structure:
-see Section~\ref{Sec:opt:keyval} for full details of the key--value approach.
+see Section~\ref{sec:opt:keyval} for full details of the key--value approach.
 
 An option is declared as follows:
 \begin{verbatim}
@@ -516,7 +516,7 @@ option is used. This can be done by writing:
 It is possible to pass options on to another package or class, using the
 command |\PassOptionsToPackage| or |\PassOptionsToClass| (note that this is a
 specialised operation that works only for option names): see
-Section~\ref{Sec:opmove}. For example, to pass every unknown option on to the
+Section~\ref{sec:opmove}. For example, to pass every unknown option on to the
 |article| class, you can use:
 \begin{verbatim}
    \DeclareOption*{%
@@ -532,7 +532,7 @@ To process the options with which the file was called, you should use:
    \ProcessOptions\relax
 \end{verbatim}
 This executes the \m{code} for each option that was both specified and declared
-(see Section~\ref{Sec:commands.options} for details of how this is done).
+(see Section~\ref{sec:commands.options} for details of how this is done).
 
 For example, if the |jane| package file contains:
 \begin{verbatim}
@@ -659,7 +659,7 @@ issue numbers, authors of articles, page styles and so on; but this skeleton
 gives a start. The |ltnews| class file is not much more complex than this one.
 
 \section{Commands for class and package writers}
-\label{Sec:commands}
+\label{sec:commands}
 
 This section describes briefly each of the commands for class and package
 writers. To find out about other aspects of the system,
@@ -736,7 +736,7 @@ identification banner of any file other than those in the standard \LaTeX{}
 distribution.
 
 \subsection{Loading files}
-\label{Sec:loadf}
+\label{sec:loadf}
 
 This group of commands can be used to create your own document class or package
 by building on existing classes or packages.
@@ -775,10 +775,10 @@ Examples:
 
 The two |WithOptions| versions simply load the class (or package) file with
 exactly those options that are being used by the current file (class or
-package). See below, in \ref{Sec:opmove}, for further discussion of their use.
+package). See below, in \ref{sec:opmove}, for further discussion of their use.
 
 \subsection{Delaying code}
-\label{Sec:delays}
+\label{sec:delays}
 
 As noted earlier, a sophisticated hook system is available and described in
 \texttt{lthooks}. Here, we document a small set of convenient short names for
@@ -823,7 +823,7 @@ Repeated use of these commands is permitted: the code in the arguments is
 stored (and later executed) in the order of their declarations.
 
 \subsection{Creating and using keyval options}
-\label{Sec:opt:keyval}
+\label{sec:opt:keyval}
 
 As with any key--value input, using key--value pairs as package or class
 options has two parts: creating the key options and setting (using) them.
@@ -909,7 +909,7 @@ latter is not given, the value of |\@currname| is used. This command may be used
 within a package to set options before or after using |\ProcessKeyOptions|.
 
 \subsection{Passing options around}
-\label{Sec:opmove}
+\label{sec:opmove}
 
 These two commands are also very useful within the \m{code} argument of
 options.
@@ -936,7 +936,7 @@ Similarly, |\PassOptionsToClass| may be used in a class file to pass options to
 another class to be loaded with |\LoadClass|.
 
 The effects and use of these two commands should be contrasted with those of
-the following two (documented above, in \ref{Sec:loadf}):
+the following two (documented above, in \ref{sec:loadf}):
 \begin{verbatim}
    \LoadClassWithOptions
    \RequirePackageWithOptions
@@ -1129,7 +1129,7 @@ prints a space. Also, these should not end with a full stop as one is
 automatically added.
 
 \section{Miscellaneous commands, etc.}
-\label{Sec:commands.misc}
+\label{sec:commands.misc}
 
 \subsection{Layout parameters}
 
@@ -1490,7 +1490,7 @@ starts altering the definitions of commands. It allows you to check, in
 particular, that no other package has redefined the same command.
 
 \subsection{Option declaration}
-\label{Sec:commands.options.dec}
+\label{sec:commands.options.dec}
 
 The following commands deal with the declaration and handling of options to
 document classes and packages using a classical `simple text' approach. Every
@@ -1530,7 +1530,7 @@ If a package file contains no |\DeclareOption*| then, by default, each
 specified but undeclared option for that package will produce an error.
 
 \subsection{Commands within option code}
-\label{Sec:within.code}
+\label{sec:within.code}
 
 These two commands can be used only within the \m{code} argument of either
 |\DeclareOption| or |\DeclareOption*|. Other commands commonly used within
@@ -1547,7 +1547,7 @@ This expands to the name of the current option.
 This causes the current option to be added to the list of `unused options'.
 
 \subsection{Option processing}
-\label{Sec:commands.options}
+\label{sec:commands.options}
 
 \begin{decl}
   |\ProcessOptions|





More information about the latex3-commits mailing list.