home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / html / windows / wp2x / tex.cfg < prev    next >
Encoding:
Text File  |  1991-08-06  |  6.4 KB  |  194 lines

  1. # TeX configuration file for WP2X.
  2. #
  3. # Written 5/20/89 by Raymond Chen.
  4. # Updated 7/05/91 by Raymond Chen.
  5. #
  6. # If you change this file, please make a note of it below
  7. # and in the BEGIN string.  (And probably also in the typeout
  8. # string.)
  9. #
  10. # Version 0.0:  Initial version.
  11. # Version 0.1:  Add more magic characters.
  12. # Version 0.2:  Add new tags, reorder existing tags for easier comparison.
  13. # Version 0.3:  Fix Note#
  14. # Version 0.4:  Fix some %'s that weren't doubled
  15. # Version 0.5:  Discuss { } \
  16. # Version 0.6:  New output scheme.
  17.  
  18. typeout="TeX descriptor file for WP2X by Raymond Chen\n"
  19.  
  20. # At the beginning of the file, we put some macros which are
  21. # used by the page numbering routines.
  22.  
  23. BEGIN="%% This file was created by the WP2X program, using a TeX
  24. %% descriptor file (Version 0.6) written by Raymond Chen.
  25. %% Do not expect everything to be converted perfectly.
  26. %%
  27. %% Macros for page numbering.
  28. \\def\\numberleft{\\tenrm\\folio\\hss}
  29. \\def\\numbercenter{\\hss\\tenrm\\folio\\hss}
  30. \\def\\numberright{\\tenrm\\folio\\hss}
  31. \\def\\numberevenodd{\\ifodd\\pageno\\numberright\\else\\numberleft\\fi}
  32. %% Macros for conditional end of page
  33. \\def\\CondEOP#1{\\vskip0pt plus#1\\baselineskip\\penalty0
  34.                \\vskip0pt plus-#1\\baselineskip}
  35. %%
  36.  
  37. "
  38.  
  39. END="\\vfill\\eject\\end
  40. %% That's all, folks.
  41. "
  42.  
  43. # How to make a one-line comment in TeX.
  44. Comment="%\n%% "
  45. comment="\n"
  46.  
  47. # Protect magic characters.
  48. '%'="\\%%"
  49. '$'="\\$"
  50. '#'="\\#"
  51. '&'="\\&"
  52. '^'="\\^{}"
  53. '_'="\\_"
  54. '~'="\\~{}"
  55.  
  56. # Curly braces and backslashes are intentionally left untranslated.
  57. # If you want them to be converted, uncomment these three lines.
  58. #
  59. #   '{'="$\\{$"
  60. #   '}'="$\\}$"
  61. #   '\\'="$\\backslash$"
  62. #
  63. # These characters are left untranslated because they do not exist
  64. # in the TeX font tables.  I.e., they won't be printed in boldface
  65. # or italic or whatever font you selected; they always come from
  66. # the math font.
  67.  
  68. # Now the actual code expansions.
  69.  
  70. PageNo="\\folio{}"           # insert page number
  71. RomanPage="\\pageno=-%1 "    # set roman numerals
  72. ArabicPage="\\pageno=%1 "    # set arabic numerals
  73.  
  74. HSpace="~"                   # Unbreakable space
  75.  
  76. # If you use tables, you may want to change the definition of Tab below.
  77. Tab="%\n\n\\indent "         # Tabs mean to indent and start a new para.
  78.  
  79. BeginTabs="%\n%% [Tab settings at "
  80. SetTab="%1 "
  81. SetTabCenter="%1(center) "
  82. SetTabRight="%1(right) "
  83. SetTabDecimal="%1(decimal) "
  84. EndTabs="]\n"
  85.  
  86. HPg="%\n\\vfill\\eject\n"    # Hard page is just a \vfill\eject
  87. CondEOP="\\CondEOP{%1}"      # Conditional end-of-page
  88.  
  89. HRt="%\n\n"                  # Hard return becomes a blank line
  90. SRt="%\n"                    # Soft return is a newline
  91.  
  92. -="-"                        # Hyphens are hyphens
  93. --="-%%\n"                   # Hyphen at the end of a line gets a %
  94. =="{-}"                      # Nonbreaking hyphen
  95. \-="\\-"                     # Discretionary hyphen
  96. \--="\\-%%\n"                # Discretionary hyphen at the end of the line
  97.  
  98. # Margins are left as comments, since TeX margins are rather hairy
  99. # The only interesting that left/right margins does is end the paragraph.
  100. Marg="%\n\n%% left margin %1, right margin %2\n"
  101. TopMarg="%\n%% top margin %1\n"
  102. PageLength="%\n%% page length %1\n"
  103.  
  104. # Line spacing changes are treated by storing the proper value into
  105. # \baselineskip.
  106.  
  107. SS="\\baselineskip=\\normalbaselineskip\n"
  108. 1.5S="\\baselineskip=1.5\\normalbaselineskip\n"
  109. DS="\\baselineskip=2\\normalbaselineskip\n"
  110. TS="\\baselineskip=3\\normalbaselineskip\n"
  111. LS="\\baselineskip=%1\\normalbaselineskip \\divide\\baselineskip by2\n"
  112. LPI="%\n%% Change to %1 lines per inch\n"
  113.  
  114. Bold="{\\bf "                # Boldface
  115. bold="}"
  116. Und="{\\it "                 # Underlining is in italics
  117. und="\\/}"                   # with italic correction stuck in always.
  118. Red="{\\redline "            # Redline
  119. red="}"
  120. Strike="{\\strikeout "       # Strikeout
  121. strike="}"
  122. Rev="{\\reverse "            # Reverse video
  123. rev="}"
  124. Over="\\llap{"               # Overprinting is faked with \llap
  125. over="}"
  126. Sup="\\raise.5ex\\hbox{"     # fake superscript
  127. sup="}"
  128. Sub="\\lower.5ex\\hbox{"     # fake subscript
  129. sub="}"
  130.  
  131. # UpHalfLine, DownHalfLine, AdvanceToHalf -- undefined
  132.  
  133. Indent="%\n\n{\\narrower "   # Indented paragraphs use \narrower; this
  134. DIndent="%\n\n{\\narrower "  # is not a perfect solution, but it's a start.
  135. indent="\\par}"
  136. MarginRelease="\\leavevmode\\kern-%1em "
  137.  
  138. Center="%\n\n\\centerline{"
  139. center="}"
  140. CenterHere="\\centerhere{"   # Not supported
  141. centerhere="}"
  142.  
  143. Align="\\align{"             # Not supported
  144. align="}"
  145. FlushRight="\\rightline{"
  146. flushright="}"
  147.  
  148. # Math, math, MathCalc, MathCalcColumn, SubTtl, IsSubTtl, Ttl, IsTtl, GrandTtl
  149. # Col, col -- undefined
  150.  
  151. Fn="\\note{"                 # This uses the \note macros in the TeXbook
  152. fn="}"
  153. SetFn#="\\notenumber=%1 "
  154. En="\\endnote{"              # You'll have to write your own \endnote macro
  155. en="}"
  156. FNote#=""                    # Note numbers are automatically generated.
  157. ENote#=""                    # Note numbers should be automatically generated.
  158.  
  159. # TableMarker -- undefined
  160.  
  161. Hyph="\\hyphenpenalty=50\n"        # Allow hyphenation
  162. hyph="\\hyphenpenalty=10000\n"     # Disable hyphenation
  163. NoHyphWord="\\hbox{}"              # Suppress hyphenation of next word
  164. Just="\\rightskip=0pt\n"           # Right justify
  165. just="\\raggedright\n"             # Ragged right
  166. Wid="\\clubpenalty=150 \\widowpenalty=150\n" # Widow protection
  167. wid="\\clubpenalty=0 \\widowpenalty=0\n" # Allow widows
  168.  
  169. # HZone, DAlign -- undefined
  170.  
  171. # Headers and footers
  172. Header="\\headline={"
  173. header="}"
  174. Footer="\\footline={"
  175. footer="}"
  176.  
  177. # These guys are left as comments, since actually doing them right
  178. # requires all sorts of icky things I'd rather not think about.
  179. Supp="%\n%% Suppress headers and footers on this page\n"
  180. CtrPg="%\n%% Center this page vertically\n"
  181. SetFont="%\n%% Change to %1 pitch, font %2\n"
  182. SetBin="%\n%% Change to paper bin %1\n"
  183.  
  184. # Page numbering
  185. PN0="\\headline={\\hss}\\footline={\\hss}%%\n"
  186. PN1="\\headline={\\numberleft}\\footline={\\hss}%%\n"
  187. PN2="\\headline={\\numbercenter}\\footline={\\hss}%%\n"
  188. PN3="\\headline={\\numberright}\\footline={\\hss}%%\n"
  189. PN4="\\headline={\\numberevenodd}\\footline={\\hss}%%\n"
  190. PN5="\\headline={\\hss}\\footline={\\numberleft}%%\n"
  191. PN6="\\headline={\\hss}\\footline={\\numbercenter}%%\n"
  192. PN7="\\headline={\\hss}\\footline={\\numberright}%%\n"
  193. PN8="\\headline={\\hss}\\footline={\\numberevenodd}%%\n"
  194.