Subject: | |
From: | |
Reply To: | |
Date: | Tue, 18 Feb 2003 20:52:56 +0100 |
Content-Type: | multipart/mixed |
Parts/Attachments: |
|
|
>>>>> David Kastrup <[log in to unmask]> (DK) wrote:
DK> That is a nobrainer. The .dtx file. Of course, you probably hoped
DK> for the former, so no harm in asking...
cd ~/Library/texmf/tex/latex/experimental/
diff -c /Users/piet/Library/texmf/tex/latex/experimental/xo-new.dtx.\~1\~ /Users/piet/Library/texmf/tex/latex/experimental/xo-new.dtx
*** /Users/piet/Library/texmf/tex/latex/experimental/xo-new.dtx.~1~ Tue Feb 18 19:41:17 2003
--- /Users/piet/Library/texmf/tex/latex/experimental/xo-new.dtx Tue Feb 18 20:41:39 2003
***************
*** 7,12 ****
--- 7,21 ----
%% to put this package onto CD or an archive without consulting the
%% the authors.
%%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ %% %%
+ %% NOTE: Changes to this file have been made by Piet van Oostrum: %%
+ %% - LaTeX standard marks added %%
+ %% - \topmargin, \oddsidemargin and \evensidemargin used %%
+ %% - headers and footers implemented %%
+ %% Hopefully correct. Jan 10, 2003 %%
+ %% %%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \fi
%
% \begin{macrocode}
***************
*** 203,212 ****
% my new xo-final stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def \myfinalpage {
\mbox@addtopage (\pagebodylefthpos, -\headsep)
! {page:~\thepage}
% \end{macrocode}
%
% \begin{macrocode}
--- 212,257 ----
% my new xo-final stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ % traditional LaTeX marks PvO
+ \DeclareMarkType{leftmark}
+ \DeclareMarkType{rightmark}
+ \def\markboth#1#2{%
+ \begingroup
+ \let\label\relax \let\index\relax \let\glossary\relax
+ \unrestored@protected@xdef\@tempa{#1}%
+ \expandafter\@markleft\expandafter{\@tempa}%
+ \unrestored@protected@xdef\@tempa{#2}%
+ \expandafter\@markright\expandafter{\@tempa}%
+ \endgroup
+ \if@nobreak\ifvmode\nobreak\fi\fi}
+ \def\markright#1{%
+ \begingroup
+ \let\label\relax \let\index\relax \let\glossary\relax
+ \unrestored@protected@xdef\@tempa{#1}%
+ \expandafter\@markright\expandafter{\@tempa}%
+ \endgroup
+ \if@nobreak\ifvmode\nobreak\fi\fi}
+ \def\@markleft#1{\PutMark{leftmark}{#1}}
+ \def\@markright#1{\PutMark{rightmark}{#1}}
+ \def\leftmark{\LastMark{leftmark}}
+ \def\rightmark{\FirstMark{rightmark}}
+
+ % Traditional LaTeX headers and footers PvO
+ \def\@thehead{\@oddhead} % initialization
+ \def\@thefoot{\@oddfoot}
\def \myfinalpage {
+ \if@twoside
+ \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+ \let\pagebodylefthpos\oddsidemargin
+ \else \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot \let\pagebodylefthpos\evensidemargin
+ \fi
+ \else
+ \let\pagebodylefthpos\oddsidemargin
+ \fi
\mbox@addtopage (\pagebodylefthpos, -\headsep)
! {\hbox to \textwidth{\@thehead}}
% \end{macrocode}
%
% \begin{macrocode}
***************
*** 276,281 ****
--- 321,330 ----
{\pagebodylefthpos + \columndisplacement * \col@count }
\mbox@addtopage ( \the\@tempdima , \textheight )
{ \box \saved@footins } % TEMP FMi
+ \setlength \@tempdima % add footer PvO
+ {\textheight + \footskip}
+ \mbox@addtopage (\pagebodylefthpos, \@tempdima)
+ {\hbox to \textwidth{\@thefoot}}
%
% Next thing is absolutely temp: mount a marginal area on the right
% (bottom) to allow marginal floats there (this is just for testing).
***************
*** 315,325 ****
\end{picture}
}
! \mbox@addtopage ( 0pt ,\textheight )
{ \box\grid@box }
\fi
\fi
}
\newbox\grid@box
--- 364,375 ----
\end{picture}
}
! \mbox@addtopage ( \pagebodylefthpos ,\textheight )% PvO
{ \box\grid@box }
\fi
\fi
+ \ht\page@box=\topmargin %PvO
}
\newbox\grid@box
Diff finished at Tue Feb 18 20:42:25
--
Piet van Oostrum <[log in to unmask]>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: [log in to unmask]
|
|
|