I'm trying to draw a star in text brackets using tikz and I can't figure out how to remove the large white space to the left and right. The code is:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\newcommand{\yellowstar}{
\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.5, draw,inner sep=1.3pt,anchor=outer point 3]
\begin{tikzpicture}[baseline]
\draw (0,0) node[name=star,scorestars,fill=yellow] {};
\end{tikzpicture}
}
\begin{document}
Hello (\yellowstar).
\end{document}
The code is based on this: Drawing stars/similar with Tikz
This suggestion of adding a %-sign after "(" and putting \yellowstar on the next line doesn't work: Reduce white space around TikZ picture?
%) at the end of lines? – Werner Sep 01 '15 at 06:25