Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
the fillstyle=solid, fillcolor=white are not needed –  Herbert Aug 15 '12 at 8:20
add comment

1 Answer

up vote 5 down vote accepted

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}​
share|improve this answer
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. –  Herbert Aug 14 '12 at 20:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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