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

The following tex content is a part a tex file which is added to main file with command input. With a new .cls and some other unrelated changes, tex isn't compiling with error message of

! Package pgfkeys Error: I do not know the key '/tikz/every node/.style={align=
center}' and I am going to ignore it. Perhaps you misspelled it.

The related tex is as follows.

[every node/.style={align=center}]  
  \node[minimum size=3.0cm,circle,fill=gray!40,text=white,outer sep=1cm,inner sep=.5cm,very thick](ce){#1};  
\foreach \gritem [count=\xi] in {#2}
\foreach \gritem [count=\xi] in {#2}
     ultra thick,
     fill opacity=.6,
     minimum size=3cm] at (ce.\angle) {\gritem };}%

\graphitemize{Alignment}{Organizational\\Strategy,Enterprise \\Architecture,Business \\ Process\\Management,Requirements\\ Engineering}

Minimal Working Example is shared in here. main.tex is the working tex file, while main2.tex has compile error. Only the \documentclass .cls file is different.

share|improve this question
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Jubobs Mar 11 '14 at 18:59
You can consider to use smartdiagram package for this drawing: if I remember correctly the diagram you're after is called bubble diagram. – Claudio Fiandrino Mar 11 '14 at 19:19
The problem goes away if you put your definition in the preamble. – percusse Mar 11 '14 at 19:59
Thank you very much. As you said when command definition is in the preamble, the compile error goes away. If there is an explanation, why two .cls definition differs in this way, it will be great. – Cahit Gungor Mar 11 '14 at 21:18

As percusse hinted in the comments, the problem goes away if the definition is put in the preamble.

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.