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
|
% $Id: xyatri.mf,v 3.4 2011/03/14 20:14:00 krisrose Exp $
%
% xyatri, for use with Lucida
% Copyright (c) 2007 Jeremy Gibbons <jeremy.gibbons@comlab.ox.ac.uk>
%
% This file is part of the Xy-pic package for graphs and diagrams in TeX.
% Copyright (c) 1991-2011 Kristoffer H. Rose <krisrose@tug.org>
%
% The Xy-pic macro package is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or (at your
% option) any later version.
%
% The Xy-pic macro package is distributed in the hope that it will be
% useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
% Public License for more details.
%
% You should have received a copy of the GNU General Public License along
% with this macro package; if not, see http://www.gnu.org/licenses/.
%
% As a special exception, you may use this file and all files derived
% from it without restriction. This special exception was added with
% version 3.7 of Xy-pic.
def chartowards(expr cc,dx,dy) =
beginchar(cc,0,0,0);
a := angle(dx,dy);
z0 = (tipo,0) rotated a; % tip of tip
z1 = (-segl,0) rotated a; % center of tail
z2 = (-segl,1/2 segx) rotated a; % tail ends
z3 = indent [z1,z0]; % back of tip
fill z2--z0--z3--cycle;
penlabels(0,1,2,3);
endchar
enddef;
def openit = openwindow currentwindow
from origin to (screen_cols,screen_rows) at (-200,300) enddef;
input xyd
bye.
% $Log: xyatri.mf,v $
% Revision 3.4 2011/03/14 20:14:00 krisrose
% Preparing for release 3.8.6.
%
% Revision 3.3 2010/06/10 18:45:50 krisrose
% Reference to GPL by URL.
%
% Revision 3.2 2010/04/17 14:45:48 krisrose
% Generate and extract Type1 fonts.
%
% Revision 3.1 2010/04/17 04:19:41 krisrose
% Integrated xylu tips by Jeremy Gibbons.
%
% based on xyatip (triangular rather than curvilinear barbs)
|