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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the \newtheoremstyle{name} command to generate a specific theorem head spec in the form of:

{\thmname{#1}\thmnumber{ #2}.\thmnote{ #3}}

where #1 is Theorem, #2 is 'the theorem number', and #3 is 'my theorem name'.

However, when I don't use 'my theorem name' as in some cases, the output gives two dots (the one after \thmnumber, and the one after the thm head).

How can I avoid this? I mean, how to avoid the extra dot in case of a theorem with no name?

share|improve this question
@: Welcome to tex.sx! A tip: you can use backticks ` to mark your inline code as I did in my edit. – Martin Scharrer Feb 25 '11 at 14:43
up vote 7 down vote accepted

Move the dot into the argument of \thmnote.

Full example:

  {\thmname{#1}\thmnumber{ #2}\thmnote{. #3}}



share|improve this answer
thanks a lot! it was trivial but I didn't see it! – Paul Feb 25 '11 at 15:19

Your Answer


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.