LyXProblems with subfloats

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
tomac_stamp
Posts: 2
Joined: Tue Sep 29, 2009 10:51 am

Problems with subfloats

Post by tomac_stamp »

Hello,

I googled like crazy and can't believe I dind't find a solution for the following problem :( :
I just changed from 'ordinary' Latex to LyX and generally like it. Now I tried to insert a Subfloat (Figure) into a LyX-document. Thus I first do insert->floating object->figure (more or less, I'm using the German version), then place the cursor inside the floating box and then do insert->floating object->figure again. Inside the Subfloat-Box I place the figure. The following errors occur immediately:

Argument of \sf@@@subloat has an extra }.
Paragraph ended before \sf@@@subfloat was complete

I'm using Lyx 1.6.4 under Windows Vista Business (SP2). The embedded objects manual is very short on Subfloats and only gives an example for tables. Not really helpfull. What am I doing wrong? Can anyone help me?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
jeffack
Posts: 3
Joined: Wed Sep 30, 2009 3:51 am

Re: Problems with subfloats

Post by jeffack »

I'm having the same problem. Please let me know if you know a solution.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Problems with subfloats

Post by sommerfee »

Is there a [ or ] within the subfigures caption? If yes try surrounding the caption with {}.
inged
Posts: 1
Joined: Mon Oct 05, 2009 12:52 am

Re: Problems with subfloats

Post by inged »

I run into the same problem, installing the 'subfloat' and 'subfig' LaTeX packages via MiKTeX solved this issue.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with subfloats

Post by localghost »

inged wrote:I run into the same problem, installing the 'subfloat' and 'subfig' LaTeX packages via MiKTeX solved this issue.
I don't see where the subfloat package could help in this case since it provides stuff that is similar to the \ContinuedFloat command from the caption package.


Best regards and welcome to the board
Thorsten¹
User avatar
aradan
Posts: 7
Joined: Thu Oct 29, 2009 5:49 am

Re: Problems with subfloats

Post by aradan »

Hi, i'm having the same problem
I use Lyx 1.6.4 under Windows Vista

When i put a subfloat environment, i get a lot of errors like
You can't use \spacefactor on vertical mode

is there some solution to this problem?

sorry for my bad english xP
User avatar
aradan
Posts: 7
Joined: Thu Oct 29, 2009 5:49 am

Re: Problems with subfloats

Post by aradan »

The problem was solved updating to Lyx 1.65 :mrgreen:
I suppose that updating MikteX to 2.8 version also works
outspoken
Posts: 1
Joined: Sat May 08, 2010 3:57 pm

Re: Problems with subfloats

Post by outspoken »

I am facing the same issue in LyX 1.6.5 with a fully updated MikTex!
Any solutions?

Hope i am not bumping an old topic.
Post Reply