RE: [MiKTeX] \oddsidemargin and \evensidemargin in plain TeX
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Sukomal M. <SU...@cs...> - 2002-11-05 23:47:38
|
> -----Original Message----- > From: Proginoskes [mailto:pro...@em...] .... > > What is the plain TeX equivalent of \oddsidemargin and=20 > \evensidemargin? >=20 > Try this; I used it for the preliminary version of my thesis.=20 > You may have to change "0.5in" and "0in". >=20 > \output=3D{\ifodd\pageno\hoffset=3D0.5in \else \hoffset=3D0in = \fi > \shipout\vbox{\makeheadline \pagebody \makefootline} > \advancepageno > \ifnum\outputpenalty>-20000\else\dosupereject\fi} >=20 > -- Christopher Heckman Thanks Christopher. Your macro worked. I have used the following code at = the beginning of my document. It is just your macro with slight = modification. I was afraid that my header and footer would be modified = by this code, but fortunately it does not. Nice! (I have found that your = code is similar to that in The TeXBook (Knuth, p. 255).=20 \newdimen\oddsidemargin \newdimen\evensidemargin \oddsidemargin=3D5.0cm \evensidemargin=3D0.0cm \output=3D{\ifodd\pageno\hoffset=3D\oddsidemargin \else = \hoffset=3D\evensidemargin \fi \shipout\vbox{\makeheadline \pagebody \makefootline} \advancepageno \ifnum\outputpenalty>-20000\else\dosupereject\fi} Thanks and regards, -- Sukomal Modak |