[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: supporting twoside with proc class (#721) (203dc2c2)
GitHub
noreply at github.com
Fri Dec 10 10:05:34 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/203dc2c2465e5c54f00675fd879ebf7b4117197e
>---------------------------------------------------------------
commit 203dc2c2465e5c54f00675fd879ebf7b4117197e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Dec 10 10:05:34 2021 +0100
supporting twoside with proc class (#721)
* supporting twoside with proc class
* fix typos and remove unnecessary \normalfont
>---------------------------------------------------------------
203dc2c2465e5c54f00675fd879ebf7b4117197e
base/changes.txt | 5 +++++
base/doc/ltnews35.tex | 9 +++++++++
base/proc.dtx | 16 ++++++++++++----
3 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 592a7478..5f1fabcf 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 providing 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..a82bc115 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}
@@ -338,9 +338,17 @@
% \begin{macrocode}
\let\@oddhead\@empty
\let\@evenhead\@empty
-\def\@oddfoot{\normalfont\rightmark \hfil
- \pagename{} \thepage}
-\def\@evenfoot{\@oddfoot}
+\def\@oddfoot{\rightmark \hfil \pagename{} \thepage}
+% \end{macrocode}
+% If the \texttt{twoside} option is passed to the class 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{\pagename{} \thepage \hfil \leftmark}
+\else
+ \def\@evenfoot{\@oddfoot}
+\fi
% \end{macrocode}
%
%
More information about the latex3-commits
mailing list.