Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

FAQ /

RedefiningListOfFigures

Please categorize this page.
<< RelativeFiguresLocation | Page list | ChangeFontUsingLatex >>

Redefining the command \listoffigures

This page is based on a mail in the users-list by Helge Hafting. I thought it was useful to keep so I (Christian) put it here. Helge Hafting wrote:

For example, lets redefine \listoffigures. To do this, you want to know the current definition of \listoffigures, because you probably don't know how to re-implement it. Getting this is trivial:

Start latex with no parameters. (I.e. type "latex<enter>" in a xterm) You should get something like this, possibly a different version:

 This is TeX, Version 3.14159 (Web2C 7.3.7)

type in \documentclass{book}<enter>
You should get another "*" prompt. Type in \show\listoffigures<enter> And there it is! Put all of it in the preamble of your document. Test it (view dvi or similiar) to see that you didn't make any mistakes cutting and pasting it.

When this works flawlessly, change the definition by putting your \addcontentsline{} somewhere in the middle of it.

If you know some latex you'll see a good spot. If not - experiment. Too early and you get the "page before" problem, too late and you'll get the "last page" problem. Look for a place in the macro after the new page/chapter has started, before the actual listing begins. Somewhere around the heading perhaps. Make sure to put your \addcontentsline between other commands, not in the middle of one.

<< RelativeFiguresLocation | FAQ.PageList | ChangeFontUsingLatex >>

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-04-11 12:01 CEST