Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

Skills

Is there an easy way to do it?

share|improve this question
    
Do you want to do this figure in LaTeX? Try tikz. –  Sigur Dec 26 '13 at 14:45
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  Henri Menke Dec 26 '13 at 15:14
    
@HenriMenke Thanks for your answer and comment. I hope my format here wasn't too bad. I will check and try your answer as soon as I can. Thanks. –  user3053320 Dec 26 '13 at 19:34
    
@user3053320 I'm glad you like my answer. If it was helpful consider upvoting an marking it as accepted answer by clicking the green checkmark next to the score. A suggestion: Do us a favour and change your username to something more telling than "user3053320". –  Henri Menke Dec 27 '13 at 0:36

1 Answer 1

Remarks

The \resume macro takes two arguments

  1. The number of points "achieved"
  2. Total number of points

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.

Implementation

\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}

Output

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.