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 am using a thesis package given by my university. Surprisingly the section numbers of thesis are coming as 0.1, 0.1.1 and not 1, 1.1 etc. Please see this pdf and this main tex file

I will be thankful for your suggestion.

share|improve this question
6  
probably your thesis class is based on book so has \section numbered within \chapter but you have no chapters. –  David Carlisle Feb 5 '13 at 16:25
    
    
@DavidCarlisle I don't think so. See tempfiles.net/download/201302/283581/thesis.html which shows the template which I downloaded. In that, everything is fine. –  user984260 Feb 5 '13 at 16:29
    
I can't see any information in that link. what happens if you put \chapter{test} before your first section? –  David Carlisle Feb 5 '13 at 16:33
    
One difference b/w the original template and my file is that they use pdflatex and I use only latex. –  user984260 Feb 5 '13 at 16:33

1 Answer 1

up vote 2 down vote accepted

Well, as many commenters told you, your style assumes you have chapters, while you do not.

Just put in the preamble of your document the line

\renewcommand{\thesection}{\arabic{section}}

It will tell LaTeX you want sections to be numbered as 1, 2, 3, rather than CHAPTER.SECTION as your style wants.

share|improve this answer
    
Thanks. It worked like a charm. –  user984260 Feb 5 '13 at 16:43
    
That's a workaround for normal \sections; however, the ToC and the bibliography will still show up as (unnumbered) chapters. A better way seems to be to use \chapter as the main sectioning unit, as intended by the template. –  lockstep Feb 5 '13 at 16:46
    
Strictly saying, you are right. However, people should be able to (ab)use their templates if this is their wish. –  Boris Feb 5 '13 at 16:55
1  
it's commonly the case that thesis templates are compulsory -- if you submit a thesis, it has to conform with the template (otherwise it will be rejected). so, abuse the template as much as you like, but don't try writing your thesis/dissertation that way. –  wasteofspace Feb 5 '13 at 18:20

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.