summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/texdraw/README
blob: 91cced49d63fb75a5e4421ccbbbc14f010146e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
This file describes the contents of the distribution for TeXdraw

$Id: README,v 2.0 1995/12/18 texdraw-V2R0 $

The TeXdraw package consists of a set of macro definitions for the TeX
typesetting program.  These macros allow the user to produce PostScript
drawings from within TeX and LaTeX.

The main benefits of TeXdraw accrue from the ability to produce drawings
from <within> TeX, using TeX fonts for labelling the drawing.

Basic drawing features include:
(1) moves, lines and arrow vectors
    - selectable gray level, line width pattern, arrowhead size and type
(2) circles, ellipses, arcs, and Bezier curves
(3) general fill command to fill a region defined by lines and Bezier
    curves (selectable gray level)
(4) TeX text, including mathematics, can be positioned and superimposed
    on the drawing

TeXdraw has been designed to be extensible.  Drawing "segments" are
relocatable, self-contained units.  Using a combination of the begingroup/
endgroup mechanism in TeX and the gsave/grestore mechanism in PostScript,
drawing segments allow for local changes to the scaling and line
parameters.  Using TeX's macro definition capability, new drawing commands
can be constructed from drawing segments.

The extensibility features include,
(1) relocatable drawing segments to keep changes local
(2) local segment scaling
(3) saving and restoring positions using symbolic positions

The compressed file texdraw-V2R0.tar.Z is available for anonymous ftp on
ftp.TSP.EE.McGill.CA in directory /pub/tsp/texdraw.

=====
Peter Kabal                            kabal@TSP.EE.McGill.CA
Department of Electrical Engineering
McGill University
Montreal, Quebec


=====
The distribution consists of the TeXdraw macros themselves, files with
auxiliary macros, and the TeXdraw manual (texinfo format, also as a
PostScript file).

Distribution Contents:
----------------------

Miscellaneous:
  README              - this file
  ChangeLog           - log of changes to TeXdraw

TeXdraw macros (main directory):
  texdraw.tex         - TeXdraw macros for TeX
  texdraw.sty         - LaTeX2e interface to TeXdraw
  txdtools.tex        - TeXdraw toolbox for extending TeXdraw
  txdps.tex           - TeXdraw macros for accessing PostScript macros
  blockdiagram.tex    - Block diagram macros for TeXdraw
  txdexamp.tex        - plain TeX code for the examples in the manual
  txdexamp.latex      - LaTeX2e code for the examples in the manual

compacted TeXdraw macros (directory compact/):
  texdraw.tex
  txdtools.tex
  txdps.tex

TeXdraw documentation (directory manual/):
  texdraw.ps          - PostScript version of the manual
  texdraw.texi        - Texinfo source file for the TeXdraw manual
  texdraw.aux         - cross-references (generated by an earlier run, used
                        as input when TeX'ing the manual)
  texdraw.cps         - concept index (generated by an earlier run, used as
                        input when TeX'ing the manual)
  texdraw.fns         - sorted functon index (generated by an earlier run,
                        used as input when TeX'ing the manual).

GNU Texinfo utilities (directory manual/):
  texindex.c          - Source for the texindex program
  getopt.h            - Include file for texindex.c
  texinfo.tex         - Texinfo macros used to make manuals and on-line
                        documentation
  texi2dvi            - Script to run TeX and texindex

===============================================
The following notes on setup are for Unix systems.

Initial Tests:

(1) Print the PostScript version of the manual ("texdraw.ps") to see the
    capabilities of TeXdraw.
(2) Try TeX'ing the examples file.  Assuming plain TeX is invoked with the
    command "tex" and LaTeX2e is invoked with the command "latex"
    % tex txdexamp
    ... or ...
    % latex texdexamp.latex
(3) Printing the examples using the appropriate printer driver program (only
    dvips can be used with the plain TeX version of the examples),
    % dvips txdexamp

=====
Permanent Setup:

Compact source files:
In the subdirectory "compact", there are versions of the macro files
with most comments and white space removed.

(1) Private copy of TeXdraw.
    Move the TeXdraw sources files ("texdraw.sty", texdraw.tex",
    "txdtools.tex" and "txdps.tex") to an appropriate directory.  If you are
    keeping private versions of the files, consider using the directory
    ~mylogin/tex . With many versions of TeX, including this directory in
    the TeX input path variable (the environment variable TEXINPUTS) allows
    you to refer to the files in TeX without specifying the full pathname.
    With the C-cshell, a line in the ".login" file sets the environment
    variable TEXINPUTS
    % setenv TEXINPUTS ".:$HOME/tex:".
    The last part of the path string should terminate with a colon to have
    the default directory of TeX files available.
(2) Public copy of TeXdraw.
    Move the TeXdraw source files ("texdraw.sty", "texdraw.tex",
    "txdtools.tex" and "txdps.tex") to a directory that TeX searches by
    default.  This might be a directory such as "/usr/local/lib/tex/inputs".
    Newer versions of TeX allow subdirectory searching - in that case, use
    the directory "/usr/local/lib/tex/inputs/TeXdraw".

=====
The following instructions pertain to installing the ability to use the
Texinfo system for any texinfo type manual.
(1) The GNU program "texindex" should built using
    % cc texindex.c -o texindex
    Move the program to an appropriate place such as "/usr/local/bin".
(2) The GNU script "texi2dvi" runs TeX and texindex for a texinfo file.
    Move this script to an appropriate place such as "/usr/local/bin".
(3) The GNU "texinfo.tex" file should go into the public directories
    searched by TeX, for instance "/usr/local/lib/tex/inputs", or
    "/usr/local/lib/tex/inputs/texinfo".

=====
Creating a TeXdraw manual from the sources:
(1) Make sure "texdraw.tex", "txdtools.tex" and "texinfo.tex" will be found
    by TeX.
(2) To create the manual, you have to TeX the manual twice - the second
    time to access the sorted indices and the cross-references.  The
    program "texindex" sorts the indices.  (The distribution includes pre-
    sorted indices that can be used).  The three steps can be replaced by
    an invokation of the script "texi2dvi".
    % tex texdraw.texinfo
    % texindex texdraw
    % tex texdraw.texinfo
(3) If you have the printer driver program dvips, a PostScript version of the
    manual is created as follows.
    % dvips texdraw -o texdraw.ps

=====
On-line info manual:

Consider building an info version of the manual.  For this you need the
GNU program "makeinfo" (available by anonymous ftp from prep.ai.mit.edu
as part of texinfo-XXX.tar.gz).  After running "makeinfo texdraw", the top
level info directory file "dir" in /usr/local/emacs/info needs to be
updated to include a menu entry for TeXdraw.  This entry is of the form
* TeXdraw: (texdraw).
		TeXdraw is a collection of macros that allow drawings to be
                created from within TeX.
Also the files produced by makeinfo (texdraw, texdraw-1, texdraw-2, and
texdraw-3) need to be moved there.  The info file can be read from within
the emacs editor, or with the info reader program "info" (also part of the
texinfo distribution).