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.

I want to draw a circle of 4mm with minus sign inside it. I have set the m style:

\tikzstyle{m}=[circle, thin, draw=red, fill=red, minimum size=4mm]

however the minus sign extends the circle. I want the sign to almost fill the circle. I tried to change the line to be:

\tikzstyle{m}=[circle, thin, draw=red, fill=red, size=4mm]

but it didn't work.

How can I set the circle size to be fixed?

share|improve this question
    
I usually just keep the circle empty, and add another node, at the same coordinate, that holds the text. –  Ran G. Jun 20 '11 at 1:41
add comment

1 Answer

up vote 11 down vote accepted

TikZ automatically adds separation between the text and the node border. When setting a minimum size for a node, it's usually a good idea to set inner sep=0pt:

\tikzstyle{m}=[circle, thin, draw=red, fill=red, minimum size=4mm,inner sep=0pt]
share|improve this answer
add comment

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.