Graphics, Figures & TablesPsTricks on Texlive 2016

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sgourmelen
Posts: 3
Joined: Thu Aug 18, 2016 2:17 pm

PsTricks on Texlive 2016

Post by sgourmelen »

Hi,

I've just installed TexLive 2016 on my computer and it don't manage tu use PsTricks any more.

I receive the error message

Undefined control sequence
\psline{->}(-.5,0)(3,0)

when compiling with TexWorks under pdfLaTeX the following file :

Code: Select all

\documentclass{book}
\usepackage{pstricks, pst-plot}
\begin{document}
\psline{->}(-.5,0)(3,0)
\end{document}
Why is this ?
Last edited by Stefan Kottwitz on Thu Aug 18, 2016 4:52 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: PsTricks on Texlive 2016

Post by Stefan Kottwitz »

Welcome to the forum!

It seems that you are compiling via pdfLaTeX. PSTricks though requires DVI mode or a driver such as with XeLaTeX. This example runs for me using XeLaTeX, and brings the same error message with pdfLaTeX. The latter is not compatible to PSTricks. So, use XeLaTeX or LaTeX in DVI mode.

Stefan
LaTeX.org admin
Post Reply