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.

Why can't I run the following command in my TeXShop?

\documentclass{article}
\usepackage{pstricks-add} 

\begin{document} 
\psset{algebraic=true} 
\pspicture(-2,-0.5)(2,2) 
\psline{<->}(-2,0)(2,0) 
\psline{->}(0,-0.5)(0,2) 
\psplot{-1.5}{1}{x*x+x} 
\endpspicture 
\end{document}  
share|improve this question
3  
Compile it with xelatex or latex->dvips->ps2pdf. –  cyanide-based food Aug 6 '12 at 12:37

1 Answer 1

In TeXShop, you can choose the TeX and DVI item from the Typeset menu, and then compile your document. Alternatively, (and a better solution) you can put the following line in your file:

% !TEX TS-program = latex

as the first line of your document. (This line can be generated by TeXShop by choosing the Program item from the Macros menu, and choosing latex from the list provided by the macro.)

share|improve this answer

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.