[pstricks] ncbar outside pstricks

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jul 7 09:36:33 CEST 2011


Am 07.07.2011 03:27, schrieb David Arnold:

> I've attached a file (won't compile for you as many supporting files are missing) so that you can see what our preamble contains:

[ ... ]

> I wondering if there is an easy way to recode my code_snippet above so that it will compile in our system?

If there is no pspicture environment put all contents into a
postscript environment, then it is catched by the preview
package.
This compiles fine:

\listfiles
\documentclass{article}
\usepackage{pst-node,pst-pdf,amsmath}

\begin{document}

We ``group'' the first and second terms, noting that we can factor  $5u$ 
out of both of these terms. Then we ``group'' the third and fourth 
terms, noting that we can factor $-8$ out of both of these terms.

\begin{postscript}
\begin{align*}
5\rnode{A}{u2} -10\rnode{B}{uw} -8\rnode{C}{u} +16\rnode{D}{w}
&=5u\,{\color{red}(u-2w)} -8\,{\color{red}(u-2w)}\\
\intertext{Now we note that we can factor a $u-2w$ out of both of these 
terms.}
&=(5u-8){\color{red}(u-2w)}
\end{align*}
\ncbar[linecolor=red,angle=270,arm=7pt,nodesep=3pt]{<->}{A}{B}
\ncbar[linecolor=red,angle=270,arm=7pt,nodesep=3pt]{<->}{C}{D}
\end{postscript}

\end{document}


Herbert


More information about the PSTricks mailing list