[pstricks] [Fwd: relier des lignes dans un align]
Herbert Voss
Herbert.Voss at fu-berlin.de
Fri Oct 12 11:04:32 CEST 2007
Hi all,
this example shows how one can draw lines with only
one node and the nodesep option.
Herbert
-------- Original-Nachricht --------
Betreff: Re: [Tikz] relier des lignes dans un align
Datum: Thu, 11 Oct 2007 23:45:20 +0200
Von: Herbert Voss <herbert49 at googlemail.com>
Newsgruppen: fr.comp.text.tex
Referenzen: <87przl245a.fsf at tele2.fr>
<felj95$qgg$1 at shakotay.alphanet.ch> <87hckx1ppf.fsf at tele2.fr>
<fem4mh$77f$03$1 at news.t-online.com>
Herbert Voss schrieb:
alternative:
\documentclass[]{article}
\usepackage{pst-node}
\SpecialCoor
\usepackage{amsmath}
\newcounter{Nctr}
\newcommand\bope[1]{\stepcounter{Nctr} \rnode{start\theNctr}{#1}}
\newcommand\eope[2]{%
\rnode{end\theNctr}{#1}%
\ncbar[nodesep=3pt]{->}{start\theNctr}{end\theNctr}\aput{0}{#2}}
\begin{document}
\begin{displaymath}% nodes start1 end1
\begin{aligned}
3x &=\bope{1}\\
x &=\eope{\dfrac{1}{3}}{\div 3}
\end{aligned}
\end{displaymath}
\begin{displaymath}% nodes start2 end2
\begin{aligned}
3+x &=\bope{1}\\
x &=\eope{-2}{-3}
\end{aligned}
\end{displaymath}
\psset{linecolor=red,arrowscale=1.5,arrows=<-}
\pcline[linecolor=red]([nodesep=1]start1)([nodesep=3]start1)\uput[0]([nodesep=3cm]start1){/3}
\pcline([nodesep=1]start2)([nodesep=3]start2)\uput[0]([nodesep=3cm]start2){-3}
\psset{linecolor=blue}
\pcline([nodesep=1]end2)([nodesep=3]end2)\uput[0]([nodesep=3cm]end2){$L=\{-2\}$}
\end{document}
\documentclass{article}
\usepackage{pst-vue3d}
\begin{document}
Herbert
--
http://PSTricks.tug.org
http://www.dante.de/CTAN/info/math/voss/
More information about the PSTricks
mailing list