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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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