# [pstricks] powerdot and pst-optexp

Patrice MÉGRET Patrice.MEGRET at umons.ac.be
Fri Nov 28 08:42:33 CET 2014

Herbert,

Anyway, the behavior is strange because if I use pst-optexp in a document and not in powerdot and if I comment out (\iffalse - \fi) one pst-optexp picture, I get no trouble. (see code below that works as expected).

The trouble seems to come from interaction between powerdot and pst-optexp.

Best regards,

\documentclass{report}

\usepackage{t1enc}
\usepackage[latin1]{inputenc}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-circ}
\usepackage{pst-optexp}

\begin{document}

\iffalse
\begin{pspicture}(-1,-1)(6.5,3)
\psgrid
\pnode(0,1){NA}
\pnode(1,1){NBB}
\pnode(4,1){NB}
\pnode(0,0){NC}
\pnode(4,0){ND}
\pnode(6,1){NE}
\pnode(-0.35,2){NF}

\optbox[label=0,fiber,position=start,optboxwidth=0.7,compname=LD,extnode=t](NA)(NBB){LD}
\optcoupler[coupleralign=top](NA)(NC)(NB)(ND){}
\optfiber[label=0.5](NB)(NE){FUT}
\optdetector[label=-0.7](ND)(NC){PD}
\elecsynthesizer[synthtype=pulse](NF)(\oenodeExt{LD}){}
\end{pspicture}
\fi

\vspace{1cm}

\begin{pspicture}(-5,0)(5,5.5)
\psgrid
\rput(-3.5,0){%
\psframe[fillstyle=solid,fillcolor=blue,linestyle=none](-1.5,0)(1.5,5)
\psframe[fillstyle=solid,fillcolor=gray,linestyle=none](-1.3,0.2)(1.3,5)
\psframe[fillstyle=solid,fillcolor=white,linestyle=none](-0.5,1)(0.5,5)
\psframe[fillstyle=solid,fillcolor=white,linestyle=none](-1,4.5)(1,5.01)
\psline[linecolor=orange,linewidth=2pt](1,0.3)(1,5.5)
\rput(1,2){\multips(0,0.1){5}{\psline(-0.1,0)(0.1,0)}}
}

\rput(0,0){%
\psframe[fillstyle=solid,fillcolor=blue,linestyle=none](-1.5,0)(1.5,5)
\psframe[fillstyle=solid,fillcolor=gray,linestyle=none](-1.3,0.2)(1.3,5)
\psframe[fillstyle=solid,fillcolor=white,linestyle=none](-0.5,1)(0.5,5)
\psline[linecolor=orange,linewidth=2pt](1,0.3)(1,5.5)
\psline[linecolor=orange,linewidth=2pt](0.2,1.3)(0.2,5.5)
\pnode(-0.2,1.5){NA}
\pnode(-0.2,3.5){NB}
\pnode(-0.2,5.5){NBB}
\pnode(-0.1,5.5){NAA}
\pnode(-0.1,1.5){NAAA}
\coil[dipolestyle=elektor](NA)(NB){}
\wire(NB)(NBB)
\wire(NA)(NAAA)
\wire(NAAA)(NAA)
}

\rput(3.5,0){%
\psframe[fillstyle=solid,fillcolor=blue,linestyle=none](-1.5,0)(1.5,5)
\psframe[fillstyle=solid,fillcolor=gray,linestyle=none](-1.3,0.2)(1.3,5)
\psframe[fillstyle=solid,fillcolor=gray!40,linestyle=none](-0.5,1)(0.5,5)
\psline[linecolor=orange,linewidth=2pt](1,0.3)(1,5.5)
\psline[linecolor=orange,linewidth=2pt](0.2,1.3)(0.2,5.5)
\pnode(-0.2,1.5){NA}
\pnode(-0.2,3.5){NB}
\pnode(-0.2,5.5){NBB}
\pnode(-0.1,5.5){NAA}
\pnode(-0.1,1.5){NAAA}
\coil[dipolestyle=elektor](NA)(NB){}
\wire(NB)(NBB)
\wire(NA)(NAAA)
\wire(NAAA)(NAA)
}
\end{pspicture}
\end{document}