Graphics, Figures & TablesPSTricks | Basic Example causes Errors

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sanjogar
Posts: 2
Joined: Fri Jul 13, 2012 8:43 pm

PSTricks | Basic Example causes Errors

Post by sanjogar »

I've recently installed the latest TeX Live full release. Everything works fine but PSTricks.

This simple code generates hundreds of errors in the log (errors I don't understand).

Code: Select all

\documentclass[10pt]{article}
\usepackage{pstricks-add}

\pagestyle{empty}

\begin{document}
\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true}
\begin{pspicture*}(-5,-5)(5,5)
\pscircle(1,1){3}
\end{pspicture*}
\end{document}
What's going on? I attach log file.

Please help!
Attachments
tricks.log
log file
(9.22 KiB) Downloaded 231 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

PSTricks | Basic Example causes Errors

Post by Stefan Kottwitz »

Hi sanjogar,

welcome to the board!

Compile with LaTeX in dvi mode, not with pdfLaTeX. I can see this in your .log file:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
(format=pdflatex 2012.7.9)
Alternatively, load auto-pst-pdf

Code: Select all

\usepackage{auto-pst-pdf}
and enable the shell-escape option for pdfLaTeX. How the latter can be done, depends on your editor and compiler.

Stefan
LaTeX.org admin
sanjogar
Posts: 2
Joined: Fri Jul 13, 2012 8:43 pm

Re: PSTricks | Basic Example causes Errors

Post by sanjogar »

Thank you very much for your help.

I'm new to Tex-Live and TeXMaker: I was a happy LaTeX-windows user with MikTeX and TeXnicCenter but I am using Ubuntu 12.04 and it's not an easy change.

Now I compiled it with DVI mode: I get no error messegaes but I also get no picture!

Here it is the new log file.

I don't really know what's going on!

Thanks.
Attachments
al fin!.log
(6.8 KiB) Downloaded 213 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Re: PSTricks | Basic Example causes Errors

Post by Stefan Kottwitz »

You will be able to see the picture after you converted from dvi to ps or to pdf. So use dvips and ps2pdf, or dvipdfmx, for example.

Stefan
LaTeX.org admin
Post Reply