I want to display a theorem title, it is simple:


I get

Theorem 4.5 (Name).

but I don't like the dot at the end. I want it to look like this:

Theorem 4.5. (Name)

Can you help me with that?

  • 1
    Welcome to TeX.SE! It would be best if you could provide a MWE in particular, please include the packages you use to create your theorems (amsthm?, thmtools? ntheorem? other?). Welcome! – cmhughes Oct 27 '12 at 18:04

The amsthm package allows you to define custom theorem styles, with custom heading specifications. To get the formatting you desire, you can define a new style, say custom, and then declare a theorem environment using that style. Here's an example:


% Create a `custom` theorem style.
  {\topsep}   % Space above
  {\topsep}   % Space below
  {\itshape}  % Body font
  {0pt}       % Indent amount (empty value is the same as 0pt)
  {\bfseries} % Theorem head font
  {}          % Punctuation after theorem head
  {5pt plus 1pt minus 1pt} % Space after theorem head
  {\thmname{#1}\thmnumber{ #2}.\thmnote{ (#3)}} % Theorem head spec

% Create a `theorem` environment using the `custom` style.


This is the new theorem environment.


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.