
Document Classes ⇒ Best way to arrange pstricks figures
Best way to arrange pstricks figures

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
Best way to arrange pstricks figures
Code: Select all
\begin{pspicture}(0,0)(3,3)
\psframe[linestyle=none, fillstyle=solid,fillcolor=Apricot](0,0)(2,2)
\pspolygon[linestyle=none,fillstyle=solid,fillcolor=Tan](0,2)(2,2)(3,3)(1,3)
\pspolygon[linestyle=none,fillstyle=solid,fillcolor=Mahogany]
(2,0)(3,1)(3,3)(2,2)
\end{pspicture}
I get the same when I use 'gradient'. Any tips? I am using: \usepackage{pstcol}
Sorry if these questions are basic or if I may find answers by reading into some manuals. I am in press of time therefore I seek your help. Thanks for understanding.
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
Best way to arrange pstricks figures
\usepackage[dvipsnames]{pstricks}tsurreal wrote:I face another problem that colors and gradients are not recognized. For example in the following code:
I get an error: ! Color `apricot' not defined.Code: Select all
\begin{pspicture}(0,0)(3,3) \psframe[linestyle=none, fillstyle=solid,fillcolor=Apricot](0,0)(2,2) \pspolygon[linestyle=none,fillstyle=solid,fillcolor=Tan](0,2)(2,2)(3,3)(1,3) \pspolygon[linestyle=none,fillstyle=solid,fillcolor=Mahogany] (2,0)(3,1)(3,3)(2,2) \end{pspicture}
I get the same when I use 'gradient'. Any tips? I am using: \usepackage{pstcol}
Sorry if these questions are basic or if I may find answers by reading into some manuals. I am in press of time therefore I seek your help. Thanks for understanding.
Herbert
Best way to arrange pstricks figures
Cheers,
Tomek
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
Best way to arrange pstricks figures
the most common way is to have all code of images inside the document.T3. wrote:Regarding your original question, I think the most common way is to keep graphical material in separate files, one file per picture, and include them with the '\input' command in your document. I've also found this page describing how to handle TikZ graphics inclusion but I think that a lot of ideas from there could be applied to PSTricks as well.
Only for large pieces of code it makes sense to use the input command.
Herbert