Bug 3379 - dvi files print by default on a4 paper
dvi files print by default on a4 paper
Product: Red Hat Linux
Classification: Retired
Component: tetex (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
: 3512 5192 6900 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1999-06-09 23:39 EDT by rychlik
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-08-12 18:31:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description rychlik 1999-06-09 23:39:43 EDT
When printer is PostScript, and a .dvi file is printed,
the PostScript file produced by dvips has paper size set
to a4 by default, and incorrectly printed on letter size
paper. The user can fix the problem by doing
	export DVIPS_OPTIONS='-t letter'
at command line or putting this line in .bashrc.
The variable DVIPS_OPTIONS seems to be undocumented and
it is used in /usr/lib/rhs/rhs-printfilters/dvi-to-ps.fpi.
It is nowhere set. I think it was meant to be set based
on /var/spool/lpd/lp/postscript.cfg. This is a modified
dvi-to-ps.fpi which does the trick:

# convert TeX dvi to Postscript

# read in PostScript configuration settings
source ${SPOOLDIR}/postscript.cfg


# will want to source print options for dvips
TMP_FILE=`mktemp /tmp/rhsprintfilter.XXXXXX` || exit 1
cat > $TMP_FILE

if [ -f "$TMP_FILE" ]; then
      rm -f $TMP_FILE

exit 0
Comment 1 Jay Turner 1999-06-29 11:13:59 EDT
This issue has been forwarded to a developer for further action.
Comment 2 Cristian Gafton 1999-07-28 19:06:59 EDT
assigned to jbj
Comment 3 Jeff Johnson 1999-08-12 18:31:59 EDT
Fixed in Raw Hide tetex-1.0.6-1. Thanks for the script.
Comment 4 Jeff Johnson 1999-08-12 18:34:59 EDT
*** Bug 3512 has been marked as a duplicate of this bug. ***

     The default paper size is A4, with the result that when
using standard
American letter paper Tex output is not centered.  The
manual should instruct
people to add a line   t letter  to the
file, which fixes it.
Comment 5 Jeff Johnson 2000-01-15 16:15:59 EST
*** Bug 5192 has been marked as a duplicate of this bug. ****** Bug 6900 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.