#NEWLINE# def write_var_list( self , out , heading , doc , value_type , seclevel = 1 ) : #NEWLINE# #INDENT# groups = [ ( plaintext_to_latex ( group_name ) , doc . select_variables ( group = group_name , imported = False , value_type = value_type , public = self . _public_filter ) ) for group_name in doc . group_names ( ) ] #NEWLINE# groups = [ ( g , vars ) for ( g , vars ) in groups if vars ] #NEWLINE# if ( not groups ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . write_start_of ( out , heading ) #NEWLINE# out ( ( '  ' + self . section ( heading , seclevel ) ) ) #NEWLINE# out ( '\\begin{longtable}' ) #NEWLINE# out ( '{|p{.30\\textwidth}|' ) #NEWLINE# out ( 'p{.62\\textwidth}|l}\n' ) #NEWLINE# out ( '\\cline{1-2}\n' ) #NEWLINE# out ( '\\cline{1-2} ' ) #NEWLINE# out ( '\\centering \\textbf{Name} & ' ) #NEWLINE# out ( '\\centering \\textbf{Description}& \\\\\n' ) #NEWLINE# out ( '\\cline{1-2}\n' ) #NEWLINE# out ( '\\endhead' ) #NEWLINE# out ( '\\cline{1-2}' ) #NEWLINE# out ( '\\multicolumn{3}{r}{\\small\\textit{' ) #NEWLINE# out ( 'continued on next page}}\\\\' ) #NEWLINE# out ( '\\endfoot' ) #NEWLINE# out ( '\\cline{1-2}\n' ) #NEWLINE# out ( '\\endlastfoot' ) #NEWLINE# for ( name , var_docs ) in groups : #NEWLINE# #INDENT# if name : #NEWLINE# #INDENT# out ( '\\multicolumn{2}{|l|}{' ) #NEWLINE# out ( ( '\\textbf{%s}}\\\\\n' % name ) ) #NEWLINE# out ( '\\cline{1-2}\n' ) #NEWLINE# #UNINDENT# for var_doc in var_docs : #NEWLINE# #INDENT# if isinstance ( var_doc , PropertyDoc ) : #NEWLINE# #INDENT# self . write_property_list_line ( out , var_doc ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . write_var_list_line ( out , var_doc ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# out ( '\\end{longtable}\n\n' )