[latex3-commits] [git/LaTeX3-latex3-latex2e] gh704: supporting twoside with proc class (084fb779)
Frank Mittelbach
frank.mittelbach at latex-project.org
Thu Dec 9 21:04:03 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : gh704
Link : https://github.com/latex3/latex2e/commit/084fb77905ae7529bd2ee9932abf713c3d3d470e
>---------------------------------------------------------------
commit 084fb77905ae7529bd2ee9932abf713c3d3d470e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Thu Dec 9 21:04:03 2021 +0100
supporting twoside with proc class
>---------------------------------------------------------------
084fb77905ae7529bd2ee9932abf713c3d3d470e
base/changes.txt | 5 +++++
base/doc/ltnews35.tex | 9 +++++++++
base/proc.dtx | 14 ++++++++++++--
3 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 592a7478..4c929b38 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2021-12-09 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * proc.dtx (subsection{The page style}):
+ Support twoside by provided an appropriate footer line (gh/704).
+
2021-12-08 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* lttextcomp.dtx (section{Sub-encodings}):
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index a27788a7..cc65c4b2 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -205,6 +205,15 @@ engine. This simplifies the handling of these callbacks and makes it
easier to provide consistent interfaces for user defined \texttt{list}
callbacks.
+\subsection{Class \class{proc} supports \option{twoside}}
+
+The document class \class{proc}, which is a small variation on the
+\class{article} class, now supports the \option{twoside} option
+displaying different data in the footer line on recto and verso pages.
+%
+\githubissue{gh/704}
+
+
\subsection{???}
%
\githubissue{???}
diff --git a/base/proc.dtx b/base/proc.dtx
index 43bebeb2..9e19d02c 100644
--- a/base/proc.dtx
+++ b/base/proc.dtx
@@ -73,7 +73,7 @@
%</driver>
%<+class>\ProvidesClass{proc}
%<+style>\ProvidesFile{proc.sty}
- [2020/11/23 v1.3l
+ [2021/12/09 v1.3m
%<+class> Standard LaTeX document class]
%<+style> LaTeX 2.09 compatibility style option `proc']
% \end{macrocode}
@@ -340,7 +340,17 @@
\let\@evenhead\@empty
\def\@oddfoot{\normalfont\rightmark \hfil
\pagename{} \thepage}
-\def\@evenfoot{\@oddfoot}
+% \end{macrocode}
+% If the \texttt{twoside} option is passed to the classe we provide
+% a different footer that shows the \cs{leftmark} if that is set.
+% \changes{v1.3m}{2021/12/09}{Support twoside (gh/704)}
+% \begin{macrocode}
+\if at twoside
+ \def\@evenfoot{\normalfont\pagename{} \thepage
+ \hfil \leftmark}
+\else
+ \def\@evenfoot{\@oddfoot}
+\fi
% \end{macrocode}
%
%
More information about the latex3-commits
mailing list.