TheChymera / matrix2latex

Python/MATLAB matrix to LaTeX table converter, originally by Øystein Bjørndal
https://code.google.com/p/matrix2latex/
GNU General Public License v3.0
18 stars 8 forks source link

Caption is inserted before the table #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The docstring for matrix2latex states that the caption will be inserted after 
\end{tabular} just before \end{table}. However, the caption is inserted before 
the table right above it and it looks awful.

Original issue reported on code.google.com by mar...@ciencias.unam.mx on 20 Nov 2013 at 6:50

GoogleCodeExporter commented 9 years ago
Hmm, vops. This is actually a feature, so the doc is wrong. The caption is 
supposed to go above the table, according to the IEEE standard which I try to 
adhere to: "Note that IEEE places table captions before the tables.". I will 
update the doc, and maybe add some form of options for those who want the 
caption bellow.

Thanks for pointing it out,

Original comment by obti...@gmail.com on 20 Nov 2013 at 7:01

GoogleCodeExporter commented 9 years ago
I was wrong for so long. Thank you!

Here they explain the issue with the spacing:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=destable

Looks a lot better now.

Original comment by mar...@ciencias.unam.mx on 20 Nov 2013 at 8:33

GoogleCodeExporter commented 9 years ago
Nice, I will add the:
\usepackage{caption}

to the documentation. That seems to have corrected the spacing. It also seems 
to depend on the \documentclass, since my \documentclass{amsart} documents 
seems to have sensible spacing (without the caption package).

If I understand you correctly you are no longer interested in having the 
caption below, right? If so, please reopen the issue.

I have also fixed the docstring it now reads:
caption                                                                         

    Use to define a caption for your table.                                                                                                                                                                                                                                        
    Inserts \caption after \begin{center},                                                                                                                                                                                                                                         
    note that without the center environment the caption is currently ignored.

Original comment by obti...@gmail.com on 20 Nov 2013 at 10:00

GoogleCodeExporter commented 9 years ago
Nice! With the caption package captions are beautiful. And no, I will
not insert a caption below a table ever again. Thanks a lot!

Original comment by mar...@ciencias.unam.mx on 20 Nov 2013 at 4:29