| 1 |
% $Id: textures.cfg 4 2020-06-09 08:32:19Z herbert $ |
| 2 |
%% BEGIN pstricks.con (for Textures 1.7 and 1.8 driver) |
| 3 |
%% |
| 4 |
%% Configuration file for PSTricks 97: must be renamed `pstricks.con' |
| 5 |
%% |
| 6 |
%% Version 97 (1997/03/01) |
| 7 |
%% |
| 8 |
%% For use with Textures, v1.7 and v1.8. |
| 9 |
|
| 10 |
\def\pstdriver{Textures-V1.7} |
| 11 |
%\def\pstdriver{Textures-V1.8} |
| 12 |
\def\pstunit{1bp} |
| 13 |
\def\pstverb#1{\special{postscript #1 }} |
| 14 |
\def\pstVerb#1{\special{rawpostscript #1}} |
| 15 |
\def\pstverbscale{Mag 72.27 72 div mul dup neg scale} |
| 16 |
\def\pstnodescale{}% not needed for pdftex |
| 17 |
\def\pstrotate{CP CP translate 3 -1 roll neg rotate \tx@NET} |
| 18 |
\def\pstheader#1{\special{prePostScriptfile #1}}% |
| 19 |
|
| 20 |
\pstcustomize |
| 21 |
|
| 22 |
\special{prePostScript |
| 23 |
tx@Dict begin /sps {moveto /Mag ED pop tx@Dict begin} def /eps {} def end} |
| 24 |
\def\pst@Verb#1{% |
| 25 |
\special{rawpostscript tx@Dict begin}% |
| 26 |
\special{postscript #1}% |
| 27 |
\special{rawpostscript end}} |
| 28 |
|
| 29 |
\endinput |
| 30 |
|
| 31 |
%% |
| 32 |
%%%%%%%%%%%%%%%%%%% !! GENERAL INSTRUCTIONS !! %%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 33 |
|
| 34 |
Because there are no standards for dvi-to-PS driver \special's, |
| 35 |
some driver-dependent commands must be defined in this file. |
| 36 |
|
| 37 |
Possibly correct definitions for some dvi drivers are given below. |
| 38 |
Copy the section for the driver you want to use to the indicated place |
| 39 |
near the beginning of the file, replacing any other definitions you |
| 40 |
might find there. |
| 41 |
|
| 42 |
When changing drivers, you may need to remake the header file. |
| 43 |
|
| 44 |
See the PSTricks read-me file for further installation instructions. |
| 45 |
|
| 46 |
Please report good and bad experiences with dvi-to-PS drivers, |
| 47 |
along with the definitions of these commands that worked |
| 48 |
for you, to [email protected]. Thanks. |
| 49 |
|
| 50 |
|
| 51 |
%%%%%%%%%%%%%%%% DESCRIPTION OF CONFIGURATION DEFINITIONS %%%%%%%%%%%%%%% |
| 52 |
|
| 53 |
Here are the commands that must be defined in this file: |
| 54 |
|
| 55 |
\pstverb{} - The argument is included as verbatim PostScript, |
| 56 |
grouped by save and restore. The coordinate system |
| 57 |
should be square, not rotated, and with the origin |
| 58 |
at TeX's currentpoint. |
| 59 |
|
| 60 |
\pstVerb{} - The argument is included as verbatim PostScript, not |
| 61 |
grouped by (g)save and (g)restore. The currentpoint |
| 62 |
should be TeX's currentpoint. |
| 63 |
|
| 64 |
\pstunit - The units used by driver for graphics included with |
| 65 |
\pstverb. Probably 1bp or 1sp. |
| 66 |
|
| 67 |
\pstverbscale - The PostScript code that scales the coordinate system |
| 68 |
from that in effect with \pstVerb to that in effect |
| 69 |
with \pstverb. Should not translate to the currentpoint. |
| 70 |
|
| 71 |
\pstrotate - The PostScript code that takes a number off the stack |
| 72 |
and rotates the axes properly. I.e., |
| 73 |
\pstVerb{angle \pstrotate} is used to begin rotations. |
| 74 |
|
| 75 |
\pstheader{} - The argument is a header file (e.g., .pro file). |
| 76 |
If your driver does not support such a special, then |
| 77 |
the command might just remind you to include the header |
| 78 |
when printing. You can use PSTricks without a header, |
| 79 |
in which case it does not matter how you define |
| 80 |
\pstheader. See read-me.pst for details. |
| 81 |
If you cannot change the default directory where your |
| 82 |
driver looks for header files, and you cannot write to |
| 83 |
that directory, then you include the path for your |
| 84 |
PSTricks header files. |
| 85 |
E.g., \def\pstheader#1{\special{header=~/tex/#1}}. |
| 86 |
|
| 87 |
\pstdriver - The name of the driver. |
| 88 |
|
| 89 |
|
| 90 |
%%%%%%%%% !! HOW TO MAKE A TEX FORMAT WITH PSTRICKS PRELOADED !! %%%%%%%% |
| 91 |
|
| 92 |
See your local TeX documentation for instructions on creating a TeX format. |
| 93 |
|
| 94 |
Before making the format, be sure that this configuration file is correct. |
| 95 |
It will be read only when creating the format, and not with every job. |
| 96 |
|
| 97 |
If you are not using header files, there are no more special instructions. |
| 98 |
|
| 99 |
Special instructions when using header files: |
| 100 |
|
| 101 |
- If you want to include supplementary PSTricks files (e.g., pst-node.tex), |
| 102 |
add \input commands in the customization section above. |
| 103 |
|
| 104 |
- If your definition of \pstheader is, e.g. |
| 105 |
|
| 106 |
\def\pstheader#1{\special{\header=#1}} |
| 107 |
|
| 108 |
then change it to |
| 109 |
|
| 110 |
\def\pstheader#1{% |
| 111 |
\expandafter\everyjob\expandafter{\the\everyjob |
| 112 |
\special{header=#1}}} |
| 113 |
|
| 114 |
and put your original definition in the customization section, AFTER |
| 115 |
any \input commands. E.g., the customization section might look like: |
| 116 |
|
| 117 |
\pstcustomize |
| 118 |
\input pst-node.tex |
| 119 |
\input pst-coil.tex |
| 120 |
\def\pstheader#1{\special{header=#1}} |
| 121 |
|
| 122 |
- Input pstricks.tex at the appropriate time when creating the format. |
| 123 |
E.g., when initex stops running: |
| 124 |
*\input pstricks |
| 125 |
*\dump |
| 126 |
|
| 127 |
|
| 128 |
%% |
| 129 |
%% END: pstricks.con |