[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#874632: texinfo: inconsistent papersize for generated dvi and ps



Hi Vincent,

there have been already a few answers/discussion between Hilmar and you,
I just want to throw in a few comments.

On Fri, 08 Sep 2017, Vincent Lefevre wrote:
> generated dvi and ps have a letter papersize, so that the contents

dvi files don't have a paper size whatsoever attached.
dvips normally reads the configuration file config.ps which can be found
via
	kpsewhich --format='dvips config' config.ps
which in my case resolves to
	/usr/share/texlive/texmf-dist/dvips/config/config.ps
The file there contains the following lines:
	% WARNING FOR SYSTEM ADMINISTRATORS
	% If you make a copy and drop this line, you have to include
	% paper sizes manually!
	cconfig-paper.ps
which again can be found with
	kpsewhich --format='dvips config' config-paper.ps
which resolves in my case to
	/var/lib/texmf/dvips/config/config-paper.ps
and the first entry there defines the current paper (AFAIR).

If there are other files returned in your case, this might explain the
difference.

> This silently occurs, so that for instance, one may upload incorrect
> files to a web server, which is really annoying.

Well, dvips just follows what is configured for it. Since dvi does not
have an embedded paper size, only what is defined in the dvips config
files counts.

> The generated pdf is OK on both machines (a4 contents, a4 papersize).

??? How do you generate it?

> In case this matters (but this shouldn't), the paperconf command
> outputs a4 on both machines.

paperconf should trigger updates to config-paper.ps, too, so there
should be a4 also.

Best

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


Reply to: