[pstricks] Arrows in math equation?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri May 2 13:15:55 CEST 2008


Anton Suchaneck schrieb:

> I'm just starting with pstricks and wondering if it is possible to have
> arrows in plain math equations. For example I want in
> \[ \ln(a^b)\]
> an arrow from above the "b" to the empty space infront of the "\ln"
> Is that doable?

\documentclass[12pt,a4paper]{article}
\usepackage{pst-node}
\begin{document}

\[ \rnode{ln}{\rule{0pt}{2ex}}%  for vertical centering
\ln(a^{\protect\rnode{b}{\scriptstyle b}})\]
\nccurve[ncurv=2,angleA=170,angleB=90,
	arrows=<-,arrowscale=1.5,nodesepB=2pt]{ln}{b}

\end{document}


Herbert



More information about the PSTricks mailing list