Sign up ×
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
    
I've also found that labels have to be placed after captions and within the float environment, otherwise you can have a similar problem. – sphere Apr 29 at 20:44

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 – chwi 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. – chwi 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 – chwi Oct 6 '12 at 10:23

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.
http://tex.stackexchange.com/questions/75125/lyx-number-table-by-section-suddenly-default-how-to-remove?answertab=active
tex.stackexchange.com
crawl=CC-MAIN-2015-48
75246
application/http; msgtype=response
sha1:GMCF2H77ICT5QWIZCHLQFM62YEIOW53X
<urn:uuid:badc8a38-d914-4557-9747-0d42239c232f>
2015-11-28T11:51:37Z
104.16.119.182
sha1:YXXHMHMJHQYPJ3NKAKCODIDJW5GO4LLC
<urn:uuid:668ece61-3d0d-4f42-8cc4-05c2450657f1>
http://tex.stackexchange.com/questions/75125/lyx-number-table-by-section-suddenly-default-how-to-remove?answertab=active
response
<urn:uuid:a97482b2-598b-410a-b086-ef346f42d0d8>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf