LaTeX forum ⇒ Graphics, Figures & TablesTheoreme style

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

Theoreme style

Postby Pierrotdu18 » Mon Jan 19, 2015 10:39 pm

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

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


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

  1. \usepackage{pstricks}
  2. \usepackage{pst-all}
  3. \usepackage{fancybox}
  4. \usepackage{fancyvrb}
  5.  
  6. \newgray{gris}{.85}


I hope that someone will be able to help me :)

User avatar
Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Jan 20, 2015 10:49 am

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: 9616
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Jan 20, 2015 2:24 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
LaTeX.org admin

Pierrotdu18
Posts: 22
Joined: Sun Dec 01, 2013 11:24 pm

Postby Pierrotdu18 » Wed Jan 21, 2015 5:21 pm

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


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests