0

I have a table in Latex but its caption breaks midway and spans two rows because of the two-sided paper format. It looks like this.

enter image description here

This is the code of the table.

\begin{table} \begin{center} \begin{tabular}{ |l|l|l|l|l|l|l|l|l|l| } \hline Model & Optimizer & Embedding & LR & RC & Dimension & Rounds & Depth & Num Kernels & Dropout\\ \hline \multirow{2}{*}{Logistic Regression} & Adam & Static & & & & & & & \\ & SGD & Dynamic & & & & & & & \\ \hline \end{tabular} \end{center} \caption{Hyperparameter values of all the models after cross validation} \label{table_1} \end{table}

I want the caption to span the complete row. What is wrong?

  • 1
    Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with \documentclass, includes all relevant \usepackage commands, ends with \end{document} and compiles without errors, even if it does not produce your desired output. – Sandy G Dec 8 '17 at 4:03
3

The following text shows that the end of line is reached. The caption title is longer than one line, thus it is broken across two lines. The table (tabular) cannot be broken across lines and very likely causes a massive overfull \hbox warning.

The line width is quite small, thus I suspect two-column mode. Then the star form table* gives a table object spanning the whole text width.

BTW, using \centering in environment table or table* instead of environment center avoids the additional vertical space of environment center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.