Featured Book

LaTeX Beginners Guide

Who is online

In total there are 16 users online :: 2 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: angsoka, ohmp2007 and 14 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Math Expression in Caption of Sub-float Topic is solved

captionsmath-modesubfigAdd tags Information and discussion about graphics, figures & tables in LaTeX documents.

Math Expression in Caption of Sub-float

Postby musiige on Fri Apr 12th, 2013

Hi

I have been using subfigure until these sub figures couldn't fit on a single page and I switched to subfig. I'm now getting the error "missing $ inserted" because i have some math in the caption as shown below:

Code: Select all  •  Open in writeLaTeX
\subfloat[Power $-10^0C$.]{\label{cc}} \includegraphics[width=\textwidth]{BWm10.eps}}


How do I get around this problem? Is it possible to use sub-figure on multiple pages without the caption starting from start on each page?

I have these packages:
Code: Select all  •  Open in writeLaTeX
\usepackage{cite}
\usepackage{subfig}
\usepackage{float}
\usepackage{textcomp}
\usepackage{amsfonts
}



Thanks
Deo
musiige
 
Posts: 3
Joined: Fri Apr 12th, 2013

Re: Math Expression in Caption of Sub-float  Topic is solved

Postby sommerfee on Sat Apr 13th, 2013

Hi Deo,

Unfortunately your post is a good example why we are always asking for minimal example documents here.

This one works perfectly well:
Code: Select all  •  Open in writeLaTeX
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}

\begin{figure}
\subfloat[Power $-10^0C$.]{\label{cc}\includegraphics[width=\textwidth]{BWm10.eps}}
\end{figure}

\end{document
}


So all we can do without a proper example document from you showing the problem is either guessing or looking into the crystal ball.

musiige wrote:
Code: Select all  •  Open in writeLaTeX
\subfloat[Power $-10^0C$.]{\label{cc}} \includegraphics[width=\textwidth]{BWm10.eps}}[/latex]

There are more closed braces than open braces here, please check this.

Is it possible to use sub-figure on multiple pages without the caption starting from start on each page?

Yes, look for "continued figures" within the subfig package documentation.
User avatar
sommerfee
 
Posts: 493
Joined: Mon Apr 9th, 2007

Re: Math Expression in Caption of Sub-float

Postby musiige on Mon Apr 22nd, 2013

sommerfee wrote:
musiige wrote:
Code: Select all  •  Open in writeLaTeX
\subfloat[Power $-10^0C$.]{\label{cc}} \includegraphics[width=\textwidth]{BWm10.eps}}[/latex]

There are more closed braces than open braces here, please check this.

Thanks for your reply. That in fact solved the issue.
musiige
 
Posts: 3
Joined: Fri Apr 12th, 2013


Topic Tags

captionsmath-modesubfig

Return to Graphics, Figures & Tables

Who is online

Users browsing this forum: angsoka, ohmp2007 and 14 guests