7

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}
1
  • the fillstyle=solid, fillcolor=white are not needed
    – user2478
    Aug 15, 2012 at 8:20

1 Answer 1

8

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}​
2
  • 1
    You beat me by seconds! Aug 14, 2012 at 19:06
  • 2
    framesep=<len> len is not a TeX length it is a PSTricks length which is far different.
    – user2478
    Aug 14, 2012 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.