#NEWLINE# def write_topfile( self , out ) : #NEWLINE# #INDENT# self . write_header ( out , 'Include File' ) #NEWLINE# self . write_preamble ( out ) #NEWLINE# out ( '\n\\begin{document}\n\n' ) #NEWLINE# self . write_start_of ( out , 'Header' ) #NEWLINE# self . write_start_of ( out , 'Title' ) #NEWLINE# out ( ( '\\title{%s}\n' % plaintext_to_latex ( self . _prj_name , 1 ) ) ) #NEWLINE# out ( '\\author{API Documentation}\n' ) #NEWLINE# out ( '\\maketitle\n' ) #NEWLINE# self . write_start_of ( out , 'Table of Contents' ) #NEWLINE# out ( '\\addtolength{\\parskip}{-1ex}\n' ) #NEWLINE# out ( '\\tableofcontents\n' ) #NEWLINE# out ( '\\addtolength{\\parskip}{1ex}\n' ) #NEWLINE# self . write_start_of ( out , 'Includes' ) #NEWLINE# for val_doc in self . valdocs : #NEWLINE# #INDENT# if isinstance ( val_doc , ModuleDoc ) : #NEWLINE# #INDENT# out ( ( '\\include{%s-module}\n' % val_doc . canonical_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . _list_classes_separately : #NEWLINE# #INDENT# for val_doc in self . valdocs : #NEWLINE# #INDENT# if isinstance ( val_doc , ClassDoc ) : #NEWLINE# #INDENT# out ( ( '\\include{%s-class}\n' % val_doc . canonical_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if self . _index : #NEWLINE# #INDENT# self . write_start_of ( out , 'Index' ) #NEWLINE# out ( '\\printindex\n\n' ) #NEWLINE# #UNINDENT# self . write_start_of ( out , 'Footer' ) #NEWLINE# out ( '\\end{document}\n\n' )