## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Theoreme style

Information and discussion about graphics, figures & tables in LaTeX documents.
Pierrotdu18
Posts: 22
Joined: Sun Dec 01, 2013 11:24 pm

### Theoreme style

Hello, I have a problem with this code...

\begin{Sbox}   \begin{minipage}[t]{15cm}     \textsc{Théorème}     Tout nombre entier est divisible par 1.   \end{minipage}\end{Sbox}\psframebox[fillstyle=solid,fillcolor=gris,framearc=.1]{\TheSbox}

I really don't see how it doesn't work...

\usepackage{pstricks}\usepackage{pst-all}\usepackage{fancybox}\usepackage{fancyvrb} \newgray{gris}{.85}

I hope that someone will be able to help me

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
Hi, please post a minimal working example that lets us reproduce what you are trying to achieve. You seem to do stuff by hand, but there are soo many theorem-related packages out there.
If you want to have some sort of border around them, have a look at packages like tcolorbox or mdframed.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9616
Joined: Mon Mar 10, 2008 9:44 pm
I just can support this, especially tcolorbox is a great and powerful package, which would be my choice, mdframed is good as well. pstricks requires LaTeX in DVI mode plus PS conversion, while the other packages can directly be used with pdfLaTeX.

Stefan