I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes:


And this is the error message I am getting:

("C:\Program Files\MiKTeX 2.9\tex\latex\mdframed\md-frame-2.mdf"))
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
! Undefined control sequence.
<recently read> \c@lor@to@ps 

l.7 \end{mdframed}**

Thank you very much for your kind assistance... ?

  • 1
    You can't use pstricks with pdflatex. Use the tikz-method instead. – Ulrike Fischer Jul 10 '14 at 8:17
  • run it with xelatex – user2478 Jul 10 '14 at 8:22
  • Because it is common mistake for the newbies, why don't the PSTricks authors improve this error message such that it provides the newbies with more useful information? – kiss my armpit Jul 10 '14 at 12:52
  • @FifaEarthCup2014: Well, the error message is rather due to xcolor package, included by pstricks.sty – user31729 Jul 11 '14 at 7:05
  • If you are using a LaTeX distribution such as MiKTeX, you can look for an output profile similar to LaTeX => PS => PDF in your editor (TeXnicCenter, Texmaker, etc.). Since this compilation method uses postscript (which requires the installation of GhostScript prior to use) as an intermediary, it will allow the compilation of LaTeX documents that use pstricks functionalities. It is also the only way within MiKTeX that I have been able to compile documents that utilize both tikz and pstricks. – feculededentier Jul 12 '14 at 3:43

Browse other questions tagged or ask your own question.