Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a single figure in a Lyx document, and it is part of a paragraph which itself is part of a section. It is expected that Lyx will produce a caption for it as 'Figure 1: ....', however, the actual output I get is 'Figure 0.1: ...'. I don't think I explicitly ask Lyx to number the figures by section.

Any clue on why this happens and how I can fix it? In addition, is it possible to eliminate the numbering of captions (not the captions themselves) all together? Many thanks.

P.S. The document class I am using is 'handout (Tufte)' and the paragraph (which itself is of standard text) containing the figure is after two itemized paragraphs, if those make any difference.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Some classes number figures and tables and perhaps further objects by chapter or by section. Let's say in your case it's section. Besides printing the section number before the figure number, the figure counter is reset to zero at the beginning of each section. The chngcntr package helps to change this. Here for example:

\usepackage{chngcntr}
\counterwithout{figure}{section}

Just put these lines in your LyX document preamble. You can add further such lines if necessary, to be consistent, such as

\counterwithout{table}{section}

if you use tables.

For suppressing numbering and further customization I recommend using the caption package. For example:

\usepackage[figurewithin=none]{caption}

Its command \caption* works without numbering.

share|improve this answer
    
Insightful! Searched for a while on google but didn't find anything like this. thanks! –  Skyork Jul 24 '11 at 1:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.