LyXsubfloat numbering

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
der_gottt
Posts: 1
Joined: Fri Feb 18, 2011 10:32 am

subfloat numbering

Post by der_gottt »

Hi,
I am totally new to Lyx and LaTeX in general. I am using Lyx 1.6.9.

While writing my Bachelor thesis I found a problem I am not able to solve on my own:

Creating a subfigure inside a figure produces a numbering mistake in the final pdf. For example:
The figure is numbered 5.1 and its subfigures a and b. Inside the pdf I supposed to have references like 5.1a and 5.1b. Instead I always receive references like this 6.1a and 6.1b (they are numbered one higher than the actual float is).

Do you have any ideas how to solve the problem?

Thanks a lot for your help.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: subfloat numbering

Post by sommerfee »

Take a look at section 3.1.5 "The Caption Position Option" in the subfig package documentation.
injunjoel
Posts: 1
Joined: Sun Sep 11, 2011 2:35 am

subfloat numbering

Post by injunjoel »

If you are using LyX, in "Document Settings" > "LaTeX Preamble" add the following

Code: Select all

\usepackage[position=top]{caption,subfig}
This worked for me.

Best,
Joel
Post Reply