# latex rendering hanging on table caption

Anonymous created an issue

I have a large table with a standard caption

.. list-table:: Protocols and Ports used by MBG :header-rows: 1

When I render the latex and then try to build the pdf, latex hangs

LaTeX Warning: Hyper reference enterprise:performance-limitations' on page 27 undefined on input line 1594.

[27] ! Undefined control sequence. <argument> c@\@captype

l.1700 \capstart \caption{Protocols and Ports used by MBG}

It seems to have something to do with the caption being inside of a longtable environment.

I did some research and found the following fragments in the generated latex sources:

\begin{longtable}{|r|p{8cm}|p{5cm}|}
\capstart\caption{The Caption} \\


At this point latex will complain about capstart beeing unknown. This seems to work in other places, but not in longtable

\textbf{

} & \textbf{

} & \textbf{

}\\
\hline


After removing the whitespace in the contents of the textbf command, it works. Else it will complaint about runaway Arguments.

I also noticed some whitespace in the content of the table.

My table has been generated by the following sphinx snippet:

.. csv-table:: The Caption
:file: src/table.csv
`

Hope this helps to solve this issue.

Thanks for investigating! I'll have a look soon and try to reproduce.