GeneralProblem with subcaption on Springer LNCS Class

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Sergio Ordine
Posts: 1
Joined: Sun Jun 03, 2012 12:39 pm

Problem with subcaption on Springer LNCS Class

Post by Sergio Ordine »

Hi,

I'm trying to create a \figure that comprises 4 charts, on a 2 x 2 structure. I have used the \figure environment and \subfigure to do so. For captions I have used the packages caption and subcaption.

Altough it works fine on a regular article, when I use the same with LNCS class I get the following error:

ERROR: Package caption Error: Something's wrong--perhaps a missing \caption in the last figure or table

Could you please suggest how to correct this issue or a different approach to do this on a LNCS document?


Thanks a lot!
Sergio

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with subcaption on Springer LNCS Class

Post by Stefan Kottwitz »

Hi Sergio,

welcome to the board!

Perhaps post a Infominimal working example. With this code, we could test it and see if we would find a fix. The description is quite theoretical.

Stefan
LaTeX.org admin
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Problem with subcaption on Springer LNCS Class

Post by sommerfee »

AFAIK the caption package is incompatible to the Springer document classes.

So better try \usepackage[caption=false]{subfig} instead of using the caption/subcaption tandem here.
nadeem_madi
Posts: 1
Joined: Mon Oct 05, 2015 6:20 am

Re: Problem with subcaption on Springer LNCS Class

Post by nadeem_madi »

Hi Stefan,
I am also facing the same problem highlighted here regarding the sub-figures in one graph. I am using a template provided from a Springer journal. I tried to track the two lines of code in LaTex class file but i didn't find any relevant for the two lines you defined as the cause of error
the error sytetax is: ! Package caption Error: Something's wrong--perhaps a missing \caption

here is the latex class I used from springer template, and also the latex document where i wish to generate sub-figures graph.

I appreciate you help. thanks
Attachments
template.tex
(5.98 KiB) Downloaded 716 times
svjour3.cls
(46.56 KiB) Downloaded 464 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with subcaption on Springer LNCS Class

Post by Johannes_B »

sommerfee wrote:AFAIK the caption package is incompatible to the Springer document classes.

So better try \usepackage[caption=false]{subfig} instead of using the caption/subcaption tandem here.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply