LaTeX forum ⇒ Graphics, Figures & TablesPSTricks | Very basic Error Topic is solved

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

PSTricks | Very basic Error

Postby psionman » Wed Sep 05, 2012 11:55 am

I have installed pstricks on Ubuntu with TeX Live.

When I try to compile this simple document.
  1. \documentclass{article}
  2. \usepackage{pstricks}
  3.  
  4. \begin{document}
  5. \psdots(1,1)
  6. \end{document}

I get the error
  1. ! Undefined control sequence.
  2. l.5 \psdots
  3. (1,1)

Can someone suggest a solution?

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

Postby Stefan Kottwitz » Wed Sep 05, 2012 12:03 pm

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

Postby psionman » Wed Sep 05, 2012 3:08 pm

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: 9609
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Sep 05, 2012 3:36 pm

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

Postby psionman » Sat Sep 08, 2012 9:14 am

Thanks Stefan

I have attached the log file as you requested
Attachments
StartPsTricks.log
(6.6 KiB) Downloaded 187 times

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sun Sep 09, 2012 11:30 am

The file list in your log file indicates that the system still uses the old files from TeX Live 2009 (shipped with Ubuntu).
  1. *File List*
  2. article.cls 2007/10/19 v1.4h Standard LaTeX document class
  3. size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
  4. pstricks.sty 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
  5. pstricks.tex 2009/05/19 v1.29 `PSTricks' (tvz,hv)
  6. color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
  7. color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
  8. pdftex.def 2009/08/25 v0.04m Graphics/color for pdfTeX
  9. supp-pdf.mkii
  10. ***********

However you installed TeX Live 2012 on your operating system, it is not recognized.


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby psionman » Tue Sep 11, 2012 8:16 pm

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.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests