File: tex.cfg

package info (click to toggle)
wp2x 2.5-mhi-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 708 kB
  • ctags: 629
  • sloc: ansic: 2,068; makefile: 80; perl: 70; sh: 40
file content (193 lines) | stat: -rw-r--r-- 6,395 bytes parent folder | download | duplicates (5)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# TeX configuration file for WP2X.
#
# Written 5/20/89 by Raymond Chen.
# Updated 7/05/91 by Raymond Chen.
#
# If you change this file, please make a note of it below
# and in the BEGIN string.  (And probably also in the typeout
# string.)
#
# Version 0.0:  Initial version.
# Version 0.1:  Add more magic characters.
# Version 0.2:  Add new tags, reorder existing tags for easier comparison.
# Version 0.3:  Fix Note#
# Version 0.4:  Fix some %'s that weren't doubled
# Version 0.5:  Discuss { } \
# Version 0.6:  New output scheme.

typeout="TeX descriptor file for WP2X by Raymond Chen\n"

# At the beginning of the file, we put some macros which are
# used by the page numbering routines.

BEGIN="%% This file was created by the WP2X program, using a TeX
%% descriptor file (Version 0.6) written by Raymond Chen.
%% Do not expect everything to be converted perfectly.
%%
%% Macros for page numbering.
\\def\\numberleft{\\tenrm\\folio\\hss}
\\def\\numbercenter{\\hss\\tenrm\\folio\\hss}
\\def\\numberright{\\tenrm\\folio\\hss}
\\def\\numberevenodd{\\ifodd\\pageno\\numberright\\else\\numberleft\\fi}
%% Macros for conditional end of page
\\def\\CondEOP#1{\\vskip0pt plus#1\\baselineskip\\penalty0
               \\vskip0pt plus-#1\\baselineskip}
%%

"

END="\\vfill\\eject\\end
%% That's all, folks.
"

# How to make a one-line comment in TeX.
Comment="%\n%% "
comment="\n"

# Protect magic characters.
'%'="\\%%"
'$'="\\$"
'#'="\\#"
'&'="\\&"
'^'="\\^{}"
'_'="\\_"
'~'="\\~{}"

# Curly braces and backslashes are intentionally left untranslated.
# If you want them to be converted, uncomment these three lines.
#
#   '{'="$\\{$"
#   '}'="$\\}$"
#   '\\'="$\\backslash$"
#
# These characters are left untranslated because they do not exist
# in the TeX font tables.  I.e., they won't be printed in boldface
# or italic or whatever font you selected; they always come from
# the math font.

# Now the actual code expansions.

PageNo="\\folio{}"           # insert page number
RomanPage="\\pageno=-%1 "    # set roman numerals
ArabicPage="\\pageno=%1 "    # set arabic numerals

HSpace="~"                   # Unbreakable space

# If you use tables, you may want to change the definition of Tab below.
Tab="%\n\n\\indent "         # Tabs mean to indent and start a new para.

BeginTabs="%\n%% [Tab settings at "
SetTab="%1 "
SetTabCenter="%1(center) "
SetTabRight="%1(right) "
SetTabDecimal="%1(decimal) "
EndTabs="]\n"

HPg="%\n\\vfill\\eject\n"    # Hard page is just a \vfill\eject
CondEOP="\\CondEOP{%1}"      # Conditional end-of-page

HRt="%\n\n"                  # Hard return becomes a blank line
SRt="%\n"                    # Soft return is a newline

-="-"                        # Hyphens are hyphens
--="-%%\n"                   # Hyphen at the end of a line gets a %
=="{-}"                      # Nonbreaking hyphen
\-="\\-"                     # Discretionary hyphen
\--="\\-%%\n"                # Discretionary hyphen at the end of the line

# Margins are left as comments, since TeX margins are rather hairy
# The only interesting that left/right margins does is end the paragraph.
Marg="%\n\n%% left margin %1, right margin %2\n"
TopMarg="%\n%% top margin %1\n"
PageLength="%\n%% page length %1\n"

