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: #!/bin/sh # # convert TeX dvi to Postscript # # # # read in PostScript configuration settings # source ${SPOOLDIR}/postscript.cfg DVIPS_OPTIONS="-t $PAPERSIZE" # # will want to source print options for dvips # TMP_FILE=`mktemp /tmp/rhsprintfilter.XXXXXX` || exit 1 cat > $TMP_FILE dvips -f $DVIPS_OPTIONS < $TMP_FILE if [ -f "$TMP_FILE" ]; then rm -f $TMP_FILE fi exit 0
This issue has been forwarded to a developer for further action.
assigned to jbj
Fixed in Raw Hide tetex-1.0.6-1. Thanks for the script.
*** 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 /usr/share/texmf/dvips/config/config.ps file, which fixes it.
*** Bug 5192 has been marked as a duplicate of this bug. ****** Bug 6900 has been marked as a duplicate of this bug. ***