| 1 |
% $Id: vtex.cfg 4 2020-06-09 08:32:19Z herbert $ |
| 2 |
%% BEGIN: pstricks.con (for VTeX) |
| 3 |
%% |
| 4 |
%% Configuration file for PSTricks 97 |
| 5 |
%% |
| 6 |
%% Version 97 patch 5 2003-04-29 |
| 7 |
%% |
| 8 |
%% For use with VTeX PostScript driver v 6.61+ |
| 9 |
%% [MV, MK, special thanks to Denis Girou for help] |
| 10 |
%% |
| 11 |
%% Requires vtex.def 7.46 or newer, 10-14-01 |
| 12 |
%% |
| 13 |
%% For support and possible updates, check |
| 14 |
%% http://www.micropress-inc.com |
| 15 |
%% |
| 16 |
|
| 17 |
\def\pstdriver{VTeX} |
| 18 |
{\catcode`\"=12\gdef |
| 19 |
\pstverb#1{\special{pS*GS @beginspecial @setspecial #1 @endspecial GR }} |
| 20 |
}% |
| 21 |
\def\pstunit{1bp}% |
| 22 |
\def\pstVerb#1{\special{pS: #1}}% |
| 23 |
\def\pstverbscale{SDict begin normalscale end} |
| 24 |
\def\pstnodescale{}% not needed for pdftex |
| 25 |
\ifx\textsuperscript\@undefined |
| 26 |
\def\pstheader#1{\special{header=#1}} |
| 27 |
\else |
| 28 |
% D.G. modification begin - Apr. 29, 2003 - From Michael Vulis |
| 29 |
% \ifx\Gin@PS@file@header\@undefined |
| 30 |
% \def\pstheader#1{\AtBeginDvi{\special{header=#1}}} |
| 31 |
% \else |
| 32 |
% \let\pstheader\Gin@PS@file@header |
| 33 |
% \fi |
| 34 |
\def\pstheader#1{\AtBeginDvi{\immediate\special{header=#1}}} |
| 35 |
% D.G. modification end |
| 36 |
\fi |
| 37 |
\def\pstrotate{CP CP translate 3 -1 roll neg rotate \tx@NET} |
| 38 |
%% |
| 39 |
%% ****************** END VTeX ***************************** |
| 40 |
|
| 41 |
%%%%%%%%%%%%%%%%%%% !! CUSTOMIZATION STUFF GOES HERE: !! %%%%%%%%%%%%%%%%%% |
| 42 |
%% If you want to include your own customizations to pstricks.tex, then |
| 43 |
%% uncomment the \pstcustomize command, and include your modifications |
| 44 |
%% after \pstcustomize. These will be read in after pstricks.tex. |
| 45 |
% |
| 46 |
% Some customization needed for VTeX since the coordinate system |
| 47 |
% is different. |
| 48 |
\newif\if@colorstack |
| 49 |
\ifnum\OpMode>-1 |
| 50 |
\ifnum\OpMode<3 |
| 51 |
\@colorstacktrue |
| 52 |
% D.G. modification begin - Nov. 17, 1999 |
| 53 |
\let\vtex@pspicture=\pspicture |
| 54 |
\def\pspicture{\special{G(}\@colorstackfalse\vtex@pspicture}% |
| 55 |
\let\vtex@endpspicture=\endpspicture |
| 56 |
\def\endpspicture{\vtex@endpspicture\@colorstacktrue\special{G)}% |
| 57 |
} |
| 58 |
% D.G. modification end |
| 59 |
\fi |
| 60 |
\fi |
| 61 |
|
| 62 |
\pstcustomize |
| 63 |
\def\tx@RotBegin{neg RotBegin } |
| 64 |
\def\pst@rotlist{mark RAngle /a ED cleartomark a } |
| 65 |
% D.G. modification begin - Oct. 6, 1999 |
| 66 |
\def\tx@Rot{neg Rot } |
| 67 |
% D.G. modification end |
| 68 |
\def\psfs@solid{\pst@fill{\pst@usecolor\psfillcolor fill }} |
| 69 |
\def\psfs@eofill{\pst@fill{\pst@usecolor\psfillcolor eofill}} |
| 70 |
|
| 71 |
\endinput |
| 72 |
|
| 73 |
\iffalse |
| 74 |
%% |
| 75 |
%%%%%%%%%%%%%%%%%%% !! GENERAL INSTRUCTIONS !! %%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 76 |
|
| 77 |
Because there are no standards for dvi-to-PS driver \special's, |
| 78 |
some driver-dependent commands must be defined in this file. |
| 79 |
|
| 80 |
Possibly correct definitions for some dvi drivers are given below. |
| 81 |
Copy the section for the driver you want to use to the indicated place |
| 82 |
near the beginning of the file, replacing any other definitions you |
| 83 |
might find there. |
| 84 |
|
| 85 |
When changing drivers, you may need to remake the header file. |
| 86 |
|
| 87 |
See the PSTricks read-me file for further installation instructions. |
| 88 |
|
| 89 |
Please report good and bad experiences with dvi-to-PS drivers, |
| 90 |
along with the definitions of these commands that worked |
| 91 |
for you, to [email protected]. Thanks. |
| 92 |
|
| 93 |
|
| 94 |
%%%%%%%%%%%%%%%% DESCRIPTION OF CONFIGURATION DEFINITIONS %%%%%%%%%%%%%%% |
| 95 |
|
| 96 |
Here are the commands that must be defined in this file: |
| 97 |
|
| 98 |
\pstverb{} - The argument is included as verbatim PostScript, |
| 99 |
grouped by save and restore. The coordinate system |
| 100 |
should be square, not rotated, and with the origin |
| 101 |
at TeX's currentpoint. |
| 102 |
|
| 103 |
\pstVerb{} - The argument is included as verbatim PostScript, not |
| 104 |
grouped by (g)save and (g)restore. The currentpoint |
| 105 |
should be TeX's currentpoint. |
| 106 |
|
| 107 |
\pstunit - The units used by driver for graphics included with |
| 108 |
\pstverb. Probably 1bp or 1sp. |
| 109 |
|
| 110 |
\pstverbscale - The PostScript code that scales the coordinate system |
| 111 |
from that in effect with \pstVerb to that in effect |
| 112 |
with \pstverb. Should not translate to the currentpoint. |
| 113 |
|
| 114 |
\pstrotate - The PostScript code that takes a number off the stack |
| 115 |
and rotates the axes properly. I.e., |
| 116 |
\pstVerb{angle \pstrotate} is used to begin rotations. |
| 117 |
|
| 118 |
\pstheader{} - The argument is a header file (e.g., .pro file). |
| 119 |
If your driver does not support such a special, then |
| 120 |
the command might just remind you to include the header |
| 121 |
when printing. You can use PSTricks without a header, |
| 122 |
in which case it does not matter how you define |
| 123 |
\pstheader. See read-me.pst for details. |
| 124 |
If you cannot change the default directory where your |
| 125 |
driver looks for header files, and you cannot write to |
| 126 |
that directory, then you include the path for your |
| 127 |
PSTricks header files. |
| 128 |
E.g., \def\pstheader#1{\special{header=~/tex/#1}}. |
| 129 |
|
| 130 |
\pstdriver - The name of the driver. |
| 131 |
|
| 132 |
|
| 133 |
%%%%%%%%% !! HOW TO MAKE A TEX FORMAT WITH PSTRICKS PRELOADED !! %%%%%%%% |
| 134 |
|
| 135 |
See your local TeX documentation for instructions on creating a TeX format. |
| 136 |
|
| 137 |
Before making the format, be sure that this configuration file is correct. |
| 138 |
It will be read only when creating the format, and not with every job. |
| 139 |
|
| 140 |
If you are not using header files, there are no more special instructions. |
| 141 |
|
| 142 |
Special instructions when using header files: |
| 143 |
|
| 144 |
- If you want to include supplementary PSTricks files (e.g., pst-node.tex), |
| 145 |
add \input commands in the customization section above. |
| 146 |
|
| 147 |
- If your definition of \pstheader is, e.g. |
| 148 |
|
| 149 |
\def\pstheader#1{\special{\header=#1}} |
| 150 |
|
| 151 |
then change it to |
| 152 |
|
| 153 |
\def\pstheader#1{% |
| 154 |
\expandafter\everyjob\expandafter{\the\everyjob |
| 155 |
\special{header=#1}}} |
| 156 |
|
| 157 |
and put your original definition in the customization section, AFTER |
| 158 |
any \input commands. E.g., the customization section might look like: |
| 159 |
|
| 160 |
\pstcustomize |
| 161 |
\input pst-node.tex |
| 162 |
\input pst-coil.tex |
| 163 |
\def\pstheader#1{\special{header=#1}} |
| 164 |
|
| 165 |
- Input pstricks.tex at the appropriate time when creating the format. |
| 166 |
E.g., when initex stops running: |
| 167 |
*\input pstricks |
| 168 |
*\dump |
| 169 |
\fi |
| 170 |
|
| 171 |
%% |
| 172 |
%% END: pstricks.con |