General ⇒ Problem with subcaption on Springer LNCS Class
-
- Posts: 1
- Joined: Sun Jun 03, 2012 12:39 pm
Problem with subcaption on Springer LNCS Class
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with subcaption on Springer LNCS Class
welcome to the board!
Perhaps post a

Stefan
Re: Problem with subcaption on Springer LNCS Class
So better try \usepackage[caption=false]{subfig} instead of using the caption/subcaption tandem here.
-
- Posts: 1
- Joined: Mon Oct 05, 2015 6:20 am
Re: Problem with subcaption on Springer LNCS Class
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 767 times
-
- svjour3.cls
- (46.56 KiB) Downloaded 477 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem with subcaption on Springer LNCS Class
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.