For Programmers: Free Programming Magazines  


Home > Archive > Tex > April 2007 > DVI-->PDF changes my margins









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DVI-->PDF changes my margins
Marc

2007-04-25, 7:11 pm

Has anyone had problems maintaining the right sized margins when
converting from DVI to PDF or PS?

If I print out a page of the from dvi file my margins are perfect but
as soon as I convert the document to pdf or ps my text gets smaller
and my margins get bigger (which is a huge problem according to the
grad studies office)...

Robin Fairbairns

2007-04-25, 7:11 pm

Marc <maucoin@alumni.uwaterloo.ca> writes:
>Has anyone had problems maintaining the right sized margins when
>converting from DVI to PDF or PS?
>
>If I print out a page of the from dvi file my margins are perfect


you print from dvi direct? how? can you not just print multiple
pages by the same means?

>but
>as soon as I convert the document to pdf or ps my text gets smaller
>and my margins get bigger (which is a huge problem according to the
>grad studies office)...


the commonest means of making a mess of pdf output is to use acrobat
reader, which by default mucks about with the scaling of the output.

if you're using acrocr**, make sure you've told it (on the print
dialogue) not to mess with the scaling. it's different in every
version of acrocr** (presumably because adobe can't make up their tiny
minds), so one can't advise what setting to use. common sense usually
prevails, eventually, but its always tedious.

since you give us no indication how you're doing any of this printing
(or even what tex system you're using) it's difficult to offer more
detailed advice.
--
Robin Fairbairns, Cambridge
AES

2007-04-25, 7:11 pm

In article <1177532512.613951.311690@t38g2000prd.googlegroups.com>,
Marc <maucoin@alumni.uwaterloo.ca> wrote:

> Has anyone had problems maintaining the right sized margins when
> converting from DVI to PDF or PS?
>
> If I print out a page of the from dvi file my margins are perfect but
> as soon as I convert the document to pdf or ps my text gets smaller
> and my margins get bigger (which is a huge problem according to the
> grad studies office)...


Alternatively, you could try to get some intelligent individual higher
up in the Waterloo bureaucracy to fix your grad studies office . . .

Stanford used to have a huge Grad Studies office staffed with people who
were dedicated experts in making "huge problems" out of trivial
formatting nits such as you describe. A budget trimming era came along;
financial reality forced the university administration to consider what
things were truly important, and what weren't; and most of that office
it long gone.
Sanjoy Mahajan

2007-04-25, 10:10 pm

Maybe the dvi printing utility (however you do that) has a different
idea of the default papersize than the manual conversion to pdf or ps
used for a papersize.

For example, suppose the dvi is internally converted by the printing
utility to letter-sized postscript; so far so good. Also suppose that
the manual run of dvi->pdf converts it to A4 (which is 0.7" longer
than letter paper). Now you've got the first problem with the
margins: that the paper size changed, so there's no way to keep the
margins as you wanted.

Then you use Acroread to print this A4 pdf to a letter-paper printer.
Acroread will shrink the page by 6% to get it to fit on letter paper,
and that will further mangle your margins.

So, to be sure, I embed a \papersize special in the dvi, using

\special{papersize=8.5in,11in}%

Then 'dvips file.dvi -o file.ps' to get a letter-sized file.ps, then

ps2pdf -sPAPERSIZE=letter file.ps file.pdf

to get a letter-sized pdf.
--

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
Animesh K

2007-04-26, 7:12 pm

Marc wrote:
> Has anyone had problems maintaining the right sized margins when
> converting from DVI to PDF or PS?
>
> If I print out a page of the from dvi file my margins are perfect but
> as soon as I convert the document to pdf or ps my text gets smaller
> and my margins get bigger (which is a huge problem according to the
> grad studies office)...
>


if using lettersize and not declaring in the document, try the following:

dvipdfm -p letter filename.dvi


-p option tells the pagesize. If you are using a lettersize package and
want it in a4paper, I guess you will have to replace letter by a4paper
(or whatever its name is).

If you are on linux, try dvipdf instead of dvipdfm.

Best,
A
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com