[texhax] option clash for package error

Edo Navot navoe816 at newschool.edu
Sat Sep 17 00:39:20 CEST 2011


Dear wise list,

I have a fairly long document which includes 

1. figures produced by a statistics package and included in the document using the graphicx package
2. a figure produced by ps-tricks package

Using TexShop 2.43, I can't get the program to generate both the imported graphics and ps-tricks graphics.

My header is

>>
%%!TEX TS-program = latex
\documentclass[11pt]{article}
\usepackage[authoryear, round, comma]{natbib}
\bibliographystyle{asr}
\usepackage{textcomp}
\usepackage{fullpage}
\usepackage{url}
\usepackage{array}
\usepackage{amsmath}
\usepackage{xfrac}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{pstricks,pst-plot,multido,pst-node}

\begin{document}
>>

When I comment out the ps-tricks package and erase the first line, the includegraphicx works fine.  When the ps-tricks relevant lines are included I get a series of errors including the following when the header is as seen above:

>>
! LaTeX Error: Cannot determine size of graphic in ws_annual_notrend_rec.pdf (n
o BoundingBox).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.302 ...ics[width=7cm]{ws_annual_notrend_rec.pdf}
>>

And the following when I change \usepackage{graphicx} to \usepackage[pdftex]{graphicx} :

>>
! LaTeX Error: Option clash for package graphicx.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.13 \usepackage
                {pstricks,pst-plot,multido,pst-node}
? 

>>
     
Is there any way to get both packages to work?

Thanks very much in advance!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110916/ba21f31e/attachment.html>


More information about the texhax mailing list