texlive[59845] Master/texmf-dist: titlesec (5jul21)
commits+karl at tug.org
commits+karl at tug.org
Mon Jul 5 22:54:50 CEST 2021
Revision: 59845
http://tug.org/svn/texlive?view=revision&revision=59845
Author: karl
Date: 2021-07-05 22:54:50 +0200 (Mon, 05 Jul 2021)
Log Message:
-----------
titlesec (5jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/titlesec/README.md
trunk/Master/texmf-dist/doc/latex/titlesec/titleps.pdf
trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex
trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.pdf
trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex
trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty
trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty
trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/README.md 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/README.md 2021-07-05 20:54:50 UTC (rev 59845)
@@ -28,6 +28,9 @@
### Latest changes
```
+2.14 2021-07-05
+ A couple of minor changes (for issues #17, #39).
+
2.13 2019-10-16
- \markboth (which has been redefined in the LaTeX kernel) works
again.
@@ -64,5 +67,5 @@
### Contact
Please, for suggestions, bug reports, etc., go to
-More
- http://www.texnia.com/contact.html
+
+ https://github.com/jbezos/titlesec/issues
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titleps.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex 2021-07-05 20:54:50 UTC (rev 59845)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,8 +7,8 @@
% Repository: https://github.com/jbezos/titlesec
%
-\def\fileversion{2.13}
-\def\docdate{2019/10/16}
+\def\fileversion{2.14}
+\def\docdate{2021/07/05}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex 2021-07-05 20:54:50 UTC (rev 59845)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,8 +7,8 @@
% Repository: https://github.com/jbezos/titlesec
%
-\def\fileversion{2.13}
-\def\docdate{2019/10/16}
+\def\fileversion{2.14}
+\def\docdate{2021/07/05}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
@@ -38,7 +38,7 @@
\title{The \textsf{titlesec}, \textsf{titleps} and \textsf{titletoc}
Packages\footnote{The \textsf{titlesec} package is currently at
-version 2.13. \copyright{} 1998--2019 Javier Bezos.}}
+version 2.14. \copyright{} 1998--2021 Javier Bezos.}}
\author{Javier Bezos\footnote{For bug reports, comments and
suggestions go to \href{http://www.tex-tipografia.com/contact.html}%
@@ -863,7 +863,7 @@
related stuff like counters, macros, format, and spacing is left to the
responsibility of the user. If there is a TOC, also the TOC format,
which might require redefining the corresponding macros to change the
- hardcoded value (either by hand or with \textsf{titletoc}).
+ hardcoded value (either by hand or with \textsf{titletoc}).
\end{warning}
\begin{desc}
@@ -901,6 +901,11 @@
except if you use the |newparttoc| option.
\end{itemize}
+\begin{warning}
+ If you set or reset the class, you may need to redefine the format,
+ too.
+\end{warning}
+
\begin{desc}
|loadonly| \quad (Package option)
\end{desc}
@@ -1007,13 +1012,13 @@
That works with standard classes, but if you are using
\textsf{fancyhdr} or \textsf{titlesec} to define headers you need
further refinement to kill the section number. In \textsf{titlesec}
-that's accomplished with |\ifthesection| (see below).
+that's accomplished with |\ifthesection| (see \textsf{titleps.pdf}).
-As you can see, there are no |\addcontentsline|, no
-|\markboth|, no |\section*|, just logical structure. Of
-course you may change it as you wish; for example if you decide
-these sections should be typeset in small typeface, include
-|\small|, and if you realize you do not like that, remove it.
+As you can see, there are no |\addcontentsline|, no |\markboth|, no
+|\section*|, just logical structure. Of course you may change it as you
+wish; for example if you decide these sections should be typeset in
+small typeface, include |\small|, and if you realize you do not like
+that, remove it.
While the standard \LaTeX{} commands are easier and more
direct for simple cases, I think the proposed method above is
@@ -1979,7 +1984,7 @@
\end{verbatim}
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}\ignorespaces}
-\setcounter{section}{9}
+\setcounter{section}{8}
\endgroup
\bigskip
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty 2021-07-05 20:54:50 UTC (rev 59845)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -13,7 +13,7 @@
\ifx\ttl at coreps\@empty\else % START code for package
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titleps}[2019/10/16 v2.13 Page styles]
+\ProvidesPackage{titleps}[2021/07/05 v2.14 Page styles]
% This package is mainly a wrapper for the pagestyle macros provided
% by titlesec, so that they can be used without it. Functionality is
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty 2021-07-05 20:54:50 UTC (rev 59845)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -34,7 +34,7 @@
% ~~~~~~~
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titlesec}[2019/10/16 v2.13 Sectioning titles]
+\ProvidesPackage{titlesec}[2021/07/05 v2.14 Sectioning titles]
% Initialization
% ~~~~~~~~~~~~~~
@@ -289,8 +289,13 @@
\def\ttl at b{ttlf@#1}%
\def\ttl at a##1{\csname ttl at key@##1\endcsname}% Used as elt in try
\ttl at trylist
+ \ifx\ttl at c\@empty
+ \PackageError{titlesec}{No format for this command}%
+ {If you (re)set the class of a sectioning command, you may\MessageBreak
+ you may need to (re)define its format with \string\titleformat}%
+ \fi
\ifttl at explicit
- \def\ttl at passexplicit{\ttl at case{#4}}%
+ \def\ttl at passexplicit{\ttl at case{#4}}%
\ttl at c{#4}{#2}{#3}{}% ttl at c is returned by ttl at try with ttlf at ...
\else
\let\ttl at passexplicit\ttl at case
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty 2021-07-05 20:54:36 UTC (rev 59844)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty 2021-07-05 20:54:50 UTC (rev 59845)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,7 +7,7 @@
% Repository: https://github.com/jbezos/titlesec
%
-\ProvidesPackage{titletoc}[2019/10/16 v2.13 TOC entries]
+\ProvidesPackage{titletoc}[2021/07/05 v2.14 TOC entries]
% The following tags are used:
% ttl@ : the generic one, shared with titlesec
@@ -531,7 +531,7 @@
\AtBeginDocument{%
\ifx\ttl at gobblecontents\@undefined
- \def\ttl at gobblecontents#1#2#3{\ignorespaces}%
+ \def\ttl at gobblecontents#1#2#3#4{\ignorespaces}%
\fi}
\def\ttl at toctop{-1000}
More information about the tex-live-commits
mailing list.