[pstricks] PSTricks conflict with Web

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Jan 10 10:12:02 CET 2009


dwarnold45 at suddenlink.net schrieb:

> This works. Is there a document somewhere that explains why this works for us?

no, but there is a general rule: if drivers are specified by optional
arguments, like [pdftex] in this case, then you can expect problems
when running your document in another mode. PSTricks needs dvips mode.
(auto-pdf does this internally in a separate run)
However, in nearly all cases, todays packages can detect the needed
driver itself, so there is no need to specify a driver.
Or alternative use the ifpdf construct:

\usepackage{ifpdf}% in this case already done by pst-pdf
\ifpdf
  \usepackage[pdftex]{web}
\else
  \usepackage[...]{web}
\fi

Herbert

>> \documentclass[12pt]{article}
>> \usepackage{amsmath,amssymb}
>> \usepackage{graphicx}
>> \usepackage[dvipsnames]{pstricks}
>> \usepackage{pstricks-add}
>> \usepackage{auto-pst-pdf}
>> \usepackage{ifpdf}
>> \ifpdf
>>   \usepackage[pdftex]{web}
>>   \usepackage{exerquiz}
>> \fi


More information about the PSTricks mailing list