Text Formattingntheorem | Custom Theorem Heading

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
letty
Posts: 9
Joined: Fri Jan 01, 2010 5:33 pm

ntheorem | Custom Theorem Heading

Post by letty »

Hi,

I'm looking for a little help customizing a theorem heading with ntheorem.

I am hoping to achieve theorem headings that look something like one would get if you typeset:

\small\sc Test-1 \normalsize The theorem itself here

Only, of course, I am looking for the theorem itself to manage the numbers etc.

So far, I have given the theorem style as follows:

Code: Select all

\theoremnumbering{arabic}
\theorembodyfont{\rm}
\theoremheaderfont{\sc\small}
\theoremseparator{}
\newtheorem{test}{Test} \theoremindent\parindent
This gives me something that looks like this:

\small\sc Test 1 \normalsize The theorem itself here

However, it's the hyphen that's causing me trouble - I'd really like to get it in there (so there's just a hyphen between 'Test' and the number, no space) - but I really can't work out how. I'd be really grateful if anyone could point out how to achieve this!

Many thanks,

Letty

Recommended reading 2024:

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

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

Post Reply