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.

The objective is to make the background color of the box containing the label transparent.

\documentclass[pstricks]{standalone}
\usepackage{pst-eucl}

\begin{document}
\begin{pspicture}[showgrid=false](4,4)
    \pstGeonode[PosAngle={90}]
        (1,1){A}
        (3,3){B}
    \ncarc[arcangle=-30,linestyle=dashed,linecolor=gray]{A}{B}
  \ncput*[nrot=:0]{$2\sqrt2$}   
\end{pspicture}
\end{document}

I use -transparent white when invoking ImageMagick's convert. Unfortunately there is still a thin yet visible border around the box as follows. Is there any option to remove such an unwanted border?

enter image description here

This question is my attempt to solve my other question here.

share|improve this question
    
Can you see the white thin border? –  stalking is prohibited Jun 8 '13 at 8:27
    
The existence of this defect really disturbs my mind much. –  stalking is prohibited Jun 8 '13 at 9:29
    
I can't see the rectangle with my previewers: TeXWorks, Adobe, Mac Preview. –  Marco Daniel Jun 8 '13 at 10:28
    
@MarcoDaniel: Of course you cannot see it in PDF viewers as I am talking about the PNG output. –  stalking is prohibited Jun 8 '13 at 10:38
1  
What options do you use to convert the DVI to PNG with ImageMagick? It always turns out really small and unreadable for me. –  Jake Jun 8 '13 at 12:03

1 Answer 1

up vote 2 down vote accepted

The solution is to add a background to the image that has the same colour as the box:

\documentclass[pstricks]{standalone}
\usepackage{pst-eucl}

\begin{document}
\begin{pspicture}[showgrid=false](4,4)
    \psframe*[linecolor=white](4,4)
    \pstGeonode[PosAngle={90}]
        (1,1){A}
        (3,3){B}
    \ncarc[arcangle=-30,linestyle=dashed,linecolor=gray]{A}{B}
  \ncput*[nrot=:0]{$2\sqrt2$}   
\end{pspicture}
\end{document}
share|improve this answer

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.