1 % \iffalse meta-comment
3 % Copyright 2006, 2009, 2011, 2014 Heiko Oberdiek
4 % Copyright 2014 The LaTeX3 Project
6 % This file is part of the LaTeX base system.
7 % -------------------------------------------
9 % It may be distributed and/or modified under the
10 % conditions of the LaTeX Project Public License, either version 1.3c
11 % of this license or (at your option) any later version.
12 % The latest version of this license is in
13 % http://www.latex-project.org/lppl.txt
14 % and version 1.3c or later is part of all distributions of LaTeX
15 % version 2005/12/01 or later.
17 % This file has the LPPL maintenance status "maintained".
19 % 2006/06/02 v1.0: First version.
20 % 2009/09/25 v1.1: \usepackage disabled.
21 % 2011/07/01 v1.2: Fixes.
23 % * Update for LaTeX 2014/05/01.
24 % * Fix for anchor positions of issue titles.
26 % * Updates for ltnews21.tex.
28 % * LaTeX Project version
33 \NeedsTeXFormat{LaTeX2e
}
34 \ProvidesFile{ltnews.tex
}%
35 [2015/
02/
16 v1.4b Master file for ltnews*.tex (LaTeX Project)
]
36 \providecommand*
{\lastissue}{26}
37 \InputIfFileExists{ltnews-lastissue.cfg
}{}{}
39 \RequirePackage{ifpdf
}
41 % overwrite nasty stuff of ltnews.cfg
42 % (use of hyperref for this would also support other drivers)
45 /Subject(Issues
1--
\lastissue)
%
46 /Author(The LaTeX Project)
%
53 pdftitle=
{LaTeX News
},
%
54 pdfsubject=
{Issues
1\textendash\lastissue},
%
55 pdfauthor=
{The LaTeX Project
},
%
61 \RequirePackage{lmodern
}
62 \RequirePackage[T1]{fontenc}
63 \RequirePackage{hologo
}
65 \documentclass{ltnews
}
68 \DeclareRobustCommand\expandafter*
\expandafter\small\expandafter{\small}
70 \RequirePackage{hyperref
}
71 \hypersetup{colorlinks
}
72 \RequirePackage{bookmark
}
77 \renewcommand*
{\theissue}{%
78 \ifnum\value{issue
}<
10 0\fi
82 \newcommand*
{\MonthJanuary}{01}
83 \newcommand*
{\MonthFebruary}{02}
84 \newcommand*
{\MonthMarch}{03}
85 \newcommand*
{\MonthApril}{04}
86 \newcommand*
{\MonthMay}{05}
87 \newcommand*
{\MonthJune}{06}
88 \newcommand*
{\MonthJuly}{07}
89 \newcommand*
{\MonthAugust}{08}
90 \newcommand*
{\MonthSeptember}{09}
91 \newcommand*
{\MonthOctober}{10}
92 \newcommand*
{\MonthNovember}{11}
93 \newcommand*
{\MonthDecember}{12}
94 \newcommand*
{\printissue}{%
96 \texorpdfstring{\number\value{issue
}}{\theissue},
%
97 \texorpdfstring{\@month
\space\@year
}{\@year/\@nameuse
{Month\@month
}}%
100 \let\l@section
\l@subsection
101 \let\l@subsection
\l@subsubsection
102 \let\l@subsubsection
\l@paragraph
103 \let\l@paragraph
\l@subparagraph
105 \newcommand*
{\makefirsttitle}{%
107 \parbox[t
][4\baselineskip]{\textwidth}{%
108 \@titlefont\@title, Issues
1--
\lastissue
113 % table of contents with underlined links
114 \iffalse % disable if option colorlinks is used
115 \@ifpackagelater
{hyperref
}{2006/
06/
01}{%
116 \newcommand*
{\saved@tableofcontents
}{}%
117 \let\saved@tableofcontents
\tableofcontents
118 \renewcommand*
{\tableofcontents}{%
120 \hypersetup{pdfborderstyle=
{/S/U/W
1}}%
121 \saved@tableofcontents
127 % -- provide command introduced in new release
128 % so this typesets with an old format
129 \DeclareTextCommandDefault\textcommabelow[1]
130 {\hmode@bgroup
\ooalign{\null#1\crcr\hidewidth\raise-
.31ex
131 \hbox{\check@mathfonts
\fontsize\ssf@size
\z@
132 \math@fontsfalse
\selectfont,
}\hidewidth}\egroup}
133 \DeclareTextCommandDefault\textcommaabove[1]{%
138 \check@mathfonts
\fontsize\ssf@size
\z@
\math@fontsfalse
\selectfont`
%
150 %%% Title and Table of Contents
153 \pdfbookmark[0]{\contentsname}{toc
}
161 \renewcommand*
{\usepackage}[2][]{%
167 \def\y{|lmodern,url
}%
170 \def\y{|lmodern,url,hologo
}%
173 \@latex@error
{ltnews.tex:
\string\usepackage[#1]{#2} found
}\@ehc
179 \renewcommand*
{\documentclass}[2][]{%
180 \setcounter{footnote
}{0}%
183 \newcommand*
{\gobbleopt}[1][]{}%
184 \let\org@twocolumn
\twocolumn
185 \renewenvironment{document}{%
188 \addtocontents{toc
}{\protect\setcounter{tocdepth}{5}}%
189 \addtocontents{toc
}{%
190 \protect\makeatletter
192 \addtocontents{toc
}{%
193 \let\protect\saved@l@paragraph
\protect\l@paragraph
195 \addtocontents{toc
}{%
196 \let\protect\l@paragraph
\protect\l@subsection
199 \ifnum\@issue=
\lastissue\space
200 \addtocontents{toc
}{%
201 \let\protect\l@paragraph
\protect\saved@l@paragraph
203 \def\toclevel@subsection
{1}%
204 \def\toclevel@subsubsection
{2}%
205 \addtocontents{toc
}{\protect\setcounter{tocdepth}{4}}%
206 \renewcommand*
{\tableofcontents}{%
207 \section*
{\contentsname}%
208 \@starttoc
{toc
\lastissue}%
210 \let\saved@addtocontents
\addtocontents
211 \renewcommand*
{\addtocontents}[2]{%
212 \saved@addtocontents
{#
#1}{#
#2}%
214 \def\temp@param
{#
#1}%
215 \ifx\temp@toc
\temp@param
216 \saved@addtocontents
{toc
\lastissue}{#
#2}%
219 \let\l@subsubsection
\l@subsection
220 \let\l@subsection
\l@section
221 \let\l@section
\l@part
222 \let\l@part\@gobbletwo
225 \let\twocolumn\org@twocolumn
227 {% because of optional argument of \twocolumn
228 \pdfbookmark[0]{\printissue}{issue
\theissue}%
231 \let\WriteBookmarks\relax
232 \@firstofone
{% inside opt. arg. of \twocolumn: protect "]"
233 \renewcommand*
{\Hy@writebookmark
}[5]{}%
236 \addcontentsline{toc
}{part
}{\printissue}%
244 \ifnum\value{issue
}<
\lastissue
246 \input{ltnews
\theissue}%
250 \IfFileExists{ltnews
\theissue}{%
251 \@latex@error
{\jobname.tex is out of date,
\MessageBreak
252 there is `ltnews
\theissue.tex'
%