6

when using \psframebox the size between text and corners of the box is really small. Is there a way to increase that?

My minimal example:

\documentclass[dvips]{article}
\usepackage{pst-all}
\begin{document}
\psset{xunit=1cm,yunit=1cm,runit=1cm}
\psset{linewidth=1pt}
    \begin{pspicture}(10,10)
        \psset{cornersize=absolute,linearc=0.15}
    \rput(6.5,4){\psframebox[fillstyle=solid, fillcolor=white]{\Large{TEST}}}
    \end{pspicture}
\end{document}
  • the fillstyle=solid, fillcolor=white are not needed – user2478 Aug 15 '12 at 8:20
7

Include the option framesep=<len> where <len> is any (PStricks) length. Default is 3pt.

Here's a minimal example:

enter image description here

\documentclass[dvips]{article}
\usepackage{pst-all}
\begin{document}
\psset{xunit=1cm,yunit=1cm,runit=1cm}
\psset{linewidth=1pt}
    \begin{pspicture}(10,10)
        \psset{cornersize=absolute,linearc=0.15}
        \rput(6.5,4){\psframebox[fillstyle=solid, fillcolor=white]{\Large{TEST}}}
        \rput(6.5,0){\psframebox[fillstyle=solid, fillcolor=white, framesep=20pt]{\Large{TEST}}}
    \end{pspicture}
\end{document}​
  • 1
    You beat me by seconds! – Gonzalo Medina Aug 14 '12 at 19:06
  • 2
    framesep=<len> len is not a TeX length it is a PSTricks length which is far different. – user2478 Aug 14 '12 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.