Graphics, Figures & TablesTheoreme style

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

Theoreme style

Post by Pierrotdu18 »

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

Code: Select all

\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...

Code: Select all

\usepackage{pstricks}
\usepackage{pst-all}
\usepackage{fancybox}
\usepackage{fancyvrb}

\newgray{gris}{.85}
I hope that someone will be able to help me :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Theoreme style

Post by Johannes_B »

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Theoreme style

Post by Stefan Kottwitz »

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
LaTeX.org admin
Pierrotdu18
Posts: 22
Joined: Sun Dec 01, 2013 11:24 pm

Re: Theoreme style

Post by Pierrotdu18 »

Wahuu, thanks a lot, I'm going to use tcolorbox, it looks awesome :D
Post Reply