In LaTeX, I am trying to scale my skills visually for my resume. So it should be something like this:

Is there an easy way to do it?
In LaTeX, I am trying to scale my skills visually for my resume. So it should be something like this:

Is there an easy way to do it?
The \resume macro takes two arguments
EDIT: Checks implemented. Decimal numbers will throw an error in \ifnum.
Negative numbers will behave funny, but you might not use them anyway.
It is also not checked, if the number of points achieved is larger than the number of total points.
\documentclass{standalone}
\usepackage{tikz}
\newcommand\resume[2]{%
\ifnum#1>#2
$#1 > #2$
\else
\ifnum#1<0
$#1 < 0$
\else
\ifnum#2<0
$#2 < 0$
\else
\tikz{%
\ifx#20
\else
\foreach \i in {1,...,#2} {
\filldraw[black!20] (\i ex,0) circle (0.4ex);
};
\fi
\ifx#10
\else
\foreach \i in {1,...,#1} {
\filldraw[black] (\i ex,0) circle (0.4ex);
};
\fi
}
\fi
\fi
\fi
}
\begin{document}
\begin{tabular}{rl}
Much skillz & \resume{5}{10} \\
So recommendable & \resume{2}{10} \\
Wow! & \resume{10}{10} \\
10/5 & \resume{10}{5} \\
0/0 & \resume{0}{0} \\
0/5 & \resume{0}{5} \\
0/-1 & \resume{0}{-1} \\
\end{tabular}
\end{document}
tikz. – Sigur Dec 26 '13 at 14:45