diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex-dev/base/ltnews.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex-dev/base/ltnews.tex | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex-dev/base/ltnews.tex b/Master/texmf-dist/doc/latex-dev/base/ltnews.tex index a771dc37634..13e283c535d 100644 --- a/Master/texmf-dist/doc/latex-dev/base/ltnews.tex +++ b/Master/texmf-dist/doc/latex-dev/base/ltnews.tex @@ -2,7 +2,7 @@ % % Copyright 2006, 2009, 2011, 2014 Heiko Oberdiek % Copyright (C) 2014-2020 The LaTeX3 Project -% +% % This file is part of the LaTeX base system. % ------------------------------------------- % @@ -28,11 +28,13 @@ % * LaTeX Project version % 2015/02/16 v1.4b: % * Fix TOC issue +% 2020/01/30 v1.4b: +% * Fix TOC issue more generally and add page numbers % \fi \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltnews.tex}% - [2020/01/09 v1.4c Master file for ltnews*.tex (LaTeX Project)] + [2020/01/30 v1.4c Master file for ltnews*.tex (LaTeX Project)] \providecommand*{\lastissue}{31} @@ -93,6 +95,16 @@ \number\value{issue}% } + +% show the page number on first page of issues: + +\renewcommand{\ps@titlepage}{% + \renewcommand{\@oddhead}{\hfill}% + \renewcommand{\@evenhead}{\hfill}% + \renewcommand{\@oddfoot}{\@indiciafont\@indicia\hfill --\thepage}% + \renewcommand{\@evenfoot}{\@indiciafont\@indicia\hfill --\thepage}% +} + \newcommand*{\MonthJanuary}{01} \newcommand*{\MonthFebruary}{02} \newcommand*{\MonthMarch}{03} @@ -159,6 +171,7 @@ \makeatother + \begin{document} %%% Title and Table of Contents @@ -208,6 +221,8 @@ }% \newcommand*{\gobbleopt}[1][]{}% \let\org@twocolumn\twocolumn + \renewcommand\NeedsTeXFormat[1]{\NeedsTeXFormatdate}% ignore that inside + \newcommand\NeedsTeXFormatdate[1][]{}% % inidividual issues \renewenvironment{document}{% \clearpage \ifnum\@issue=20 % @@ -222,7 +237,7 @@ \let\protect\l@paragraph\protect\l@subsection }% \fi - \ifnum\@issue=\lastissue\space + \ifnum\@issue >20\space \addtocontents{toc}{% \let\protect\l@paragraph\protect\saved@l@paragraph }% @@ -231,7 +246,7 @@ \addtocontents{toc}{\protect\setcounter{tocdepth}{4}}% \renewcommand*{\tableofcontents}{% \section*{\contentsname}% - \@starttoc{toc\lastissue}% + \@starttoc{toc\theissue}% }% \let\saved@addtocontents\addtocontents \renewcommand*{\addtocontents}[2]{% @@ -239,7 +254,7 @@ \def\temp@toc{toc}% \def\temp@param{##1}% \ifx\temp@toc\temp@param - \saved@addtocontents{toc\lastissue}{##2}% + \saved@addtocontents{toc\theissue}{##2}% \fi }% \let\l@subsubsection\l@subsection |