Graphics, Figures & TablesPSTricks | Very basic Error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm

PSTricks | Very basic Error

Post by psionman »

I have installed pstricks on Ubuntu with TeX Live.

When I try to compile this simple document.

Code: Select all

\documentclass{article}
\usepackage{pstricks}

\begin{document}
\psdots(1,1)
\end{document}
I get the error

Code: Select all

! Undefined control sequence.
l.5     \psdots
               (1,1)
Can someone suggest a solution?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

PSTricks | Very basic Error

Post by Stefan Kottwitz »

This document works for me, with TeX Live 2011. Perhaps you need an update of PSTricks, you could also consider to install TeX Live 2012 from tug.org instead of the older version from the Ubuntu repositories.

Stefan
LaTeX.org admin
psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm

PSTricks | Very basic Error

Post by psionman »

Thanks Stefan. I can't understand it because I have TeX Live 2012 and I downloaded pstricks this morning
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

PSTricks | Very basic Error

Post by Stefan Kottwitz »

You could ass \listfiles to your preamble, and post the .log file here, as attachment to a post. Perhaps we can see the cause in that file.

Stefan
LaTeX.org admin
psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm

Re: PSTricks | Very basic Error

Post by psionman »

Thanks Stefan

I have attached the log file as you requested
Attachments
StartPsTricks.log
(6.6 KiB) Downloaded 439 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks | Very basic Error

Post by localghost »

The file list in your log file indicates that the system still uses the old files from TeX Live 2009 (shipped with Ubuntu).

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  pdftex.def    2009/08/25 v0.04m Graphics/color for pdfTeX
supp-pdf.mkii
 ***********
However you installed TeX Live 2012 on your operating system, it is not recognized.


Thorsten
psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm

Re: PSTricks | Very basic Error

Post by psionman »

Thanks Thorsten. I realize that now. I mistakenly installed PSTricks with synaptic and that downloaded some TeX Live 2009 files. I've now sorted that but will have to have another try with PSTricks.
Post Reply