[texhax] One document different page layouts

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Wed Jul 28 21:33:10 CEST 2004


> The vmargin package should work for me, however when I tried it  I couldn=
> 't=20
> get control of the textwidth. Here is an example:
> 
> -------------------------------------------------
> \documentclass[12pt,a4paper]{report}=20
> 
> \begin{document}
> 
> \setpapersize{A4}
> %\setmargins{ leftmargin }{ topmargin }{ textwidth }{ textheight }
> { headheight }{ headsep }{ footheight }{ footskip }
> \setmargins{ 0cm }{ 0cm }{ 1cm }{ 1cm }{ 0cm }{ 0cm }{ 0cm }{ 0cm }
> 
> Asdfasdf asd fas dfa sdf as df asdf as fd as df a df as dfas df asd er t =
> try=20
> hg dfgh  v fas fsadfasfkjhwertbsdf adsf as dfas df asd fa sdf asd=20
> fqweriousdlkfjhs fg sdlkjhqwerpoiudsf asdflkhasdkj asdlkfhaqh+as+df as df
> +asoifalkjhdf bncvnmbx a df a,smdfmnbxncv xcv mxcvbnxcvbxmnb
> 
> \end{document}

of course, that doesn't work at all since you've not included the
package...

> This should print a text with 1 cm width, but does not. It prints text wi=
> th a=20
> constant width regardless of the parameters used in setmargins.

as walter wrote, and you didn't read

> > This is an FAQ.
> >
> > http://www.tex.ac.uk/cgi-bin/texfaq2html?label=3Dchangemargin

you can't "just change margins" after \begin{document} -- tex doesn't
have the means of flowing from one text size to another in the middle
of a page, so to first order it ignores the command.

add the package, move the commands between it and \begin{document} and
(assuming it doesn't complain about your weird parameters) it might
have some effect.



More information about the texhax mailing list