diff options
author | Norbert Preining <norbert@preining.info> | 2020-02-03 03:02:01 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-02-03 03:02:01 +0000 |
commit | 34897eebd22c3de968b64f09bb4a371d96cb0b89 (patch) | |
tree | 19a50e54fca63f1f6482d6cb4c2fdee676fd97b1 /macros/latex/base/ltnews.tex | |
parent | e05dc0bb38b16bfb9ba35591285e40af0adaadc4 (diff) |
CTAN sync 202002030302
Diffstat (limited to 'macros/latex/base/ltnews.tex')
-rw-r--r-- | macros/latex/base/ltnews.tex | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/macros/latex/base/ltnews.tex b/macros/latex/base/ltnews.tex index 3b351448b7..13e283c535 100644 --- a/macros/latex/base/ltnews.tex +++ b/macros/latex/base/ltnews.tex @@ -1,8 +1,8 @@ % \iffalse meta-comment % % Copyright 2006, 2009, 2011, 2014 Heiko Oberdiek -% Copyright (C) 2014-2019 The LaTeX3 Project -% +% Copyright (C) 2014-2020 The LaTeX3 Project +% % This file is part of the LaTeX base system. % ------------------------------------------- % @@ -28,12 +28,16 @@ % * 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}% - [2015/02/16 v1.4b Master file for ltnews*.tex (LaTeX Project)] -\providecommand*{\lastissue}{30} + [2020/01/30 v1.4c Master file for ltnews*.tex (LaTeX Project)] + +\providecommand*{\lastissue}{31} + \InputIfFileExists{ltnews-lastissue.cfg}{}{} @@ -81,6 +85,7 @@ \RequirePackage{hyperref} \hypersetup{colorlinks} \RequirePackage{bookmark} +\RequirePackage{multicol} \makeatletter @@ -90,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} @@ -156,6 +171,7 @@ \makeatother + \begin{document} %%% Title and Table of Contents @@ -187,7 +203,11 @@ \def\y{|graphicx}% \ifx\x\y \else - \@latex@error{ltnews.tex: \string\usepackage[#1]{#2} found}\@ehc + \def\y{|multicol}% + \ifx\x\y + \else + \@latex@error{ltnews.tex: \string\usepackage[#1]{#2} found}\@ehc + \fi \fi \fi \fi @@ -201,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 % @@ -215,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 }% @@ -224,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]{% @@ -232,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 |