No dots after the section numbers
authorAlpar Juttner <alpar@cs.elte.hu>
Sat, 01 Nov 2008 08:25:30 +0000
changeset 157cc2418766c3
parent 14 35279d53a015
child 16 ed4c8506e151
No dots after the section numbers
titlegen.py
     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()