| 1 |
% $Id: gastex.cfg 4 2020-06-09 08:32:19Z herbert $ |
| 2 |
%% BEGIN: pstricks.con (for xdvipdfmx driver) |
| 3 |
%% |
| 4 |
%% Configuration file for PSTricks |
| 5 |
%% |
| 6 |
%% Version 0.03 (2011/11/23) |
| 7 |
%% |
| 8 |
%% For use with xdvipdfmx |
| 9 |
%% Created by SMiyata based on standard pstricks.con from TeXLive distribution. |
| 10 |
%% This file may be distributed, used and modified freely. |
| 11 |
% |
| 12 |
\def\pstdriver{xdvipdfmx}% |
| 13 |
\def\pstnodescale{} |
| 14 |
\ifx\textsuperscript\@undefined |
| 15 |
\def\pstheader#1{\special{header=#1}}% |
| 16 |
\else |
| 17 |
\ifx\Gin@PS@file@header\@undefined |
| 18 |
\def\pstheader#1{\AtBeginDvi{\special{header=#1}}}% |
| 19 |
\else |
| 20 |
\let\pstheader\Gin@PS@file@header% |
| 21 |
\fi |
| 22 |
\fi |
| 23 |
\def\pstnodescale{}% not needed for pdftex |
| 24 |
|
| 25 |
%%%%%%%%%%%%%%%%%%% !! CUSTOMIZATION STUFF GOES HERE: !! %%%%%%%%%%%%%%%%%% |
| 26 |
%% If you want to include your own customizations to pstricks.tex, then |
| 27 |
%% uncomment the \pstcustomize command, and include your modifications |
| 28 |
%% after \pstcustomize. These will be read in after pstricks.tex. |
| 29 |
\def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}% |
| 30 |
\def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}% |
| 31 |
\def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}% |
| 32 |
\def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}% |
| 33 |
\def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}% |
| 34 |
\def\c@lor@ps@gray#1\@@{#1 setgray}% |
| 35 |
|
| 36 |
\typeout{Using PS configuration for XeTeX+xdvipdfmx}% |
| 37 |
|
| 38 |
\endinput |
| 39 |
% |
| 40 |
% |
| 41 |
%%%%%%%%%%%%%%%% DESCRIPTION OF CONFIGURATION DEFINITIONS %%%%%%%%%%%%%%% |
| 42 |
|
| 43 |
Here are the commands that must be defined in this file: |
| 44 |
|
| 45 |
\pstverb{} - The argument is included as verbatim PostScript, |
| 46 |
grouped by save and restore. The coordinate system |
| 47 |
should be square, not rotated, and with the origin |
| 48 |
at TeX's currentpoint. |
| 49 |
|
| 50 |
\pstVerb{} - The argument is included as verbatim PostScript, not |
| 51 |
grouped by (g)save and (g)restore. The currentpoint |
| 52 |
should be TeX's currentpoint. |
| 53 |
|
| 54 |
\pstunit - The units used by driver for graphics included with |
| 55 |
\pstverb. Probably 1bp or 1sp. |
| 56 |
|
| 57 |
\pstverbscale - The PostScript code that scales the coordinate system |
| 58 |
from that in effect with \pstVerb to that in effect |
| 59 |
with \pstverb. Should not translate to the currentpoint. |
| 60 |
|
| 61 |
\pstrotate - The PostScript code that takes a number off the stack |
| 62 |
and rotates the axes properly. I.e., |
| 63 |
\pstVerb{angle \pstrotate} is used to begin rotations. |
| 64 |
|
| 65 |
\pstheader{} - The argument is a header file (e.g., .pro file). |
| 66 |
If your driver does not support such a special, then |
| 67 |
the command might just remind you to include the header |
| 68 |
when printing. You can use PSTricks without a header, |
| 69 |
in which case it does not matter how you define |
| 70 |
\pstheader. See read-me.pst for details. |
| 71 |
If you cannot change the default directory where your |
| 72 |
driver looks for header files, and you cannot write to |
| 73 |
that directory, then you include the path for your |
| 74 |
PSTricks header files. |
| 75 |
E.g., \def\pstheader#1{\special{header=~/tex/#1}}. |
| 76 |
|
| 77 |
\pstdriver - The name of the driver. |
| 78 |
|
| 79 |
|
| 80 |
%%%%%%%%% !! HOW TO MAKE A TEX FORMAT WITH PSTRICKS PRELOADED !! %%%%%%%% |
| 81 |
|
| 82 |
See your local TeX documentation for instructions on creating a TeX format. |
| 83 |
|
| 84 |
Before making the format, be sure that this configuration file is correct. |
| 85 |
It will be read only when creating the format, and not with every job. |
| 86 |
|
| 87 |
If you are not using header files, there are no more special instructions. |
| 88 |
|
| 89 |
Special instructions when using header files: |
| 90 |
|
| 91 |
- If you want to include supplementary PSTricks files (e.g., pst-node.tex), |
| 92 |
add \input commands in the customization section above. |
| 93 |
|
| 94 |
- If your definition of \pstheader is, e.g. |
| 95 |
|
| 96 |
\def\pstheader#1{\special{\header=#1}} |
| 97 |
|
| 98 |
then change it to |
| 99 |
|
| 100 |
\def\pstheader#1{% |
| 101 |
\expandafter\everyjob\expandafter{\the\everyjob |
| 102 |
\special{header=#1}}} |
| 103 |
|
| 104 |
and put your original definition in the customization section, AFTER |
| 105 |
any \input commands. E.g., the customization section might look like: |
| 106 |
|
| 107 |
\pstcustomize |
| 108 |
\input pst-node.tex |
| 109 |
\input pst-coil.tex |
| 110 |
\def\pstheader#1{\special{header=#1}} |
| 111 |
|
| 112 |
- Input pstricks.tex at the appropriate time when creating the format. |
| 113 |
E.g., when initex stops running: |
| 114 |
*\input pstricks |
| 115 |
*\dump |
| 116 |
|
| 117 |
|
| 118 |
%% |
| 119 |
%% END: pstricks.con |