View previous topic :: View next topic |
Author |
Message |
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Wed Jun 22, 2005 11:53 am Post subject: How to change PAPERSIZE for dvipdf globally to a4 ? [solved] |
|
|
Hi!
With dvips, my dvi files are always converted to papersize a4 (as is set in /usr/share/groff/1.19.1/font/devps/DESC )
But dvipdf always uses letter format, so I have to set the papersize manually for every use:
Code: | dvipdf -sPAPERSIZE=a4 bla.dvi |
This is quite annoying Is there a way to set this globally for the whole system?
Thanx and bye, Michael _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Last edited by untiefe on Thu Jun 23, 2005 3:04 pm; edited 1 time in total |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Wed Jun 22, 2005 9:06 pm Post subject: |
|
|
for dvips, you just edit the paper size part at the end of /usr/share/texmf/dvips/config/config.ps
probably similar for dvipdf |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Jun 23, 2005 6:32 am Post subject: |
|
|
adsmith wrote: | for dvips, you just edit the paper size part at the end of /usr/share/texmf/dvips/config/config.ps
probably similar for dvipdf |
Well, as I said, dvips works fine.
And the papersize is set to a4 in: /usr/share/texmf/dvipdfm/config/config
Code: | % Set default paper size here
p a4
|
But it does not work
(It's actually the same on both gentoo machines) _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Thu Jun 23, 2005 12:52 pm Post subject: |
|
|
which dvipdf are you using: default, dvipdfm, or dvipdfmx? |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Jun 23, 2005 1:38 pm Post subject: |
|
|
adsmith wrote: | which dvipdf are you using: default, dvipdfm, or dvipdfmx? |
I'm using the default, that belongs to ghostscript:
Code: | $ > equery belongs /usr/bin/dvipdf
[ Searching for file(s) /usr/bin/dvipdf in *... ]
app-text/ghostscript-7.07.1-r8 (/usr/bin/dvipdf) |
Is it only working for the other packages? _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Thu Jun 23, 2005 2:21 pm Post subject: |
|
|
try emerging dvipdfm or (preferably) dvipdfmx and configuring those. they are drop-in relacements which also support non-mangled pdf fonts. |
|
Back to top |
|
|
jonmack n00b
Joined: 09 Oct 2004 Posts: 6 Location: UK
|
Posted: Thu Jun 23, 2005 2:38 pm Post subject: |
|
|
I guess if you can't configure it anywhere, you could always set up an alias?
Code: | alias dvipdf='dvipdf -sPAPERSIZE=a4' |
_________________ jonmack |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Jun 23, 2005 3:03 pm Post subject: |
|
|
It works with dvipdfmx
And I prefer this solution over the alias, because you see changes during etc-update ...
Thanx to all of you! _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
|