[OS X TeX] theorem names
George Gratzer
gratzer at me.com
Sat Nov 13 20:19:09 EST 2010
Are the numbers the same for definition?
So
>
> \makeatletter
>
> \newtheoremstyle{mydefinition}%
> {}% ⟨Space above⟩
> {}% ⟨Space below⟩
> {}% ⟨Body font and note font⟩
> {}% ⟨Indent amount⟩
> {\bfseries\thm at notefont{\bfseries}}% ⟨Definition head font⟩
> {.}% ⟨Punctuation after theorem head⟩
> {5pt plus1pt minus1pt\relax}% ⟨Space after definition head⟩
> {}% ⟨Definition head spec (can be left empty, meaning ‘normal’)⟩
>
> \makeatother
On 2010-11-13, at 7:15 PM, Alan Munn wrote:
> On Nov 13, 2010, at 5:56 PM, George Gratzer wrote:
>
>> Allan,
>>
>> This is great. Now I would only need the values for
>> plain and definition to create the new version.
>
> Ok. If you leave most of the values blank, you get the defaults. So here's what you need, I think:
>
> \makeatletter
>
> \newtheoremstyle{mytheorem}%
> {}% ⟨Space above⟩
> {}% ⟨Space below⟩
> {\itshape}% ⟨Body font and note font⟩
> {}% ⟨Indent amount⟩
> {\bfseries\thm at notefont{\bfseries}}% ⟨Theorem head font⟩
> {.}% ⟨Punctuation after theorem head⟩
> {5pt plus1pt minus1pt\relax}% ⟨Space after theorem head⟩
> {}% ⟨Theorem head spec (can be left empty, meaning ‘normal’)⟩
>
> \makeatother
>
> Alan
>
>
>>
>> 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
>>>
>
> --
> 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 MacOSX-TeX
mailing list