diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-04 20:57:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-04 20:57:14 +0000 |
commit | 70aaae3b3c98fb6357c846ad54ce2367e9682f50 (patch) | |
tree | f0446e015c31510a11ada780ad4978dce03ad104 /Master/texmf-dist/source/latex/base/ltsect.dtx | |
parent | be53f9d0af947622afca67b99c89a90d5c08dbd4 (diff) |
latex2e (4oct19)
git-svn-id: svn://tug.org/texlive/trunk@52286 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltsect.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ltsect.dtx | 86 |
1 files changed, 63 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltsect.dtx b/Master/texmf-dist/source/latex/base/ltsect.dtx index cb1c6d2c304..239d4c547fd 100644 --- a/Master/texmf-dist/source/latex/base/ltsect.dtx +++ b/Master/texmf-dist/source/latex/base/ltsect.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1993-2018 +% Copyright (C) 1993-2019 % The LaTeX3 Project and any individual authors listed elsewhere % in this file. % @@ -13,7 +13,7 @@ % The latest version of this license is in % https://www.latex-project.org/lppl.txt % and version 1.3c or later is part of all distributions of LaTeX -% version 2005/12/01 or later. +% version 2008 or later. % % This file has the LPPL maintenance status "maintained". % @@ -31,7 +31,7 @@ %%% From File: ltsect.dtx %<*driver> % \fi -\ProvidesFile{ltsect.dtx}[2018/09/26 v1.1c LaTeX Kernel (Sectioning)] +\ProvidesFile{ltsect.dtx}[2019/08/27 v1.1d LaTeX Kernel (Sectioning)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltsect.dtx} @@ -85,6 +85,7 @@ % {\cs{@tempa} to \cs{reserved@a}} % \changes{v1.0m}{1995/05/03}{TO: Promoted documentation to doc.sty % standard} +% \changes{v1.1d}{2019/08/27}{Make various commands robust} % % \begin{macrocode} %<*2ekernel> @@ -114,65 +115,104 @@ % And finally, the |\maketitle| command produces the actual title, % using the information previously saved with the other commands. % +% +% +% \begin{macrocode} +%</2ekernel> +%<*2ekernel|latexrelease> +%<latexrelease>\IncludeInRelease{2019/10/01}% +%<latexrelease> {\title}{Make commands robust}% +% \end{macrocode} +% +% % \begin{macro}{\title} -% \begin{macro}{\@title} % \changes{LaTeX2e}{1993/12/11}{Added default} % |\title| for use in |\maketitle|. If not given |\maketitle| will % produce an error message. % \begin{macrocode} -\def\title#1{\gdef\@title{#1}} -\def\@title{\@latex@error{No \noexpand\title given}\@ehc} +\DeclareRobustCommand\title[1]{\gdef\@title{#1}} % \end{macrocode} % \end{macro} -% \end{macro} +% % % \begin{macro}{\author} -% \begin{macro}{\@author} % \changes{LaTeX2e}{1993/12/11}{Added default} % % |\author| for use in |\maketitle|. If not given |\maketitle| will % produce a warning message. % % \begin{macrocode} -\def\author#1{\gdef\@author{#1}} -\def\@author{\@latex@warning@no@line{No \noexpand\author given}} +\DeclareRobustCommand\author[1]{\gdef\@author{#1}} % \end{macrocode} % \end{macro} -% \end{macro} % % \begin{macro}{\date} -% \begin{macro}{\@date} % |\date| for use in |\maketitle|. If not given |\maketitle| will % produce |\today| as the default. % \begin{macrocode} -\def\date#1{\gdef\@date{#1}} -\gdef\@date{\today} +\DeclareRobustCommand\date[1]{\gdef\@date{#1}} % \end{macrocode} % \end{macro} -% \end{macro} % % \changes{1.0h}{1994/11/04}{(ASAJ) Added \cs{protected@xdef} to % \cs{thanks}.} % \begin{macro}{\thanks} % \begin{macrocode} -\def\thanks#1{\footnotemark +\DeclareRobustCommand\thanks[1]{\footnotemark \protected@xdef\@thanks{\@thanks \protect\footnotetext[\the\c@footnote]{#1}}% } % \end{macrocode} % \end{macro} % -% \begin{macro}{\@thanks} -% \begin{macrocode} -\let\@thanks\@empty -% \end{macrocode} -% \end{macro} % \begin{macro}{\and} % \begin{macrocode} -\def\and{% % \begin{tabular} +\DeclareRobustCommand\and{% % \begin{tabular} \end{tabular}% \hskip 1em \@plus.17fil% - \begin{tabular}[t]{c}}% % \end{tabular} + \begin{tabular}[t]{c}}% % \end{tabular} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +%</2ekernel|latexrelease> +%<latexrelease>\EndIncludeInRelease +%<latexrelease>\IncludeInRelease{0000/00/00}% +%<latexrelease> {\title}{Make commands robust}% +%<latexrelease> +%<latexrelease>\kernel@make@fragile\title +%<latexrelease>\kernel@make@fragile\author +%<latexrelease>\kernel@make@fragile\date +%<latexrelease>\kernel@make@fragile\thanks +%<latexrelease>\kernel@make@fragile\and +%<latexrelease> +%<latexrelease>\EndIncludeInRelease +%<*2ekernel> +% \end{macrocode} +% +% +% +% \begin{macro}{\@title} +% \begin{macrocode} +\def\@title{\@latex@error{No \noexpand\title given}\@ehc} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\@author} +% \begin{macrocode} +\def\@author{\@latex@warning@no@line{No \noexpand\author given}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\@date} +% \begin{macrocode} +\gdef\@date{\today} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\@thanks} +% \begin{macrocode} +\let\@thanks\@empty % \end{macrocode} % \end{macro} % |