I am trying to create a simple circle with text. The text color is the same color as the fill.
I'd like the text color of the node to be black.
I am trying to use \fill
alone rather than \fill
and draw so I can get them in one line.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am trying to create a simple circle with text. The text color is the same color as the fill.
I'd like the text color of the node to be black.
I am trying to use \fill
alone rather than \fill
and draw so I can get them in one line.
text=...
your color.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[fill=green, text=red, circle, draw=black] {With node};
\draw[fill=cyan] (3,0) circle (1cm) node[text=blue] {With draw};
\end{tikzpicture}
\end{document}