Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to change PAPERSIZE for dvipdf globally to a4 ? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Wed Jun 22, 2005 11:53 am    Post subject: How to change PAPERSIZE for dvipdf globally to a4 ? [solved] Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Wed Jun 22, 2005 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Jun 23, 2005 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Thu Jun 23, 2005 12:52 pm    Post subject: Reply with quote

which dvipdf are you using: default, dvipdfm, or dvipdfmx?
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Jun 23, 2005 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Thu Jun 23, 2005 2:21 pm    Post subject: Reply with quote

try emerging dvipdfm or (preferably) dvipdfmx and configuring those. they are drop-in relacements which also support non-mangled pdf fonts.
Back to top
View user's profile Send private message
jonmack
n00b
n00b


Joined: 09 Oct 2004
Posts: 6
Location: UK

PostPosted: Thu Jun 23, 2005 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Jun 23, 2005 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum