[OS X TeX] theorem names

George Gratzer gratzer at me.com
Sat Nov 13 23:56:11 CET 2010


Allan,

This is great. Now I would only need the values for
plain and definition to create the new version.

Thanks.

GG

On 2010-11-13, at 4:46 PM, Alan Munn wrote:

> On Nov 13, 2010, at 4:18 PM, George Gratzer wrote:
> 
>> This is the same problem. We need instructions
>> how to create custom theorem styles.
> 
> Did my other suggestion not work?
> 
> It's true that the documentation of amsthm isn't very clear.  Here's an example of making your own theorem style:
> 
> \documentclass{article}
> \usepackage{amsthm}
> 
> \newtheoremstyle{mytheorem}%
> {3pt}% ⟨Space above⟩
> {3pt}% ⟨Space below⟩
> {\itshape}% ⟨Body font⟩
> {\parindent}% ⟨Indent amount⟩
> {\bfseries}% ⟨Theorem head font⟩
> {.}% ⟨Punctuation after theorem head⟩
> {.5em}% ⟨Space after theorem head⟩
> {Theorem \thetheorem\quad\normalfont(\thmnote{#3})}% ⟨Theorem head spec (can be left empty, meaning ‘normal’)⟩
> \theoremstyle{mytheorem}
> \newtheorem{theorem}{Theorem}
> 
> \begin{document}
> 
> \section{A section}
> 
> \begin{theorem}[Some text]
> \[ \pi
> \]
> \end{theorem}
> 
> \end{document}
> 
> HTH
> 
> Alan
> 
> 
>> 
>> GG
>> 
>> On 2010-11-13, at 10:55 AM, André Bellaïche wrote:
>> 
>>> 
>>> Le 13 nov. 2010 à 06:23, George Gratzer a écrit :
>>> 
>>>> I use the book document style and load the AMS packages, in particular, amsthm. Therefore,
>>>> theorems with names, e.g.
>>>> 
>>>> Theorem 5 (Fundamental theorem of AbelianGroups).
>>>> 
>>>> is typeset with
>>>> 
>>>> Theorem 5
>>>> 
>>>> and the period in bold,
>>>> 
>>>> (Fundamental Theorem of AbelianGroups)
>>>> 
>>>> not. Of course, it is easy to make
>>>> 
>>>> Fundamental Theorem of AbelianGroups
>>>> 
>>>> bold, but I would need the parenthesis bold also.
>>>> 
>>>> The amslatex distribution has a file called testmath.pdf in
>>>> 
>>>> amslatex/doc/latex/amsmath
>>>> 
>>>> On p.6 of this file there are two theorems with everything in bold. Unfortunately, there
>>>> is no source provided or explanation given.
>>>> 
>>>> Does anybody know the trick?
>>>> 
>>>> GG
>>> 
>>> I have a similar problem, but different.
>>> 
>>> I would like not having the point after the the closing parenthesis in
>>> 
>>>> Theorem 5 (Fundamental theorem of AbelianGroups).
>>> 
>>> to be typeset in bold.
>>> 
>>> Typsetting this point in bold goes against the tradition in typography which says the ponctuation has to use the same font as the preceding text.
>>> 
>>> ``Old manuals of style say that the punctuation after a word should be in the same font as that word.'' D. Knuth, The TeXBook, p. 14.
>>> 
>>> I have looked in the definitions of amsthm.sty, but I could not a way of changing the font of this point.
>>> 
>>> André Bellaïche----------- Please Consult the Following Before Posting -----------
>>> TeX FAQ: http://www.tex.ac.uk/faq
>>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>>> List Archive: http://tug.org/pipermail/macostex-archives/
>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>> 
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 
> -- 
> Alan Munn
> amunn at gmx.com
> 
> 
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list