the name elsewhere. This is useful for the logical filenames project,
since the "modindex" label is hardcoded into .latex2html-init.
return rc
+
def main():
if sys.argv[1:]:
infile = sys.argv[1]
base, ext = os.path.splitext(infile)
outfile = base + ".ind"
ofp = open(outfile, "w")
- ofp.write("\\begin{theindex}\n\n")
+ ofp.write("\\begin{theindex}\n\label{modindex}\n\n")
lines = ifp.readlines()
for i in range(len(lines)):
if lines[i][0] == '\\':
return rc
+
def main():
if sys.argv[1:]:
infile = sys.argv[1]
base, ext = os.path.splitext(infile)
outfile = base + ".ind"
ofp = open(outfile, "w")
- ofp.write("\\begin{theindex}\n\n")
+ ofp.write("\\begin{theindex}\n\label{modindex}\n\n")
lines = ifp.readlines()
for i in range(len(lines)):
if lines[i][0] == '\\':