Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to modify the paper dimensions in plain TeX?

Tags:

I mean the whole paper, not only the text zone in it.

I want the dvi output to look 1 centimetre x 10 metres in the viewer if I set these dimensions in the tex file.

And I don't want to go through LaTeX for it.

like image 685
Fabien Avatar asked Jan 15 '09 17:01

Fabien


People also ask

How do I change the paper size in LaTeX?

The paper size can be set to any size you need by means of the command papersize={⟨width⟩,⟨height⟩} . Here the text area, the left margin and the top margin are set. The right and bottom margins are automatically computed to fit the page.

How do I reduce margins in LaTeX?

LaTeX's margins are, by default, 1.5 inches wide on 12pt documents, 1.75 inches wide on 11pt documents, and 1.875 inches wide on 10pt documents. This is the standard for book margins. If you want to change them, you have several options: the "geometry" package, the "fullpage" package or changing the margins by hand.

How do you add margins in LaTeX?

Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry .


1 Answers

Add \special{papersize=1cm,1000cm} in the first page of the document. This is really a dvips extension, but many dvi viewers understand it. (And of course set \hsize, \vsize etc. to control the positioning of text.)

like image 172
Jouni K. Seppänen Avatar answered Sep 27 '22 23:09

Jouni K. Seppänen