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 just installed the newest version of LyX 2.0.4 and notice that the table numbering is by section. How do I remove this so that it is naturally incremented for each table created, like it was before?

Edit: Here is a sample file

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Thank you for posting a nice minimum working example. Two things to note here: 1. You are using the report class. 2. By "section" you mean "chapter".

Either change your chapters to sections or go to Document > Settings > LaTeX Preamble and add the following:

\usepackage{chngcntr}
\counterwithout{table}{chapter}

Note that this assumes you have the chngcntr package installed.

share|improve this answer
    
Thank you, it works :) But why change chapters to sections? I didn't see any difference in the names. Chapter 3 is still Chapter 3 –  Wilhelmsen Oct 5 '12 at 12:40
    
@Wilhelmsen I don't understand. If you change the chapters to sections, I don't think you should see "Chapter 3". –  scottkosty Oct 5 '12 at 20:54
    
Well, I do. If I use only \counterwithout... I get missing package. Using chngcntr it works, but I still see Chapter. Although, this is exactly what I want. –  Wilhelmsen Oct 5 '12 at 23:15
    
@Wilhelmsen Using chngcntr will not change your chapters to sections. To change your chapters to sections, in LyX go to one of your chapter titles and press "tab" or click on the upper-left where it says "chapter" and scroll to "section". You would see the 1 become a 0.1 and "chapter" will be excluded. –  scottkosty Oct 6 '12 at 1:30
    
I see, thank you. But why is it like this? Never had to add that to the preamble before –  Wilhelmsen Oct 6 '12 at 10:23
show 1 more comment

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.