Graphics, Figures & TablesTable Caption-width setting

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
moodamultani
Posts: 3
Joined: Tue Aug 28, 2012 11:46 am

Table Caption-width setting

Post by moodamultani »

Hello Forum friends,

I am trying to use \caption command in the usual table environment as follows:

Code: Select all

\begin{table}[h]
\centering
\begin{tabular}{|p{8cm}p{7cm}|}
\hline
Coulmn 1 & Column 2 \\
\hline
\end{tabular}
\caption{Caption 1}
\label{tab:One}
\end{table}
The output is centered in the page but is in preset width (hence column-like) format, as under:

Table I.
Caption
1

I expect this caption to be displayed in horizontal row!
Any ideas to correct this?

Many thanks
moodamultani
Last edited by Stefan Kottwitz on Tue Aug 28, 2012 12:26 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Table Caption-width setting

Post by cgnieder »

Hi moodamultani,

Welcome to the board!

Can you make your code snippet into a Infominimal working example so we can reproduce the problem and suggest suiting solutions?

Regards
site moderator & package author
Post Reply