TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

In a joint file, my picture was changed by some un-used global tikzstyle, which is added by other. Here is a minimal example. The output dots become bigger if I un-comment the commented line.


%\tikzset{cd/.style=matrix of math nodes,row sep=2em,column sep=2em, text height=1.5ex, text depth=0.5ex}


\begin{tikzpicture}[mydot/.style={draw,circle,inner sep=1.5pt},every label/.style={scale=0.6},scale=0.75]

  \node[mydot]      at (0,0)    (p1) {};
  \node[mydot]      at (2,0)    (p2) {};


share|improve this question
up vote 6 down vote accepted

The style description is not correct and missing braces. Hence only the first option until the comma is included in cd style. The rest applies globally.

\tikzset{cd/.style={ %<--- These are needed
         matrix of math nodes,
         row sep=1em,column sep=2em, text height=1.5ex, text depth=0.5ex
share|improve this answer
Oh, thanks so much. – Ma Ming Oct 4 '12 at 11:00

Just to explain what happened.

As percusse explained your style declaration was not correct and the dots' size was influenced by text height and text depth.

share|improve this answer

Your Answer


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.