Commit 07d47155 authored by rioliver's avatar rioliver

Switch to longtable.

parent d142b857
\documentclass[a4paper]{article}
\usepackage[MnSymbol]{mathspec}
\usepackage{fontspec}
\usepackage{longtable}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{fancyhdr}
......
......@@ -378,8 +378,7 @@ def main(dirname, ip, identifier, original_files=[], lecture_title='', template_
my_header = texheader.replace('IDENTIFIER', identifier)
my_header = my_header.replace('IPADDRESS', ip)
my_header = my_header.replace('LECTURETITLE', lecture_title)
out = [r'\begin{table}[h!] \centering']
out.append(r'\renewcommand{\arraystretch}{1.2}')
out = []
# Create a header for type of file (given category identifier)
def get_category_string(category, header):
......@@ -419,7 +418,7 @@ def main(dirname, ip, identifier, original_files=[], lecture_title='', template_
return template_str
ncols = len(header);
out.append(r'\begin{tabular}{' + '|l'*ncols + '|}')
out.append(r'\begin{longtable}{' + '|l'*ncols + '|}')
# modified
out.append(get_category_string("modified", header))
......@@ -453,8 +452,7 @@ def main(dirname, ip, identifier, original_files=[], lecture_title='', template_
files):
out.append(get_formatted_item_string(item, header))
out.append(r'\hline')
out.append(r'\end{tabular}')
out.append(r'\end{table}')
out.append(r'\end{longtable}')
# write to file
if len(list(modified_files)) or identifier != 'not found':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment