-
-
Save logarytm/8508be66c0c13dcde962f3f6758eee45 to your computer and use it in GitHub Desktop.
star rating in LaTeX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newcommand\rating[1]{% | |
\let\N=\pgfmathresult% | |
\foreach \n in {1,...,#1}{% | |
\FilledStar% | |
}% | |
\foreach \n in {1,...,\N}{% | |
\Star% | |
}% | |
} | |
\rating{3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment