4 Apr 12:00
Re: TikZ for geometric drawings?
mitooquerer <mitooquerer <at> yahoo.com>
2007-04-04 10:00:56 GMT
2007-04-04 10:00:56 GMT
I know it is not TikZ, but haven´t you tried Mathspic? http://www.ctan.org/tex-archive/graphics/mathspic/dos/mpicm21.pdf (old manual, see page 14, 25) Downloads: http://dante.ctan.org/indexes/graphics/mathspic/ I used the DOS version, I assume the Perl version works better. I think it should solve some of your problems... like perpendiculars, middle point, etc.. Mitoo Alain Matthes-2 wrote: > > > Le 11 févr. 07 à 22:13, rouben.rostamian <at> comcast.net a écrit : > >> Daniel Flipo <daniel.flipo <at> univ-lille1.fr> wrote: >> >>> I am starting to learn TikZ and I wonder whether I could use TikZ for >>> geometric constructions like, say, the "nine points circle" of a >>> triangle (EPS appended: mp-exemple.1). >> >> I too wish that TikZ had greater capability for doing >> standard geometric constructions. As far as I can tell, >> basic functionality, such as querying the coordinates >> of an intersection is not available (yet). In November I >> wrote to this mailing list asking: "Given points P and Q, >> is there a way to draw a circle centered at P that goes >> through Q?" There were no responses so I assume that it >> is not possible either. >> > > yes it's possible : you can see an example page 17 > of my doc (in french :( )but i'm workin on this doc now and it's not > finished > > http://altermundus.fr/SandBox/TKZdoc-fct-main.pdf > > Perhaps the code below can help you > > \newcommand*{\extractvect}[2]{% \vx et \vy > \pgfextractx{\pgf <at> x}{\pgfpointanchor{#1}{center}} > \pgf <at> xa=\pgf <at> x% > \pgfextracty{\pgf <at> y}{\pgfpointanchor{#1}{center}} > \pgf <at> ya=\pgf <at> y% > \pgfextractx{\pgf <at> x}{\pgfpointanchor{#2}{center}} > \pgfextracty{\pgf <at> y}{\pgfpointanchor{#2}{center}} > \advance\pgf <at> x by-\pgf <at> xa\relax% > \advance\pgf <at> y by-\pgf <at> ya\relax% > \global\expandafter\edef\csname tkz <at> vx\endcsname{\the\pgf <at> x}% > \global\expandafter\edef\csname tkz <at> vy\endcsname{\the\pgf <at> y} > } > > \newdimen\@tmplen > % longueur entre deux noeuds > \newcommand*{\dist}[2]{ > \extractvect{#1}{#2} > \@tmplen=\tkz <at> vx > \edef\@vx{\strip <at> pt\@tmplen}% > \FPmul\@vxc{\@vx}{\@vx} > \@tmplen=\tkz <at> vy > \edef\@vy{\strip <at> pt\@tmplen}% > \FPmul\@vyc{\@vy}{\@vy} > \FPadd{\@sdc}{\@vxc}{\@vyc} > \FProot{\@sdc}{\@sdc}{2} > \global\let\@sdc\@sdc > } > > > \define <at> cmdkey[TKZ]{tkzcc}{pos}{} > \define <at> cmdkey[TKZ]{tkzcc}{color}{} > \define <at> cmdkey[TKZ]{tkzcc}{size}{} > \define <at> cmdkey[TKZ]{tkzcc}{style}{} > \presetkeys[TKZ]{tkzcc}{color = black,% > size = 0.8 pt,% > pos = above}{} > > \newcommand*{\tkzcc}[1][]{\tkz <at> cc[#1]}% > \def\tkz <at> cc[#1](#2,#3){% > \dist{#2}{#3} > \draw[] (#2) circle (\@sdc pt);} > > > \tkzcc(A,B) > > Alain Matthes > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > pgf-users mailing list > pgf-users <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pgf-users > > -- -- View this message in context: http://www.nabble.com/TikZ-for-geometric-drawings--tf3210067.html#a9834202 Sent from the pgf-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ pgf-users mailing list pgf-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgf-users
RSS Feed