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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a rectangle of width 0.2 and height 0.3 cm. I also want it to be filled with blue color.

How can I do such a style so that I can specify just the name of style, position and label for every rectangle?

for a circle I m using -

\tikzset{user/.style={circle, inner sep=0pt, minimum size=0.6cm, fill=red!60, draw=none}}
\node[user] at (2,6) {$A$};

Also How can I do it for other shapes? I mean can somebody point me to a resource so that I can find all the the options for various shapes?

share|improve this question

closed as too localized by Jake, lockstep, Martin Schröder, T. Verron, Stefan Kottwitz Feb 20 '13 at 13:02

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Perhaps just looking in the pgfmanual section 48 Shape Library could help... – Claudio Fiandrino Feb 20 '13 at 8:40
The same way you uses for circle is available for rectangle: \tikzset{myrectangle/.style={inner sep=0pt, minimum width=0.2cm, minimum height=0.3cm, fill=blue, draw=none}}. All nodes have a default rectangular shape. For other shapes read manual's shapes library section. – Ignasi Feb 20 '13 at 8:41
Since the question is answered by Ignasi's comment and answered in depth in the TikZ manual, I suggest to close this question, since answers doesn't add value to the documentation in the manual. – Stefan Kottwitz Feb 20 '13 at 10:56

Browse other questions tagged or ask your own question.