[pstricks] tangent to \psellipse or \pscircle

Patrick Drechsler patrick at pdrechsler.de
Tue Oct 30 02:53:33 CET 2007

Patrick Drechsler <patrick at pdrechsler.de> writes:

> what is the best way to draw a tangent to \psellipse or \pscircle at
> certain coordinates? And how does one retreive these coordinates?

Using pst-eucl solved the problem at hand.

For the record:

--8<---------------cut here---------------start------------->8---
\usepackage{pstricks-add}% needed for \psRelLine
  %% Circle:
  \pstCircleOA{O}{A}% draw circle
  %% Line:
  \psline[linewidth=0.5pt,linecolor=gray](W1)(W2)% draw line
  %% Intersection between line and circle:
  %% Secant between the above intersection points SP1 and SP2:
  %% Draw radius:
  %% Tangent:
--8<---------------cut here---------------end--------------->8---

There are probably more elegant ways of doing this.


Statistics are like bikinis. What they reveal is suggestive, but what
they conceal is vital. --Aaron Levenstein

More information about the PSTricks mailing list