Graphics, Figures & TablesSubfigure captions and table column spacing.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
VSL
Posts: 2
Joined: Mon Aug 02, 2010 4:56 am

Subfigure captions and table column spacing.

Post by VSL »

Hi I'm having two small problems.

The first is when I use sub-figures, rather than placing the caption below and centered, the caption is placed to the left of each subfigure. How can I postion it such that it is below and center of each subfigure?

Code: Select all

\begin{figure}[htp]
  \begin{center}
    \subfigure[1]{\includegraphics[scale=0.3]{quenchlocation1.JPG}}
    \subfigure[2]{\includegraphics[scale=0.3]{quenchlocation2.JPG}}
    \subfigure[3]{\includegraphics[scale=0.3]{quenchlocation3.JPG}}
  \end{center}
  \caption{Quench Region Images For ILC Single Cell NR1-2}
  \label{fig:center}
\end{figure}
Pic here so you understand what I mean.
subfig.png
subfig.png (158.87 KiB) Viewed 2080 times
Second problem is, how do I adjust the spacing of columns so i can fit more than three? Here is my table code:

Code: Select all

\begin{table}[h]
\caption{Summary of Inspection Results}
\label{tab1}}
\begin{ruledtabular}
\begin{tabular}{lrc} 
Cavity & Quench Field & Defects in quench regions & Other defects found \\ \hline
NR1-2  & 27 MV/m &  no  & yes \\
LR1-5 & 24 MV/m & inconclusive & inconclusive   \\
AES6 &  30 MV/m &  no  & yes \\
\end{tabular}
\end{ruledtabular}
\end{table}
 
and a pic
table.png
table.png (31.41 KiB) Viewed 2080 times
There is supposed to be four columns, but the 3rd column got overlapped with the 1st, how can i fix this?

thank you


Edit by localghost: No external links! Attachments go onto the forum server (see Board Rules).

Recommended reading 2024:

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

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

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Subfigure captions and table column spacing.

Post by sommerfee »

It looks to me like you haven't included the subfigure package at all. Do you get any error messages? If not please give us a small but complete code example. (See also http://www.latex-community.org/forum/vi ... =37&t=5838 )
Post Reply