Sometimes I was annoyed by left-aligned table which is automatically created by using csv-table directive when creating a pdf document. So, I changed some part of latex.py. Below is difference between original latex.py and bit-of modified latex.py which can generate center-aligned table by using csv-table.
( ... just added '\begin{center}' and '\end{center}' command )
617c617 < self.body.append('\n\\begin{threeparttable}\n' --- > self.body.append('\n\\begin{center}\n\\begin{threeparttable}\n' 664c664 < self.body.append('\\end{threeparttable}\n\n') --- > self.body.append('\\end{threeparttable}\n\\end{center}\n\n')
No comments:
Post a Comment