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}{27}
37 \InputIfFileExists{ltnews-lastissue.cfg
}{}{}
40 \ifx\pdfoutput\undefined
41 \let\pdfoutput\outputmode
42 \protected\def\pdfinfo{\pdfextension info
}
45 \RequirePackage{ifpdf
}
47 % overwrite nasty stuff of ltnews.cfg
48 % (use of hyperref for this would also support other drivers)
51 /Subject(Issues
1--
\lastissue)
%
52 /Author(The LaTeX Project)
%
59 pdftitle=
{LaTeX News
},
%
60 pdfsubject=
{Issues
1\textendash\lastissue},
%
61 pdfauthor=
{The LaTeX Project
},
%
67 \RequirePackage{lmodern
}
68 \RequirePackage[T1]{fontenc}
69 \RequirePackage{hologo
}
71 \documentclass{ltnews
}
74 \DeclareRobustCommand\expandafter*
\expandafter\small\expandafter{\small}
76 \RequirePackage{hyperref
}
77 \hypersetup{colorlinks
}
78 \RequirePackage{bookmark
}
83 \renewcommand*
{\theissue}{%
84 \ifnum\value{issue
}<
10 0\fi
88 \newcommand*
{\MonthJanuary}{01}
89 \newcommand*
{\MonthFebruary}{02}
90 \newcommand*
{\MonthMarch}{03}
91 \newcommand*
{\MonthApril}{04}
92 \newcommand*
{\MonthMay}{05}
93 \newcommand*
{\MonthJune}{06}
94 \newcommand*
{\MonthJuly}{07}
95 \newcommand*
{\MonthAugust}{08}
96 \newcommand*
{\MonthSeptember}{09}
97 \newcommand*
{\MonthOctober}{10}
98 \newcommand*
{\MonthNovember}{11}
99 \newcommand*
{\MonthDecember}{12}
100 \newcommand*
{\printissue}{%
102 \texorpdfstring{\number\value{issue
}}{\theissue},
%
103 \texorpdfstring{\@month
\space\@year
}{\@year/\@nameuse
{Month\@month
}}%
105 \let\l@part
\l@section
106 \let\l@section
\l@subsection
107 \let\l@subsection
\l@subsubsection
108 \let\l@subsubsection
\l@paragraph
109 \let\l@paragraph
\l@subparagraph
111 \newcommand*
{\makefirsttitle}{%
113 \parbox[t
][4\baselineskip]{\textwidth}{%
114 \@titlefont\@title, Issues
1--
\lastissue
119 % table of contents with underlined links
120 \iffalse % disable if option colorlinks is used
121 \@ifpackagelater
{hyperref
}{2006/
06/
01}{%
122 \newcommand*
{\saved@tableofcontents
}{}%
123 \let\saved@tableofcontents
\tableofcontents
124 \renewcommand*
{\tableofcontents}{%
126 \hypersetup{pdfborderstyle=
{/S/U/W
1}}%
127 \saved@tableofcontents
133 % -- provide command introduced in new release
134 % so this typesets with an old format
135 \DeclareTextCommandDefault\textcommabelow[1]
136 {\hmode@bgroup
\ooalign{\null#1\crcr\hidewidth\raise-
.31ex
137 \hbox{\check@mathfonts
\fontsize\ssf@size
\z@
138 \math@fontsfalse
\selectfont,
}\hidewidth}\egroup}
139 \DeclareTextCommandDefault\textcommaabove[1]{%
144 \check@mathfonts
\fontsize\ssf@size
\z@
\math@fontsfalse
\selectfont`
%
156 %%% Title and Table of Contents
159 \pdfbookmark[0]{\contentsname}{toc
}
167 \renewcommand*
{\usepackage}[2][]{%
173 \def\y{|lmodern,url
}%
176 \def\y{|lmodern,url,hologo
}%
179 \@latex@error
{ltnews.tex:
\string\usepackage[#1]{#2} found
}\@ehc
185 \renewcommand*
{\documentclass}[2][]{%
186 \setcounter{footnote
}{0}%
189 \newcommand*
{\gobbleopt}[1][]{}%
190 \let\org@twocolumn
\twocolumn
191 \renewenvironment{document}{%
194 \addtocontents{toc
}{\protect\setcounter{tocdepth}{5}}%
195 \addtocontents{toc
}{%
196 \protect\makeatletter
198 \addtocontents{toc
}{%
199 \let\protect\saved@l@paragraph
\protect\l@paragraph
201 \addtocontents{toc
}{%
202 \let\protect\l@paragraph
\protect\l@subsection
205 \ifnum\@issue=
\lastissue\space
206 \addtocontents{toc
}{%
207 \let\protect\l@paragraph
\protect\saved@l@paragraph
209 \def\toclevel@subsection
{1}%
210 \def\toclevel@subsubsection
{2}%
211 \addtocontents{toc
}{\protect\setcounter{tocdepth}{4}}%
212 \renewcommand*
{\tableofcontents}{%
213 \section*
{\contentsname}%
214 \@starttoc
{toc
\lastissue}%
216 \let\saved@addtocontents
\addtocontents
217 \renewcommand*
{\addtocontents}[2]{%
218 \saved@addtocontents
{#
#1}{#
#2}%
220 \def\temp@param
{#
#1}%
221 \ifx\temp@toc
\temp@param
222 \saved@addtocontents
{toc
\lastissue}{#
#2}%
225 \let\l@subsubsection
\l@subsection
226 \let\l@subsection
\l@section
227 \let\l@section
\l@part
228 \let\l@part\@gobbletwo
231 \let\twocolumn\org@twocolumn
233 {% because of optional argument of \twocolumn
234 \pdfbookmark[0]{\printissue}{issue
\theissue}%
237 \let\WriteBookmarks\relax
238 \@firstofone
{% inside opt. arg. of \twocolumn: protect "]"
239 \renewcommand*
{\Hy@writebookmark
}[5]{}%
242 \addcontentsline{toc
}{part
}{\printissue}%
250 \ifnum\value{issue
}<
\lastissue
252 \input{ltnews
\theissue}%
256 \IfFileExists{ltnews
\theissue}{%
257 \@latex@error
{\jobname.tex is out of date,
\MessageBreak
258 there is `ltnews
\theissue.tex'
%