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 recently installed Ubuntu 13.04 and tried to recompile a pstricks document I had previously created on an older version of Ubuntu. However all the images came out wrong and consist of all the text contained in the image overlayed at a single position within the image. Lines and shapes are not rendered at all.

Trying the basic pstricks example also does not render correctly in the dvi.

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{figure}
\begin{pspicture}(4,5)
\psframe(0.7,2)(3.3,3)
\rput(2,2.5){First Example}
\end{pspicture}
\end{figure}
\end{document}

It just prints the text without the surrounding frame. I've tried uninstalling texlive and pstricks and reinstalling everything (using apt-get) to no avail. I would appreciate any pointers as to how I can go about tracking down the issue.

Edit: Solved thanks to JosephWright's answer. At first I was compiling using the quickbuild option in texmaker with

latex -> view dvi 

which gave the garbled output. I then tried

latex -> dvips -> view ps

That just hangs indefinitely so I started compiling using just latex and checking the dvi.

Using

latex -> dvips -> ps2pdf 

works perfectly.

share|improve this question
1  
run the document with xelatex. Then you'll get a PDF output –  Herbert Aug 16 '13 at 14:29
    
@Herbert Thanks, that works as well. –  Ralf Aug 16 '13 at 15:09
add comment

1 Answer

up vote 3 down vote accepted

In general, DVI viewers can't render PostScript (some do include code to do the conversion on-the-fly). Conversion to PostScript (or through to PDF) format is usually the best way to check on the correctness of the output: for me all is fine with the demo (TeX Live 2013).

share|improve this answer
add comment

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.