Author: bugman Date: Thu Nov 26 13:16:37 2009 New Revision: 9985 URL: http://svn.gna.org/viewcvs/relax?rev=9985&view=rev Log: The longtables are now properly labelled. Modified: 1.3/docs/latex/fetch_docstrings.py Modified: 1.3/docs/latex/fetch_docstrings.py URL: http://svn.gna.org/viewcvs/relax/1.3/docs/latex/fetch_docstrings.py?rev=9985&r1=9984&r2=9985&view=diff ============================================================================== --- 1.3/docs/latex/fetch_docstrings.py (original) +++ 1.3/docs/latex/fetch_docstrings.py Thu Nov 26 13:16:37 2009 @@ -934,7 +934,6 @@ self.file.write("\\begin{center}\n ") self.file.write("\\begin{longtable}{" + (int(lines[0]))*"l" + "}\n\n ") self.file.write("\\caption{%s table for the %s user function.}\n\n " % (self.num_to_text(table_sub_count), user_fn)) - self.file.write("\\label{table%s}\n\n " % self.table_count) self.file.write("\\\\\n \\toprule \n ") # Generate the LaTeX headings. @@ -949,6 +948,9 @@ self.file.write("\\endhead\n\n ") self.file.write("\\bottomrule\n ") self.file.write("\\endfoot\n\n ") + + # Label. + self.file.write("\\label{table%s}\n\n " % self.table_count) # Loop over the main table lines. for line in lines[2:-1]: