LyXSpace for Figure Numbers in LoF

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
stratprof
Posts: 2
Joined: Tue Jul 10, 2012 3:35 pm

Space for Figure Numbers in LoF

Post by stratprof »

Hello,

I am using Koma-Script to create a small book.

I am encountering difficulties with the "List of Figures" formatting. Chapter 3 has ten figures. LyX is creating the list perfectly, but is only inserting a single space between the figure number and its title. When referencing figure 3.10, the result is an absent "space" between the reference figure and the title. Thus:

3.8 Figure title
3.9 Figure title
3.10Figure title

Chapter 6 has twenty graphics and the problem shows up in that sub-list, too.

Any help on resolving this problem would be greatly appreciated.

Many thanks in advance.

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: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Space for Figure Numbers in LoF

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Very good, that you use a KOMA-Script class. So you have access to many more features than with basic classes. KOMA-Script provides the tocstyle package, which is capable of automatically calculating and adjusting the widths in the list of figures for you, as well as for other lists and the table of contents. It does it already when you load it without any option, in your document preamble:

Code: Select all

\usepackage{tocstyle}
Compile several times, to let it calculate the required width.

Stefan
LaTeX.org admin
stratprof
Posts: 2
Joined: Tue Jul 10, 2012 3:35 pm

Re: Space for Figure Numbers in LoF

Post by stratprof »

Thank you!

tocstyle worked perfectly.

I had solved the problem by changing the font settings from Bera Serif and Bera Sans to Latin Modern (serif and sans). This wasn't a happy solution but seemed a reasonable compromise.

Tocstyle has let me go back to my preferred font.

Thank you again...and thanks, too, for including the documentation. I will play around a bit to see if other formats are even more attractive than the default.
Post Reply