1.1 --- a/titlegen.py Sat Nov 01 08:15:59 2008 +0000
1.2 +++ b/titlegen.py Sat Nov 01 08:25:30 2008 +0000
1.3 @@ -16,6 +16,7 @@
1.4 s=""
1.5 for i in sec:
1.6 s+=str(i)+'.'
1.7 + s=s[:-1]
1.8 return s
1.9
1.10 section = [];
1.11 @@ -71,7 +72,8 @@
1.12 secs = [ x for x in toc]
1.13 secs.sort()
1.14 for num in secs:
1.15 - fo.write("%s - \\ref %s\n"%(' '*(len(num)-2),toc[num]))
1.16 + fo.write("%s - \\ref %s\n"%(' '*((len(ind[toc[num]][0]))),
1.17 + toc[num]))
1.18 else:
1.19 fo.write(gr[4]+'\n')
1.20 fo.close()