Better navigation trailer
authorAlpar Juttner <alpar@cs.elte.hu>
Sat, 01 Nov 2008 08:15:59 +0000
changeset 1435279d53a015
parent 13 98a495a50e49
child 15 7cc2418766c3
Better navigation trailer
titlegen.py
     1.1 --- a/titlegen.py	Sat Nov 01 08:07:55 2008 +0000
     1.2 +++ b/titlegen.py	Sat Nov 01 08:15:59 2008 +0000
     1.3 @@ -57,15 +57,15 @@
     1.4              elif gr[2]:
     1.5                  prev_page=ind[page][1]
     1.6                  if prev_page:
     1.7 -                    prev_str= ( '\\ref '+prev_page )
     1.8 +                    prev_str= ( '<< \\ref '+prev_page+' ')
     1.9                  else:
    1.10                      prev_str=''
    1.11                  next_page=ind[page][2]
    1.12                  if next_page:
    1.13 -                    next_str= ( '\\ref '+next_page )
    1.14 +                    next_str= ( ' \\ref '+next_page+' >>')
    1.15                  else:
    1.16                      next_str=''
    1.17 -                fo.write('<< %s | \\ref toc "Home" | %s >>\n'%\
    1.18 +                fo.write('%s| \\ref toc "Home" |%s\n'%\
    1.19                               (prev_str,next_str))
    1.20              elif gr[3]:
    1.21                  secs = [ x for x in toc]