summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty')
-rw-r--r--Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty39
1 files changed, 21 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty b/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty
index 1c310862ddf..fba6ac5d11e 100644
--- a/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty
+++ b/Master/texmf-dist/tex/latex/harveyballs/harveyballs.sty
@@ -13,41 +13,44 @@
%%
%% 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}
+%user variables
+\def\harveyBallsSize{0.85ex}%size of the harvey balls
+\def\harveyBallsLineWidth{0.2pt}%line width of the harvey balls
+\def\harveyBallsColor{black}
+\def\harveyBallsLineColor{black}
+
%
-\def\@harveyBallsSize{0.85ex}%size of the harvey balls
-\def\@harveyBallsLineWidth{0.2pt}%line width of the harvey balls
-%
-\DeclareRobustCommand{\harveyBallNone}[1][\@harveyBallsSize]{%
+\DeclareRobustCommand{\harveyBallNone}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
-\draw[draw=black,line width=\@harveyBallsLineWidth] (0,0) circle (#1);%
+\draw[draw=\harveyBallsLineColor,line width=\harveyBallsLineWidth] (0,0) circle (#1);%
\end{tikzpicture}%
}%
-\DeclareRobustCommand{\harveyBallQuarter}[1][\@harveyBallsSize]{%
+\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;%
+\draw[draw=\harveyBallsLineColor,line width=\harveyBallsLineWidth](0,0) circle (#1);%
+\fill[fill=\harveyBallsColor] (0,0) -- (#1,0mm) arc (0:90:#1) -- cycle;%
\end{tikzpicture}%
}%
-\DeclareRobustCommand{\harveyBallHalf}[1][\@harveyBallsSize]{%
+\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;%
+\draw[draw=\harveyBallsLineColor,line width=\harveyBallsLineWidth](0,0) circle (#1);%
+ \fill [fill=\harveyBallsColor] (0,0) -- (0mm,#1) arc (90:-90:#1) -- cycle;%
\end{tikzpicture}%
}%
-\DeclareRobustCommand{\harveyBallThreeQuarter}[1][\@harveyBallsSize]{%
+\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;%
+\draw[draw=\harveyBallsLineColor,line width=\harveyBallsLineWidth](0,0) circle (#1);%
+ \fill [fill=\harveyBallsColor] (0,0) -- (0mm,#1) arc (90:-180:#1) -- cycle;%
\end{tikzpicture}%
}%
-\DeclareRobustCommand{\harveyBallFull}[1][\@harveyBallsSize]{%
+\DeclareRobustCommand{\harveyBallFull}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
-\filldraw[fill=black,draw=black,line width=\@harveyBallsLineWidth] (0,0) circle (#1);%
+\filldraw[draw=\harveyBallsLineColor,fill=\harveyBallsColor,line width=\harveyBallsLineWidth] (0,0) circle (#1);%
\end{tikzpicture}%
}% \ No newline at end of file