% $Id: xybtri.mf,v 3.4 2011/03/14 20:14:00 krisrose Exp $ % % xybtri, for use with Lucida % Copyright (c) 2007 Jeremy Gibbons % % This file is part of the Xy-pic package for graphs and diagrams in TeX. % Copyright (c) 1991-2011 Kristoffer H. Rose % % 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: xybtri.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 xybtip (triangular rather than curvilinear barbs)