Graphics, Figures & TablesVariations for PSTricks with PDFLaTeX

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Variations for PSTricks with PDFLaTeX

Post by svend_tveskaeg »

Hi all.

If I want to compile a document containing pstricks code with the PDFLaTeX typesetting engine, I use the auto-pst-pdf package.
The first question is: Should I load auto-pst-pdf before or after the pst-... packages? (As for now, I load it before and everything seems to be just fine but I am wondering if there are any pitfalls.)

Furthermore, on {TeX} SX, Herbert advices the use of

Code: Select all

\usepackage[pdf]{pstricks}
(instead of auto-pst-pdf, as I use now). However, pdf is not an available option for the pstricks-add package (as far as I know), which I often use instead of pstricks.

Is it possible to load an option similar to pdf when using pstricks-add instead of pstricks?

Thank you in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

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

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Variations for PSTricks with PDFLaTeX

Post by CrazyHorse »

svend_tveskaeg wrote: If I want to compile a document containing pstricks code with the PDFLaTeX typesetting engine, I use the auto-pst-pdf package.
The first question is: Should I load auto-pst-pdf before or after the pst-... packages? (As for now, I load it before and everything seems to be just fine but I am wondering if there are any pitfalls.)
use

Code: Select all

\usepackage{auto-pst-pdf}
\usepackage[dvipsnames]{pstricks}% not needed when no options for xcolor
\usepackage{pst-...}
\usepackage{pst-...}
\usepackage{pstricks-add}
Only pstricks can have options.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Variations for PSTricks with PDFLaTeX

Post by svend_tveskaeg »

Thank you!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply