My Chapter numbers come out to me Chapter .1 instead of Chapter 1. This problem persists throughout in section as well as ToC.

A similar question is answered earlier, Dot before numbering, but it does not work in my case.

(Posting a MWE will take a lot of time, which I am running against.) Any suggestion?

  • Posting solutions to something with errors takes a lot of time... Any suggestion? This has nothing to do with latex3. I assume, that some the counter formatting is just wrong – user31729 May 8 '15 at 16:39
  • I don't understand. Do you want to remove the dot before the number or to add it after it? Posting a MWE takes as little time as a minute. You only need to post the preamble, an example title section and some wording. Maybe two title sections, throw in some Lipsum wording and you're done. – Alenanno May 8 '15 at 16:55
  • On second thought, even just your preamble may be enough. Edit your question and paste the code between \documentclass{}...\begin{document}. – Alenanno May 8 '15 at 16:56
  • 2
    Are you using a \part at all? What does \show\thechapter reveal in your .log? – Werner May 8 '15 at 17:09

The following reproduces the problem:

enter image description here



\chapter{A chapter}
\section{A section}

Note that \thechapter is defined to include \thepart.. Also, the part counter is typically set using \Roman (as in \renewcommand{\thepart}{\Roman{part}}). As such, if you don't have any \parts in your document, \@Roman{0} (the expansion on zero-counter part) defaults to nothing leaving you with the leading . in the chapter (and sub-hierarchical counter representations).

Either find and remove the part-included version of \thechapter, or redefine it in the following way:


Some debugging might very the above assumption: Include \show\thechapter somewhere in your document, and investigate the .log at that point. It may show

> \thechapter=\long macro:
->\thepart .\arabic {chapter}.

or something similar.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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