[latex3-commits] [git/LaTeX3-latex3-latex3] master: fix TOC for l3news; added page numbers; unified citation keys (1b7fa8c6e)
Frank Mittelbach
frank.mittelbach at latex-project.org
Thu Jan 30 12:54:43 CET 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/1b7fa8c6ed2285104c26c30ad82d4f83fbfecc75
>---------------------------------------------------------------
commit 1b7fa8c6ed2285104c26c30ad82d4f83fbfecc75
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Thu Jan 30 12:54:43 2020 +0100
fix TOC for l3news; added page numbers; unified citation keys
>---------------------------------------------------------------
1b7fa8c6ed2285104c26c30ad82d4f83fbfecc75
l3kernel/doc/l3news.tex | 23 +++++++++++++++++++----
l3kernel/doc/l3news10.tex | 6 +++---
l3kernel/doc/l3news11.tex | 2 +-
3 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/l3kernel/doc/l3news.tex b/l3kernel/doc/l3news.tex
index 1c1b9eed7..ba379538e 100644
--- a/l3kernel/doc/l3news.tex
+++ b/l3kernel/doc/l3news.tex
@@ -1,4 +1,4 @@
-% Copyright 2019 The LaTeX3 Project
+% Copyright 2019-2020 The LaTeX3 Project
\providecommand*{\lastissue}{12}
@@ -60,6 +60,21 @@
}%
}]%
}
+
+% show the page number on first page of issues:
+
+\renewcommand{\ps at titlepage}{%
+ \renewcommand{\@oddhead}{\hfill}%
+ \renewcommand{\@evenhead}{\hfill}%
+ \renewcommand{\@oddfoot}{\@indiciafont\@indicia\hfill --\thepage}%
+ \renewcommand{\@evenfoot}{\@indiciafont\@indicia\hfill --\thepage}%
+}
+
+% only needed if the old ltnews class is used
+\renewcommand{\@oddfoot}{\@indiciafont\mbox{}\hfill --\thepage}%
+\renewcommand{\@evenfoot}{\@indiciafont\mbox{}\hfill --\thepage}%
+
+
\makeatother
\begin{document}
@@ -97,7 +112,7 @@
\let\protect\l at paragraph\protect\l at subsection
}%
\fi
- \ifnum\@issue=\lastissue\space
+ \ifnum\@issue>9\space % we may have issue tocs ...
\addtocontents{toc}{%
\let\protect\l at paragraph\protect\saved at l@paragraph
}%
@@ -106,7 +121,7 @@
\addtocontents{toc}{\protect\setcounter{tocdepth}{4}}%
\renewcommand*{\tableofcontents}{%
\section*{\contentsname}%
- \@starttoc{toc\lastissue}%
+ \@starttoc{toc\theissue}%
}%
\let\saved at addtocontents\addtocontents
\renewcommand*{\addtocontents}[2]{%
@@ -114,7 +129,7 @@
\def\temp at toc{toc}%
\def\temp at param{##1}%
\ifx\temp at toc\temp at param
- \saved at addtocontents{toc\lastissue}{##2}%
+ \saved at addtocontents{toc\theissue}{##2}%
\fi
}%
\let\l at subsubsection\l at subsection
diff --git a/l3kernel/doc/l3news10.tex b/l3kernel/doc/l3news10.tex
index c8ac0dffb..88291e848 100644
--- a/l3kernel/doc/l3news10.tex
+++ b/l3kernel/doc/l3news10.tex
@@ -66,7 +66,7 @@ sufficiently flexible that for many common \LaTeX{} package structures, setting
up for creating releases will require only a few lines of configuration.
In addition to the documentation distributed with \pkg{l3build}, the project
-website~\cite[publications in 2014]{project-publications} contains some
+website~\cite[publications in 2014]{10:project-publications} contains some
articles, videos and conference presentations that explain how to use
\pkg{l3build} to manage and test any type of (\LaTeX{}) package.
@@ -186,7 +186,7 @@ floats. Early research results have been presented at Bacho\TeX{} 2016, TUG
2016 in Toronto and later in the year at \mbox{DocEng'16}, the ACM Symposium on
Document Engineering in Vienna. A link to the ACM paper (that allows a download
free of charge) can be found on the project
-website~\cite{project-publications}. The site also holds the speaker notes from
+website~\cite{10:project-publications}. The site also holds the speaker notes from
Toronto and will host a link to a video of the presentation once it becomes
available.
@@ -212,7 +212,7 @@ for \hologo{LuaTeX}.
\begin{thebibliography}{10}
\raggedright
- \bibitem{project-publications}
+ \bibitem{10:project-publications}
Links to various publications by members of the \LaTeX{} Project Team.
\newblock \url{https://www.latex-project.org/publications}.
\end{thebibliography}
diff --git a/l3kernel/doc/l3news11.tex b/l3kernel/doc/l3news11.tex
index b88e7d242..d992e9f42 100644
--- a/l3kernel/doc/l3news11.tex
+++ b/l3kernel/doc/l3news11.tex
@@ -198,7 +198,7 @@ as possible, we strive to avoid requiring changes to the reference files.
\raggedright
\bibitem{SubGit}
\emph{SubGit}, TMate Software, \url{https://subgit.com}
- \bibitem{project-publications}
+ \bibitem{11:project-publications}
Links to various publications by members of the \LaTeX{} Project Team.
\newblock \url{https://www.latex-project.org/publications}.
\end{thebibliography}
More information about the latex3-commits
mailing list.