| 1 |
% $Id: xyatri.mf,v 3.4 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
% |
| 3 |
% xyatri, for use with Lucida |
| 4 |
% Copyright (c) 2007 Jeremy Gibbons <[email protected]> |
| 5 |
% |
| 6 |
% This file is part of the Xy-pic package for graphs and diagrams in TeX. |
| 7 |
% Copyright (c) 1991-2011 Kristoffer H. Rose <[email protected]> |
| 8 |
% |
| 9 |
% The Xy-pic macro package is free software; you can redistribute it and/or |
| 10 |
% modify it under the terms of the GNU General Public License as published by |
| 11 |
% the Free Software Foundation; either version 2 of the License, or (at your |
| 12 |
% option) any later version. |
| 13 |
% |
| 14 |
% The Xy-pic macro package is distributed in the hope that it will be |
| 15 |
% useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 17 |
% Public License for more details. |
| 18 |
% |
| 19 |
% You should have received a copy of the GNU General Public License along |
| 20 |
% with this macro package; if not, see http://www.gnu.org/licenses/. |
| 21 |
% |
| 22 |
% As a special exception, you may use this file and all files derived |
| 23 |
% from it without restriction. This special exception was added with |
| 24 |
% version 3.7 of Xy-pic. |
| 25 |
|
| 26 |
def chartowards(expr cc,dx,dy) = |
| 27 |
beginchar(cc,0,0,0); |
| 28 |
a := angle(dx,dy); |
| 29 |
z0 = (tipo,0) rotated a; % tip of tip |
| 30 |
z1 = (-segl,0) rotated a; % center of tail |
| 31 |
z2 = (-segl,1/2 segx) rotated a; % tail ends |
| 32 |
z3 = indent [z1,z0]; % back of tip |
| 33 |
fill z2--z0--z3--cycle; |
| 34 |
penlabels(0,1,2,3); |
| 35 |
endchar |
| 36 |
enddef; |
| 37 |
|
| 38 |
def openit = openwindow currentwindow |
| 39 |
from origin to (screen_cols,screen_rows) at (-200,300) enddef; |
| 40 |
|
| 41 |
input xyd |
| 42 |
|
| 43 |
bye. |
| 44 |
|
| 45 |
% $Log: xyatri.mf,v $ |
| 46 |
% Revision 3.4 2011/03/14 20:14:00 krisrose |
| 47 |
% Preparing for release 3.8.6. |
| 48 |
% |
| 49 |
% Revision 3.3 2010/06/10 18:45:50 krisrose |
| 50 |
% Reference to GPL by URL. |
| 51 |
% |
| 52 |
% Revision 3.2 2010/04/17 14:45:48 krisrose |
| 53 |
% Generate and extract Type1 fonts. |
| 54 |
% |
| 55 |
% Revision 3.1 2010/04/17 04:19:41 krisrose |
| 56 |
% Integrated xylu tips by Jeremy Gibbons. |
| 57 |
% |
| 58 |
% based on xyatip (triangular rather than curvilinear barbs) |