[OS X TeX] Does {ntheorem} have a bug related to \newshadedtheorem ?
Herbert Schulz
herbs at wideopenwest.com
Wed Jan 11 15:25:30 CET 2012
On Jan 11, 2012, at 7:13 AM, Herbert Schulz wrote:
>
> On Jan 11, 2012, at 2:49 AM, Michael Welsh wrote:
>
>> Okay, this is weird. There's some interactions going on between pstricks, ato-pst-pdf and ntheorem that don't work right, no matter what I do. However, there is a hack, which works for me:
>>
>> \documentclass [11pt, fleqn, leqno] {book}
>>
>> \usepackage{amsmath}
>> \usepackage{color}
>> \usepackage[amsthm, framed, thref]{ntheorem}
>> \usepackage{framed}
>>
>> \theoremclass{Theorem}
>> \theoremstyle{break}
>> \def\theoremframecommand{\colorbox{yellow}}
>> \newshadedtheorem{thmshaded}{YellowBackTheorem}[chapter]
>>
>> \begin{document}
>>
>> \chapter{On Trial}\label{yellowbird}
>>
>> Let's put some text in here.
>>
>>
>> \begin{thmshaded}[Named] % YellowBackTheorem
>> \label{yellowguy}
>> This is the statement of a shaded theorem \dots. Set by \texttt{thmshaded}.
>> \end{thmshaded}
>>
>> The theorem with the yellow background and optional ID
>> ``(Yellow Bird)'' is \ref{yellowbird} and there's also \ref{yellowguy}
>>
>> \end{document}
>>
>
> Howdy,
>
> Why are you using both auto-pst-pdf (which is a wrapper for pst-pdf used with pdflatex) and pstricks (to be used with latex->dvips->ps2pdf [i.e., tex->dvi->ps->pdf])? Are you using lots of pstricks or are you including eps or pdf figures?
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
Howdy,
Well, maybe I understand that.
What editor are you using?
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the macostex-archives
mailing list