# Line spacing changes are treated by storing the proper value into
# \baselineskip.

SS="\\baselineskip=\\normalbaselineskip\n"
1.5S="\\baselineskip=1.5\\normalbaselineskip\n"
DS="\\baselineskip=2\\normalbaselineskip\n"
TS="\\baselineskip=3\\normalbaselineskip\n"
LS="\\baselineskip=%1\\normalbaselineskip \\divide\\baselineskip by2\n"
LPI="%\n%% Change to %1 lines per inch\n"

Bold="{\\bf "                # Boldface
bold="}"
Und="{\\it "                 # Underlining is in italics
und="\\/}"                   # with italic correction stuck in always.
Red="{\\redline "            # Redline
red="}"
Strike="{\\strikeout "       # Strikeout
strike="}"
Rev="{\\reverse "            # Reverse video
rev="}"
Over="\\llap{"               # Overprinting is faked with \llap
over="}"
Sup="\\raise.5ex\\hbox{"     # fake superscript
sup="}"
Sub="\\lower.5ex\\hbox{"     # fake subscript
sub="}"

# UpHalfLine, DownHalfLine, AdvanceToHalf -- undefined

Indent="%\n\n{\\narrower "   # Indented paragraphs use \narrower; this
DIndent="%\n\n{\\narrower "  # is not a perfect solution, but it's a start.
indent="\\par}"
MarginRelease="\\leavevmode\\kern-%1em "

Center="%\n\n\\centerline{"
center="}"
CenterHere="\\centerhere{"   # Not supported
centerhere="}"

Align="\\align{"             # Not supported
align="}"
FlushRight="\\rightline{"
flushright="}"

# Math, math, MathCalc, MathCalcColumn, SubTtl, IsSubTtl, Ttl, IsTtl, GrandTtl
# Col, col -- undefined

Fn="\\note{"                 # This uses the \note macros in the TeXbook
fn="}"
SetFn#="\\notenumber=%1 "
En="\\endnote{"              # You'll have to write your own \endnote macro
en="}"
FNote#=""                    # Note numbers are automatically generated.
ENote#=""                    # Note numbers should be automatically generated.

# TableMarker -- undefined

Hyph="\\hyphenpenalty=50\n"        # Allow hyphenation
hyph="\\hyphenpenalty=10000\n"     # Disable hyphenation
NoHyphWord="\\hbox{}"              # Suppress hyphenation of next word
Just="\\rightskip=0pt\n"           # Right justify
just="\\raggedright\n"             # Ragged right
Wid="\\clubpenalty=150 \\widowpenalty=150\n" # Widow protection
wid="\\clubpenalty=0 \\widowpenalty=0\n" # Allow widows

# HZone, DAlign -- undefined

# Headers and footers
Header="\\headline={"
header="}"
Footer="\\footline={"
footer="}"

# These guys are left as comments, since actually doing them right
# requires all sorts of icky things I'd rather not think about.
Supp="%\n%% Suppress headers and footers on this page\n"
CtrPg="%\n%% Center this page vertically\n"
SetFont="%\n%% Change to %1 pitch, font %2\n"
SetBin="%\n%% Change to paper bin %1\n"

# Page numbering
PN0="\\headline={\\hss}\\footline={\\hss}%%\n"
PN1="\\headline={\\numberleft}\\footline={\\hss}%%\n"
PN2="\\headline={\\numbercenter}\\footline={\\hss}%%\n"
PN3="\\headline={\\numberright}\\footline={\\hss}%%\n"
PN4="\\headline={\\numberevenodd}\\footline={\\hss}%%\n"
PN5="\\headline={\\hss}\\footline={\\numberleft}%%\n"
PN6="\\headline={\\hss}\\footline={\\numbercenter}%%\n"
PN7="\\headline={\\hss}\\footline={\\numberright}%%\n"
PN8="\\headline={\\hss}\\footline={\\numberevenodd}%%\n"