# HG changeset patch # User Alpar Juttner # Date 1225527930 0 # Node ID 7cc2418766c3a0ce25766a2ebf81733a0efa3bd6 # Parent 35279d53a015f520709c945477f0590d4fb0fb5c No dots after the section numbers diff -r 35279d53a015 -r 7cc2418766c3 titlegen.py --- a/titlegen.py Sat Nov 01 08:15:59 2008 +0000 +++ b/titlegen.py Sat Nov 01 08:25:30 2008 +0000 @@ -16,6 +16,7 @@ s="" for i in sec: s+=str(i)+'.' + s=s[:-1] return s section = []; @@ -71,7 +72,8 @@ secs = [ x for x in toc] secs.sort() for num in secs: - fo.write("%s - \\ref %s\n"%(' '*(len(num)-2),toc[num])) + fo.write("%s - \\ref %s\n"%(' '*((len(ind[toc[num]][0]))), + toc[num])) else: fo.write(gr[4]+'\n') fo.close()