different tools support different sets of papersizes, so one PAPERSIZE

variable is not enough

noticed by ray at cyth.net
This commit is contained in:
sturm 2004-05-17 05:32:39 +00:00
parent c0ae8c0c74
commit edf6d23e3c
2 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: tetex.cfg,v 1.1 2003/04/04 21:22:15 sturm Exp $
# $OpenBSD: tetex.cfg,v 1.2 2004/05/17 05:32:39 sturm Exp $
# teTeX is normally configured interactively through the use of
# texconfig. To make your configuration persistent between updates
@ -14,8 +14,11 @@
# for a list of supported modes, run "texconfig mode"
MODE="ljfour"
# for a list of supported papersizes, run "texconfig xdvi"
PAPERSIZE="a4"
# default papersizes, for a list of supported papersizes, run
PS_DVIPDFM="a4" # texconfig dvipdfm paper
PS_DVIPS="a4" # texconfig dvips paper
PS_PDFTEX="a4" # texconfig pdftex paper
PS_XDVI="a4" # texconfig xdvi
# For printing, the output will be piped to DVIPS_PRINTCMD.
# Typically, DVIPS_PRINTCMD is set to "lpr" or "lpr -P foo".

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: tetex_setup.sh,v 1.1 2003/04/04 21:22:15 sturm Exp $
# $OpenBSD: tetex_setup.sh,v 1.2 2004/05/17 05:32:39 sturm Exp $
#
# This file is NOT part of teTeX itself, but only of the OpenBSD port of
# teTeX. For questions please contact the port's MAINTAINER.
@ -15,11 +15,17 @@ if [ "X${MODE}" != "X" ]; then
$TEXCONFIG dvips mode $MODE
fi
if [ "X${PAPERSIZE}" != "X" ]; then
$TEXCONFIG xdvi $PAPERSIZE
$TEXCONFIG dvips paper $PAPERSIZE
$TEXCONFIG dvipdfm paper $PAPERSIZE
$TEXCONFIG pdftex paper $PAPERSIZE
if [ "X${PS_DVIPDFM}" != "X" ]; then
$TEXCONFIG dvipdfm paper $PS_DVIPDFM
fi
if [ "X${PS_DVIPS}" != "X" ]; then
$TEXCONFIG dvips paper $PS_DVIPS
fi
if [ "X${PS_PDFTEX}" != "X" ]; then
$TEXCONFIG pdftex paper $PS_PDFTEX
fi
if [ "X${PS_XDVI}" != "X" ]; then
$TEXCONFIG xdvi $PS_XDVI
fi
if [ "X${DVIPS_PRINTCMD}" != "X" ]; then