Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to make a block diagram using pst-sigsys/pstricks. The text however isn't in the boxes but is stashed on the left. I absolutely run out of ideas what might be causing it to happen. Any pointers will be greatly appreciated. Thank you!

Minimum example:

\documentclass{article}
\usepackage{pst-sigsys}

\pagestyle{empty}

\begin{document}

\begin{figure}[ht]
\centering %
\begin{pspicture}[showgrid=false](0,5)(8,9)

%--- Define blocks ---
\psfblock[framesize=2.5 1](2,7){R11}{Axon Count}
\psfblock[framesize=2.5 1](6,7){R12}{Axon Diameter}

%--- Connect blocks ---
\psset{style=Arrow}
\ncline{R11}{R12} \naput[npos=.5]{(+)}

\end{pspicture}
\end{figure}

\end{document}
share|improve this question
    
Welcome to TeX.SX. I get the text properly boxed; it may be a problem in the viewer. Did you try producing a PDF? –  egreg Jun 19 '11 at 8:22
    
Do not view the DVI output. Always look at the PS or PDF output (as already mentioned). –  Thorsten Donig Jun 19 '11 at 8:32
    
Thank you egreg. Indeed if I produce DVI and convert it to postscript everything looks okay, but if I do DVI -> PDF things are out of whack. I guess there is a reason this package is called pstricks ;-) Thank you once again! –  Jacek Jun 19 '11 at 8:38
    
@T.D: Thank you! –  Jacek Jun 19 '11 at 8:39
1  
I suggest somebody turns his comment into an answer. Btw. I can confirm it works with XeLaTeX too. –  Stefan Kottwitz Jun 19 '11 at 12:04

1 Answer 1

Comment to answer

Thorsten Donig (+1)

Do not view the DVI output. Always look at the PS or PDF output (as already mentioned).

Herbert

run the example with xelatex, then the pdf will be fine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.