| 1 |
%% xytips.tex from $Id: xytips.doc,v 3.11 2013/10/06 01:12:08 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``More Tips'' extension. |
| 4 |
%% Copyright (c) 1992-1996 Kristoffer H. Rose <[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 package is free software; you can redistribute it and/or modify |
| 10 |
%% it under the terms of the GNU General Public License as published by the |
| 11 |
%% Free Software Foundation; either version 2 of the License, or (at your |
| 12 |
%% option) any later version. |
| 13 |
%% |
| 14 |
%% The Xy-pic package is distributed in the hope that it will be useful, but |
| 15 |
%% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 16 |
%% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 17 |
%% for more details. |
| 18 |
%% |
| 19 |
%% You should have received a copy of the GNU General Public License along |
| 20 |
%% with this package; if not, see http://www.gnu.org/licenses/. |
| 21 |
%% |
| 22 |
\ifx\xyloaded\undefined \input xy \fi |
| 23 |
\xyprovide{tips}{More Tips extension}{\stripRCS$Revision: 3.11 $}% |
| 24 |
{Kristoffer H.~Rose}{[email protected]}% |
| 25 |
{IBM T.~ J.\ Watson Research Center, P.O.~Box 704, Yorktown Heights, NY 10598 (USA)} |
| 26 |
\xylet@\tip@xy=\tip@ |
| 27 |
\xylet@\atip@xy=\atip@ |
| 28 |
\xylet@\btip@xy=\btip@ |
| 29 |
\xylet@\Tip@xy=\Tip@ |
| 30 |
\xylet@\Ttip@xy=\Ttip@ |
| 31 |
\xylet@\tipjot@xy=\tipjot@ |
| 32 |
\xyfont@\xy@@atfont=xycmat10 |
| 33 |
\xyfont@\xy@@btfont=xycmbt10 |
| 34 |
\xyfont@\xy@@alfont=xyluat10 |
| 35 |
\xyfont@\xy@@blfont=xylubt10 |
| 36 |
\xydef@\tipfamily@@{cm} |
| 37 |
\xydef@\tipsize@@{10} |
| 38 |
\xydef@\SelectTips#1#2{% |
| 39 |
\DN@{#1}\ifx\next@\empty\else \def\tipfamily@@{#1}\fi |
| 40 |
\DN@{#2}\ifx\next@\empty\else \def\tipsize@@{#2}\fi |
| 41 |
\csname tipfamily \tipfamily@@\endcsname \ignorespaces} |
| 42 |
\xydefcsname@{tipfamily cm}{\loadtipfonts@ |
| 43 |
\let\tip@=\tip@cm \let\atip@=\atip@cm \let\btip@=\btip@cm |
| 44 |
\let\Tip@=\Tip@xy \let\Ttip@=\Ttip@xy \def\tipjot@{.2em}} |
| 45 |
\xydef@\loadtipfonts@{\edef\next##1##2{##1=xy\tipfamily@@##2\tipsize@@}% |
| 46 |
\next{\font\xy@@atfont}{at} |
| 47 |
\next{\font\xy@@btfont}{bt} |
| 48 |
} |
| 49 |
\xydef@\tip@cm{\activatetips@ \tip@x\tip@@} |
| 50 |
\xydef@\atip@cm{\activatetips@ \tip@x\atip@@} |
| 51 |
\xydef@\btip@cm{\activatetips@ \tip@x\btip@@} |
| 52 |
\xydef@\activatetips@{\let\xyatipfont=\xy@@atfont \let\xybtipfont=\xy@@btfont} |
| 53 |
\xydefcsname@{tipfamily eu}{\loadtipfonts@ |
| 54 |
\let\tip@=\tip@cm \let\atip@=\atip@cm \let\btip@=\btip@cm |
| 55 |
\let\Tip@=\Tip@eu \let\Ttip@=\Ttip@eu \def\tipjot@{.15em}} |
| 56 |
\xydef@\Tip@eu{\kern1.5pt \vrule height1.5pt depth1.5pt width\z@ |
| 57 |
\Tip@@eu \kern1.5pt \egroup |
| 58 |
\U@c=1.5pt \D@c=1.5pt \L@c=1.5pt \R@c=1.5pt \Edge@c={\circleEdge}% |
| 59 |
\Invisible@false \Hidden@false \def\Leftness@{.5}\def\Upness@{.5}% |
| 60 |
\def\Drop@@{\styledboxz@}\def\Connect@@{\straight@{\dottedSpread@\jot}}} |
| 61 |
\xydef@\Tip@@eu{\count@=\DirectionChar |
| 62 |
\advance\count@-10 \ifnum\count@<\z@ \advance\count@128 \fi |
| 63 |
\xyatipfont\char\count@ |
| 64 |
\advance\count@ 20 \ifnum127<\count@ \advance\count@-128 \fi |
| 65 |
\xybtipfont\char\count@} |
| 66 |
\xydef@\Ttip@eu{\kern2.4pt \vrule height2.4pt depth2.4pt width\z@ |
| 67 |
\Ttip@@eu \kern2.4pt \egroup |
| 68 |
\U@c=2.4pt \D@c=2.4pt \L@c=2.4pt \R@c=2.4pt \Edge@c={\circleEdge}% |
| 69 |
\Invisible@false \Hidden@false |
| 70 |
\def\Leftness@{.5}\def\Upness@{.5}% |
| 71 |
\def\Drop@@{\styledboxz@}\def\Connect@@{\straight@{\dottedSpread@\jot}}} |
| 72 |
\xydef@\Ttip@@eu{% |
| 73 |
\setboxz@h\bgroup\reverseDirection@\line@ \wdz@=\z@ \ht\z@=\z@ \dp\z@=\z@ |
| 74 |
\kern-\L@c \boxz@ \kern\L@c \Tip@@eu} |
| 75 |
\xydefcsname@{tipfamily lu}{\loadtipfonts@ |
| 76 |
\let\tip@=\tip@cm \let\atip@=\atip@cm \let\btip@=\btip@cm |
| 77 |
\let\Tip@=\Tip@xy \let\Ttip@=\Ttip@xy \def\tipjot@{.2em}} |
| 78 |
\xydef@\UseTips{\csname tipfamily \tipfamily@@\endcsname} |
| 79 |
\xydef@\NoTips{\let\tip@=\tip@xy \let\atip@=\atip@xy \let\btip@=\btip@xy |
| 80 |
\let\Tip@=\Tip@xy \let\Ttip@=\Ttip@xy \let\tipjot@=\tipjot@xy} |
| 81 |
\xyendinput |