Karakas Online

11.8. dvips localization

The only localization of dvips available seems to be the redefinition of paper size, depending on the user's (or system's) locale. For example, to change the paper size to letter format (used in North America), one would do

texconfig dvips paper lettersize

In SuSE Linux, this is done automatically by the SuSEconfig.tetex script (located in /sbin/conf.d/) by taking into account the LC_PAPER locale:

function get_paper () {
    ( 
        . /etc/sysconfig/language &> /dev/null
        read h w r < <(LANG=$RC_LANG locale -k LC_PAPER)
        case "$h" in
            height=297) echo a4     ;;
            *)          echo letter ;;
        esac
    )
}
Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/dvips-localization.html All contents © 2002-2007 Chris Karakas