Graphics, Figures & Tablespst-pdf | Compilation produces Warning

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

pst-pdf | Compilation produces Warning

Post by coachbennett1981 »

I have recently updated my MacTeX to 2011. However, I am running in to new problems with PSTricks that I previously did not have with using TeXShop. I used to be able to run PSTricks using the Tex->DVI typset. However, when I try to run my file with a basic graph, I get the following error. I know I am missing something in the preamble, but I don't know how to fix it.
Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `"Challenge Problems Chapter 7"-pics.pdf' not fou
nd.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ----------------------------------------------------
(pst-pdf) latex "Challenge Problems Chapter 7".tex
(pst-pdf) dvips -o "Challenge Problems Chapter 7"-pics.ps "Chall
enge Problems Chapter 7".dvi
(pst-pdf) ps2pdf "Challenge Problems Chapter 7"-pics.ps
(pst-pdf) ---------------------------------------------------- .
Here is my file:

Code: Select all

\documentclass[12pt]{article}
\usepackage{pst-pdf}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{pstricks}
\usepackage{pstricks-add}

\begin{document}
	\begin{enumerate}
		\item Graph the function $y=-2\cdot(4)^{x-2}+1$ below.  What is the domain and range of this function? Is the function growth or decay?
	\end{enumerate}
			\begin{pspicture}(0,0)(2,1)
			\psset{unit=.65cm} 
				\psaxes[linewidth=1.5pt,arrowinset=0,arrows=<->](0,0)(-6,-6)(3,4)
			\end{pspicture}
\end{document}
Any help would be appreciated

Nick
Last edited by coachbennett1981 on Thu Feb 23, 2012 3:05 pm, edited 1 time in total.

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

pst-pdf | Compilation produces Warning

Post by Stefan Kottwitz »

Hi Nick,

perhaps use auto-pst-pdf instead of pst-pdf.

Stefan
LaTeX.org admin
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: pst-pdf | Compilation produces Warning

Post by coachbennett1981 »

I see, then run it as a tex-> DVI.. Thanks dude


Nick
Post Reply