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