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.

I need grid labels even when I use \pspicture*. How to do this?

enter image description here

\documentclass{article}
\usepackage{pstricks}
\psset{linecolor=red}
\begin{document}
\figure[h]\centering
\begin{pspicture}[showgrid](1,1)
\psline(-1,-1)(2,2)
\end{pspicture}
\caption{without clipping}
\endfigure


\figure[h]\centering
\begin{pspicture*}[showgrid](1,1)
\psline(-1,-1)(2,2)
\end{pspicture*}
\caption{with clipping}
\endfigure

\end{document}
share|improve this question
    
As you may notice, the dots of your grid are cut off at the outer edges in the second figure. This suggests to me that the labels are there, but covered up due to the effect of the pspicture* environment. This same effect is what gives you your clipping. I haven't yet found a way around this, but I'm looking. –  Jack Henahan Jun 17 '11 at 4:37
add comment

1 Answer 1

up vote 5 down vote accepted
\documentclass{article}
\usepackage{pstricks}
\psset{linecolor=red}
\begin{document}

\begin{pspicture}[showgrid](1,1)
\rput[lb](0,0){%
  \begin{pspicture*}(1,1)
  \psline(-1,-1)(2,2)
  \end{pspicture*}}
\end{pspicture}

\end{document}

enter image description here

share|improve this answer
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.