
Document Classes ⇒ Best way to arrange pstricks figures
Best way to arrange pstricks figures
Hi! Yet another question. What is the best way to arrange figures in a document? I was thinking of perhaps having all figures in a separate document (like bibtex bibliography) and then calling them in the main document. Is it a good idea, or is there a better way? Can you please give an example on how can I call the figures from a file? As usual, thanks a ton in advance! 

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

Best way to arrange pstricks figures
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.
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.
Code: Select all
Code, edit and compile here:
\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
Code, edit and compile here:\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
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.
Cheers,
Tomek
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