File: mktexnam.opt

package info (click to toggle)
octave 2.0.13-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 23,828 kB
  • ctags: 13,172
  • sloc: cpp: 66,241; fortran: 37,245; ansic: 26,548; sh: 7,269; makefile: 3,808; lex: 1,943; yacc: 1,844; perl: 1,676; lisp: 1,662; exp: 123
file content (98 lines) | stat: -rw-r--r-- 3,493 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh
# mktexnam.opt to determine various manipulations of the filenames.
# Sourced from mktexnam.
# 
# te@informatik.uni-hannover.de and kb@mail.tug.org. Public domain.
# $Id: mktexnam.opt,v 1.9 1998/02/24 12:16:55 olaf Exp $

# Get 8.3 filenames like dpiNNN/NAME.pk.
case "$MT_FEATURES" in
  *dosnames*) MT_PKBASE='dpi$DPI/$NAME.pk';;
esac

# Omit the mode directory (e.g., ljfour):
case "$MT_FEATURES" in
  *nomode*) MODE="";;
esac

###########################################################################
# Use this feature if you wish to use the alias files from the 
# ftp://ftp.tug.org/tex/fontname.tar.gz distribution.
###########################################################################
case "$MT_FEATURES" in
*fontmaps*)
    MT_NAMEPART='$MT_SUPPLIER/$MT_TYPEFACE'
    MT_PKDESTREL='pk/$MT_MODE/$MT_NAMEPART'
    MT_TFMDESTREL='tfm/$MT_NAMEPART'
    MT_MFDESTREL='source/$MT_NAMEPART'
    SPECIALMAP=`kpsewhich special.map`
    TYPEFACEMAP=`kpsewhich typeface.map`
    SUPPLIERMAP=`kpsewhich supplier.map`
    if test -r "$SPECIALMAP"; then
      set x `awk \
    '{if ($1 == NAME || (substr (NAME, 1, length ($1)) == $1 \
                      && substr (NAME, length (NAME), 1) ~ /[0-9]/ \
                      && substr ($1, length ($1), 1) ~ /[^0-9]/)) \
     { print $2 " " $3; exit; }}' NAME=$NAME "$SPECIALMAP"`
      shift; SUPPLIER=$1; TYPEFACE=$2
    
      if test -z "$SUPPLIER"; then
        # Try the normal case. Source first.
        s_abbrev=`echo $NAME | sed 's/^\(.\).*$/\1/'`
        SUPPLIER=`awk '{ if ($1 == s_abbrev) { print $2; exit; }}' \
                   s_abbrev=$s_abbrev "$SUPPLIERMAP"`
        if test -n "$SUPPLIER"; then
          # We found the source. Try for the typeface.
          t_abbrev=`echo $NAME | sed 's/^.//;s/\(..\).*$/\1/'`
          TYPEFACE=`awk '{ if ($1 == t_abbrev) { print $2; exit; }}' \
                       t_abbrev=$t_abbrev "$TYPEFACEMAP"`
        fi
      fi
    fi
    
    if test -z "$SUPPLIER"; then
      echo "$0: Could not map source abbreviation $s_abbrev for $NAME." >&2
      echo "$0: Need to update $SPECIALMAP?" >&2
      MT_SUPPLIER="$MT_DEFAULT_SUPPLIER"
      MT_TYPEFACE="$MT_DEFAULT_TYPEFACE"
    else
      MT_SUPPLIER="$SUPPLIER"
      if test -z "$TYPEFACE"; then
        echo "$0: Could not map typeface abbreviation $t_abbrev for $NAME." >&2
        echo "$0: Need to update $SPECIALMAP?" >&2
        MT_TYPEFACE="$MT_DEFAULT_TYPEFACE"
      else
        MT_TYPEFACE="$TYPEFACE"
      fi
    fi
esac

###########################################################################
# Use this feature to strip the "supplier" part (e.g. ams)
# of the target name:
###########################################################################

case "$MT_FEATURES" in
*stripsupplier*)
    MT_SUPPLIER=""
esac

###########################################################################
# Use this feature to strip the "typeface" part (e.g. euler)
# of the target name:
###########################################################################

case "$MT_FEATURES" in
*striptypeface*)
    MT_TYPEFACE=""
esac

# Put new fonts into the directory named by the VARTEXFONTS environment
# variable or config file value.  (A default value for VARTEXFONTS is
# already set in the default texmf.cnf, q.v.)
# 
# A user can override this setting in either direction by setting
# USE_VARTEXFONTS to 1 or 0.
case "$MT_FEATURES" in
  *varfonts*) test "$USE_VARTEXFONTS" != 0 && USE_VARTEXFONTS=1;;
esac