LaTeX forum ⇒ Graphics, Figures & TablesMath Expression in Caption of Sub-float Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
musiige
Posts: 3
Joined: Fri Apr 12, 2013 10:07 am

Math Expression in Caption of Sub-float

Postby musiige » Fri Apr 12, 2013 10:22 am

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:

  1. \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:
  1. \usepackage{cite}
  2. \usepackage{subfig}
  3. \usepackage{float}
  4. \usepackage{textcomp}
  5. \usepackage{amsfonts}



Thanks
Deo

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
sommerfee
Posts: 495
Joined: Mon Apr 09, 2007 4:20 pm
Contact:

Postby sommerfee » Sat Apr 13, 2013 12:06 pm

Hi Deo,

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

This one works perfectly well:
  1. \documentclass{article}
  2. \usepackage[demo]{graphicx}
  3. \usepackage{subfig}
  4. \begin{document}
  5.  
  6. \begin{figure}
  7. \subfloat[Power $-10^0C$.]{\label{cc}\includegraphics[width=\textwidth]{BWm10.eps}}
  8. \end{figure}
  9.  
  10. \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:
  1. \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.

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

musiige
Posts: 3
Joined: Fri Apr 12, 2013 10:07 am

Postby musiige » Mon Apr 22, 2013 6:51 pm

sommerfee wrote:
musiige wrote:
  1. \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.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 2 guests