General ⇒ Customizing theorems
Customizing theorems
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Customizing theorems
some of the features provided by the ntheorem package could be useful for you. Please have a look at the package documentation (partuicularly, section 2.3.7 Framed and Boxed Theorems, pp 7ff).
Customizing theorems
Odd problem, though: I've used \newshadedtheorem but now it doesn't like having figures within things:
Code: Select all
\theoremclass{Theorem}
\theoremstyle{break}
\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{:}
\newframedtheorem{example}{Example}[section]
...
\begin{example}
\begin{figure}[h]
\begin{center}
\includegraphics{SomeImage.eps}
\caption{Blobby}
\end{center}
\end{figure}
\end{example}
Does anyone know how to fix this?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Customizing theorems
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10