[latex3-commits] [git/LaTeX3-latex3-latex2e] textcomp: trial implement variant D (6988c0de)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Nov 5 16:26:26 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : textcomp
Link       : https://github.com/latex3/latex2e/commit/6988c0de401b9c9110f7803507ad5df4666c48a4

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

commit 6988c0de401b9c9110f7803507ad5df4666c48a4
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Nov 5 16:26:26 2019 +0100

    trial implement variant D


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

6988c0de401b9c9110f7803507ad5df4666c48a4
 base/classes.dtx       | 17 ++++++++++++-----
 base/textcomp-adds.tex | 13 +++++++++++++
 2 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/base/classes.dtx b/base/classes.dtx
index 1de8095a..182d4d2b 100644
--- a/base/classes.dtx
+++ b/base/classes.dtx
@@ -53,7 +53,7 @@
 %<*driver>
 \ProvidesFile{classes.drv}
 %</driver>
-              [2019/10/25 v1.4k
+              [2019/11/05 v1.4l
 %<article|report|book> Standard LaTeX document class]
 %<10pt|11pt|12pt>      Standard LaTeX file (size option)]
 %    \end{macrocode}
@@ -2949,14 +2949,21 @@
 % \begin{macro}{\labelitemiv}
 %    Itemization is controlled by four commands: |\labelitemi|,
 %    |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which define
-%    the labels of thevarious itemization levels: the symbols used are
+%    the labels of the various itemization levels: the symbols used are
 %    bullet, bold en-dash, centered asterisk and centred dot.
 %
+% \changes{v1.4l}{2019/11/05}{Normalize label fonts} 
+%    \begin{macrocode}
+\providecommand\labelitemnormalfont{}
+\newcommand\labelitemi{\labelitemnormalfont  \textbullet}
+%    \end{macrocode}
+%    We use \cs{normalfont} explicitly here as that should stay
+%    ``normal'' even if the others are allowed to chage their
+%    behavior.
 %    \begin{macrocode}
-\newcommand\labelitemi{\textbullet}
 \newcommand\labelitemii{\normalfont\bfseries \textendash}
-\newcommand\labelitemiii{\textasteriskcentered}
-\newcommand\labelitemiv{\textperiodcentered}
+\newcommand\labelitemiii{\labelitemnormalfont\textasteriskcentered}
+\newcommand\labelitemiv{\labelitemnormalfont \textperiodcentered}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
diff --git a/base/textcomp-adds.tex b/base/textcomp-adds.tex
index 4335003d..ffd7cd96 100644
--- a/base/textcomp-adds.tex
+++ b/base/textcomp-adds.tex
@@ -489,4 +489,17 @@
 \DeclareEncodingSubset{TS1}{ptmj}    {4}
 
 
+% for item labels provide:
+
+\def\labelitemnormalfont{\fontseries\seriesdefault\fontshape\shapedefault\selectfont}
+
+% or
+
+\def\labelitemnormalfont{\normalfont}
+
+% and use in \labelitem... in classes
+
+% footnote symbols already use \normalfont hardwired (and that should
+% probably stay like that).
+
 \makeatother    





More information about the latex3-commits mailing list