* ext.tex: did most of the tedious changes from plain ASCII text to LaTeX.
* text2latex.py: automatically put function names in \code{}.
* lib.tex, ref.tex, ext.tex, qua.tex, tut.tex: use new P.O.Box number in
address.
diff --git a/Doc/text2latex.py b/Doc/text2latex.py
index 3d28431..069155e 100644
--- a/Doc/text2latex.py
+++ b/Doc/text2latex.py
@@ -1,6 +1,7 @@
import os
import sys
import regex
+import regsub
import string
import getopt
@@ -31,6 +32,9 @@
if fmt:
nextline = '\n'
line = fmt % string.strip(line)
+ if '(' in line:
+ line = regsub.gsub('[a-zA-Z0-9_]+()',
+ '{\\\\tt \\0}', line)
elif inverbatim:
if blank.match(line) >= 0 and \
indented.match(nextline) < 0:
@@ -43,6 +47,9 @@
fo.write('\\begin{verbatim}\n')
if inverbatim:
line = string.expandtabs(line, 4)
+ elif not fmt and '(' in line:
+ line = regsub.gsub('[a-zA-Z0-9_]+()',
+ '\\\\code{\\0}', line)
fo.write(line)
#main()