On Fri, Jun 24, 2011 at 7:30 PM, Gustavo Goretkin
<gustavo.goret...@gmail.com> wrote:
> I've successfully used the Preview Inset to display qtrees. Can I use it for
> PSTricks too?
>
PSTricks features the big drawback that it is incompatible with
pdflatex. I'm not sure how the Preview machinery works, but you need
either PostScript or XeTeX to compile PSTricks code.
Liviu


> Ultimately, I want to use the package pst-sigsys and preview a diagram like
> the one appended.
>
> Thanks!
> Gustavo
>
> \begin{figure}[ht]
> \centering %
> \begin{pspicture}[showgrid=false](0,3)(10,5)
> \psset{style=RoundCorners}
>
> %--- Define blocks ---
> \pssignal(0,4){tm}{$\tau_m$}
> \pscircleop(1,4){sum1}    \nput{70}{sum1}{$\scriptstyle -$}
> \psblock(2,4){Jm}{$\frac{1}{J_m}$}
> \psblock(3.5,4){dint1}{$\frac{1}{s^2}$}
>
> \pscircleop(4.5,4){sum2}    \nput{-160}{sum2}{$\scriptstyle -$}
> \psblock(5.5,4){hooke}{$K_s$}
> \dotnode[dotstyle=square*,dotscale=0.001](6,4){tldot}
> \dotnode[dotstyle=square*,dotscale=0.001](5,5){tldot1}
> \psblock(7,4){Jl}{$\frac{1}{J_l}$}
> \psblock(8.5,4){dint2}{$\frac{1}{s^2}$}
>
> \dotnode[dotstyle=square*,dotscale=0.001](9,4){thetal_dot}
> \dotnode[dotstyle=square*,dotscale=0.001](8,3){thetal_dot1}
>
> \pssignal(10,4){tl}{$\theta_l$}
>
>
>
>
> %--- Connect blocks ---
> \psset{style=Arrow}
> \ncline[nodesepA=.0]{->}{tm}{sum1}
> \ncline{sum1}{Jm}
> \ncline{Jm}{dint1}    \naput[npos=.5]{$\ddot\theta_m$}
> \ncline{dint1}{sum2}    \naput[npos=.5]{$\theta_m$}
> \ncline{sum2}{hooke}
> \ncline{hooke}{Jl}    \naput[npos=.5]{$\tau_l$}
> \ncline{Jl}{dint2}    \naput[npos=.5]{$\ddot\theta_l$}
> \ncline{dint2}{tl}
>
>     %feedback1
>     \ncangle[angleA=-90,angleB=0]{-}{tldot}{tldot1}
>     \ncangle[angleA=180,angleB=90]{tldot1}{sum1}
>     \ncangle[angleA=-90,angleB=0]{-}{thetal_dot}{thetal_dot1}
>     \ncangle[angleA=180,angleB=-90]{thetal_dot1}{sum2}
>
>
> \end{pspicture}
> \end{figure}
>
>
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to