Math & ScienceTheorem counter

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Theorem counter

Post by super_baros »

Hi all, just a quick question. How does one remove the 'dot' after "Theorem" in a document? For example, in chapter 1, the command (in the preamble)

\newtheorem{theorem}{Theorem}[chapter]

gives me

Theorem 1.1.

How do I remove the final dot?... :)

Many Thanks!...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Theorem counter

Post by localghost »

super_baros wrote:[…] just a quick question. […]
You better build a quick minimal working example (MWE) because I see no problem.

Code: Select all

\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\newtheorem{theorem}{Theorem}[chapter]

\begin{document}
  \chapter{First}
    \blindtext

    \section{First}
       \blindtext

       \begin{theorem}%[Test]
          \blindtext
       \end{theorem}
\end{document}

Best regards
Thorsten
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Re: Theorem counter

Post by super_baros »

Ok. I've tested it with a small example and I've discovered that the dot only appears if I use the package

\usepackage{amsthm}

But I need this package... :(
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Theorem counter

Post by localghost »

From this you can see that a MWE is absolutely necessary. For future requests get used to providing one right at the beginning.

The amsthm package offers the possibility for defining new styles. Refer to the package manual (Section 4.3 - New theorem styles, p. 4).
super_baros
Posts: 8
Joined: Fri Jan 08, 2010 12:26 am

Theorem counter

Post by super_baros »

Sorry...

...if anybody's still interested, I managed to define a new environment which is the same as the default without the dot.

Code: Select all

\newtheoremstyle{mytheorem}
{3pt}
{3pt}
{}
{}
{\bf}
{}
{.5em}
{}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Theorem counter

Post by gmedina »

I would suggest you to use \bfseries instead of the obsolete command \bf.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply