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
|
% =====================================
% FAKEGO.STY
% By Scott Pakin <scott+clsl@pakin.org>
% =====================================
%
% The go package stomps all over the LaTeX namespace. Rather than
% individually rename each of the fairly few user-visible symbols that
% go provides, we provide this package to define only those symbols we
% care to typeset.
% The original package lacks the following two lines so we fabricate
% them ourselves from the header comments.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fakego}[1991/11/01 v0.05 faked go package]
% ^^
% made-up day
% Define all of the go package's fonts as shapes within a single font family.
\DeclareFontFamily{U}{gofont}{}
\DeclareFontShape{U}{gofont}{m}{n}{<-> go1whi10}{}
\DeclareFontShape{U}{gofont}{b}{n}{<-> go1bla10}{}
\DeclareFontShape{U}{gofont}{m}{sl}{<-> go2whi10}{}
\DeclareFontShape{U}{gofont}{b}{sl}{<-> go2bla10}{}
\DeclareFontShape{U}{gofont}{m}{it}{<-> go10}{}
% Typeset a number 1-253 in a black circle.
\DeclareRobustCommand{\GOblack}[1]{{%
\@tempcnta=#1\relax
\ifnum\@tempcnta<128
\usefont{U}{gofont}{b}{n}%
\else
\advance\@tempcnta by -128
\usefont{U}{gofont}{b}{sl}%
\fi
\char\@tempcnta
}}
% Typeset a number 1-253 in a white circle.
\DeclareRobustCommand{\GOwhite}[1]{{%
\@tempcnta=#1\relax
\ifnum\@tempcnta<128
\usefont{U}{gofont}{m}{n}%
\else
\advance\@tempcnta by -128
\usefont{U}{gofont}{m}{sl}%
\fi
\char\@tempcnta
}}
% Define all of the remaining symbols.
\DeclareRobustCommand{\GOhoshi}{{\usefont{U}{gofont}{m}{it}\char0}}
\DeclareRobustCommand{\GOempty}{{\usefont{U}{gofont}{m}{it}\char1}}
\DeclareRobustCommand{\GOlftborder}{{\usefont{U}{gofont}{m}{it}\char2}}
\DeclareRobustCommand{\GOrtborder}{{\usefont{U}{gofont}{m}{it}\char3}}
\DeclareRobustCommand{\GOtopborder}{{\usefont{U}{gofont}{m}{it}\char4}}
\DeclareRobustCommand{\GObotborder}{{\usefont{U}{gofont}{m}{it}\char5}}
\DeclareRobustCommand{\GOlfttopcorner}{{\usefont{U}{gofont}{m}{it}\char6}}
\DeclareRobustCommand{\GOrttopcorner}{{\usefont{U}{gofont}{m}{it}\char7}}
\DeclareRobustCommand{\GOlftbotcorner}{{\usefont{U}{gofont}{m}{it}\char8}}
\DeclareRobustCommand{\GOrtbotcorner}{{\usefont{U}{gofont}{m}{it}\char9}}
\DeclareRobustCommand{\GOsquare}{{\usefont{U}{gofont}{m}{sl}\char126}}
\DeclareRobustCommand{\GOtriangle}{{\usefont{U}{gofont}{m}{sl}\char127}}
\endinput
|