TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. How to use PSTricks in pdfLaTeX? Ask Question Asked 8 years, 7 months ago. Active 4 years, Include the pstricks package in your.tex file (the second is necessary only in case that you want to use the pstricks. in your document preamble, it should automatically choose to build with XeLaTeX, and it should all just work as normal. If we're not automatically picking up the need to use XeLaTeX, you can click the Overleaf menu icon above the file list panel, and set "Compiler" to "XeLaTeX".
PSTricks offers an extensive collection of macros for generating PostScript that is usable with most T e X macro formats, including Plain T e X, L a T e X, AMS-T e X, and AMS-L a T e X.Included are macros for colour, graphics, pie charts, rotation, trees and overlays. Dec 01, 2008 · b - If you are a LaTeX user (and not only a plain TeX one), you have to do the same thing for the "latex" subdirectory, which define LaTeX wrappers for all the PSTricks files. a - If you use the "dvips" DVI to PostScript converter, you have to move all .
If you are using packages which works only with pdflatex or want to insert png- or jpg-images, then use the package auto-pst-pdf and you can run pdflatex with PSTricks related code. The other important alternative is to use XeLaTeX instead of latex, it creates the PDF output vis the intermediate dvi format and can handle PSTricks code by default. b - LaTeX users must also take care that the `pstricks.sty' package is required in place of the `pstricks.tex' one if the `graphics' or `graphicx' package is also loaded. c - Don't try to load the `color' or `xcolor' package if you use `pstricks.sty' or `pst-all' (it is already loaded in the correct order).
The core is pstricks. Frequently done errors Using PSTricks together with TikZ causes a problem after the last update of the dvi driver of TikZ when using package auto-pst-pdf. Here is an example of how to use the package without a problem. Do not choose pstricks.tex as a file name, it is the name of the main PSTricks package! Windows users. PSTricks commands are low level, so many LaTeX packages have been made in order to ease the creation of several kinds of graphics that are commonly used on mathematical typesetting. pst-plot provides commands for creating function graphs. Consider the following example.