Re: Problem setting a4paper option using dvips



"Dan" <luecking@xxxxxxxx> wrote in message
news:1123176232.856753.325550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Ulrike Fischer wrote:
> > "Steven Endres" <stevenendres@xxxxxxxxxxxxxxxxxxxxxx> schrieb:
> >
> > >> > For some reason, the following code works fine for all paper sizes
> > >> > when using pdflatex. It also works fine when using latex => dvips
> > >> > => ps2pdf for
> > >> > all paper sizes EXCEPT a4paper. So if I use
> > >> > \documentclass[executivepaper]{minimal}, for example, my pdf page
> > >> > size is
> > >> > 7.25x10.5 inches. But if I use \documentclass[a4paper]{minimal},
> > >> > for example, my pdf page size is 8.5x11 inches (letterpaper).
> > >>
> > >> I found the following works: Edit config.ps so that the lines:
> > >>
> > >> @ a4 210mm 297mm
> > >> @+ ! %%DocumentPaperSizes: a4
> > >> @+ %%BeginPaperSize: a4
> > >> @+ a4
> > >> @+ %%EndPaperSize
> > >>
> > >> occur before (or instead of) the lines:
> > >>
> > >> @ A4size 210mm 297mm
> > >> @+ %%PaperSize: A4
> > >>
> >
> > > Well, thank you Dan, that certainly did the trick.
> > >
> > > Is this just a MikTeX issue?
> >
> > I don't know. But it surely could happen also in other installations.
> >
> > You should warn your users that if dvips seems to ignore the paper size
> > there could be a problem in the config.ps (or that they are using dvips
> > with a command line option like -t letter).
> >
> > > I noticed when editing the config.ps that
> > > it says "% dvips config.ps for MiKTeX 2.4.1775" at the top. Does
> > > anyone know if this problem has been documented anywhere?
> >
> > ftp://ftp.dante.de/tex-
> > archive/macros/latex/contrib/IEEEtran/testflow/testflow_doc.txt
> >
> >
> > > Should I submit this as a MikTeX bug?
> >
> > It isn't really a bug. It is documentated behaviour, the one paper
> > command _suggest_ a paper format while the other _enforce_ it.
> >
> > But I think it would be better if the standard config.ps would be
> > changed so that the second type of paper size command comes first.
>
> That second one depends on the ps-to-pdf processor recognizes the
> _command_ a4 as a command to select that paper size. GhostScript does
> but I am uncertain as to its status for other PS interpreters.
>
> The first one adds only a certain structured comment, and requires the
> processor simply to recognize it and take appropriate action. A wrapper
> script could easily do that with no PS knowledge at all. That, of
> course, depends on the comment being one widely recognized.
>
> Perhaps dvips could do one or the other (or both), controlled somehow
> by the -Ppdf switch.
>
>
> Dan
>

I'd like to thank all of you for your insightful replies. From what you've
said so far, it seems this is an issue that will require some research and
testing on my part to develop a robust solution. Since I have a deadline in
a few weeks, I think I shall only support letterpaper for my initial
version. Then once the pressure's off, I'll look for a good solution for
inclusion in a subsequent release.


.



Relevant Pages

  • Re: Problem setting a4paper option using dvips
    ... >> Well, thank you Dan, that certainly did the trick. ... > You should warn your users that if dvips seems to ignore the paper size ... >> Should I submit this as a MikTeX bug? ... > changed so that the second type of paper size command comes first. ...
    (comp.text.tex)
  • Re: Stalls and Thoughts
    ... Dan wrote: ... command" is that condition where induced drag is at its greatest, ... pitch only controls airspeed, ...
    (rec.aviation.piloting)
  • Re: Problem setting a4paper option using dvips
    ... with the standard config.ps dvips doesn't write the ps a4 command to ... But this doesn't work if the class does a papersize special. ... And in case anyway has a setup that is configured for letter paper ...
    (comp.text.tex)
  • Re: packages algorithm and tocbibind
    ... > Thanks Dan, it works for me (although I don't understand why the toc ... > Is this a bug in the algorithm or tocbibind package? ... list into the TOC. ... If that command is undefined it is silently ...
    (comp.text.tex)
  • Re: default chunk size for wss in 2003 (sp1) command line variable
    ... Thanks so much Dan my man ... does nothing but gve a command line error - and I think the reason is the ... "Dan Orchard" wrote: ... > Seth at Sherwood wrote: ...
    (microsoft.public.sharepoint.windowsservices)