diff options
author | Karl Berry <karl@freefriends.org> | 2013-10-23 22:36:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-10-23 22:36:26 +0000 |
commit | f2774ca5d48f5ad0f49343181ea3a9677d99d90c (patch) | |
tree | 4068e056646b78bdb9b3709da47503f6816c54b9 /Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty | |
parent | be557c9e5b206f9bb931da8bd1ea4fd4fe2e1311 (diff) |
harveyballs (23oct13)
git-svn-id: svn://tug.org/texlive/trunk@31980 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty b/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty new file mode 100644 index 00000000000..1c310862ddf --- /dev/null +++ b/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty @@ -0,0 +1,53 @@ +%% Harvey Balls for LaTeX +%% Copyright (C) 2013 Sascha Roth, Technical University Munich +%% +%% This program 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 3 of the License, or +%% (at your option) any later version. +%% +%% This program 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 program. If not, see <http://www.gnu.org/licenses/>. + +\NeedsTeXFormat{LaTeX2e}[2001/06/01] +\ProvidesPackage{harveyballs}[2013/10/22 Harvey Balls for LaTeX by Sascha Roth, Technical University Munich, sascha.roth@mytum.de] +\RequirePackage{tikz} +% +\def\@harveyBallsSize{0.85ex}%size of the harvey balls +\def\@harveyBallsLineWidth{0.2pt}%line width of the harvey balls +% +\DeclareRobustCommand{\harveyBallNone}[1][\@harveyBallsSize]{% +\begin{tikzpicture}% +\draw[draw=black,line width=\@harveyBallsLineWidth] (0,0) circle (#1);% +\end{tikzpicture}% +}% +\DeclareRobustCommand{\harveyBallQuarter}[1][\@harveyBallsSize]{% +\begin{tikzpicture}% +\draw[line width=\@harveyBallsLineWidth](0,0) circle (#1);% +\fill[fill=black] (0,0) -- (#1,0mm) arc (0:90:#1) -- cycle;% +\end{tikzpicture}% +}% +\DeclareRobustCommand{\harveyBallHalf}[1][\@harveyBallsSize]{% +\begin{tikzpicture}% +\draw[line width=\@harveyBallsLineWidth](0,0) circle (#1);% +\fill[fill=black] (0,0) -- (#1,0mm) arc (0:90:#1) -- cycle;% +\fill[fill=black] (0,0) -- (#1,0mm) arc (0:-90:#1) -- cycle;% +\end{tikzpicture}% +}% +\DeclareRobustCommand{\harveyBallThreeQuarter}[1][\@harveyBallsSize]{% +\begin{tikzpicture}% +\draw[line width=\@harveyBallsLineWidth](0,0) circle (#1);% +\fill[fill=black] (0,0) -- (#1,0mm) arc (0:90:#1) -- cycle;% +\fill[fill=black] (0,0) -- (#1,0mm) arc (0:-180:#1) -- cycle;% +\end{tikzpicture}% +}% +\DeclareRobustCommand{\harveyBallFull}[1][\@harveyBallsSize]{% +\begin{tikzpicture}% +\filldraw[fill=black,draw=black,line width=\@harveyBallsLineWidth] (0,0) circle (#1);% +\end{tikzpicture}% +}%
\ No newline at end of file |