<p>Idea borrowed from  Hendrik Vogt:</p>

<hr>

<p>[Welcome to TeX.SE](http://meta.tex.stackexchange.com/questions/1436). </p>

<hr>

<p>It would be helpful if you composed a fully compilable [MWE](http://meta.tex.stackexchange.com/questions/228) including `\documentclass` and the appropriate packages that sets up the problem. </p>

<p>While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.</p>

<hr>

<p>It is <em>always</em> best to compose a fully compilable [MWE](http://meta.tex.stackexchange.com/questions/228) that illustrates the problem including the `\documentclass` and the appropriate packages so that those trying to help don't have to recreate it.</p>

<p>This will also serve as a test case and ensure that the solution actually works for you.</p>

<p>That way those trying to help can focus on the solution as opposed to setting up the problem test case.</p>

<hr>

<p>While code snippets are useful in explanations, it is <em>always</em> best to compose a fully compilable [MWE](http://meta.tex.stackexchange.com/questions/228) that illustrates the problem including the `\documentclass` and the appropriate packages so that those trying to help don't have to recreate it.</p>

<p>This is especially important for `tikz` as there are numerous libraries.</p>

<p>In this case it will actually help to ensure that the solution actually solves your specific problem.</p>

<p>Personally, I have often solved my own problems in the process of reducing the amount of code actually required to reproduce the problem.</p>

<hr>

<p>A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button (`{}`).</p>

<p>I took the liberty to format your post a little. See [this link for more details on available formatting](http://meta.tex.stackexchange.com/editing-help).</p>

<hr>

<p>Saying it "<em>does not work</em>" does not provide any useful information with which anyone can provide you with any help. I'd suggest you post a new question and include a fully compilable [MWE](http://meta.tex.stackexchange.com/questions/228) including `\documentclass` and the appropriate packages that sets up the problem. If your case does not even compile, then ensure that it compiles if that <em>one</em> line is commented.  While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.</p>

<hr>

<p>If the solution worked for you please see [How do you accept an answer?](http://meta.tex.stackexchange.com/questions/1852/how-do-you-accept-an-answer) and perhaps [How does accepting an answer work?](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work).</p>

<hr>

<p>Please see [why should the `minimal` class be avoided?](http://tex.stackexchange.com/questions/42114/why-should-the-minimal-class-be-avoided).</p>

Peter Grill