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

I'm new to LaTeX and i'm struggling with TikZ, especially flowcharts. I'm dutch and therefor I'm using the documentclass 'rapport1':


This documentclass has a default parindent which I managed to erase with the following line:


This line however seems not to affect the indentation within tikz nodes:




\usetikzlibrary{shapes, arrows}
\tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em,
                     text centered, rounded corners, minimum height=4em] 

    \begin{tikzpicture}[node distance = 2cm, auto]
        \node [block] (test) {This is a test!};

Is there a way to solve this issue and get the node block rendered just as it would when using \documentclass{article}?

share|improve this question
I loaded up your image to our default picture service to include it directly. As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again. – Tobi Jan 31 '12 at 22:01
I improved the formatting of your code a little: I made your example became copyable ad full working code (not a snippet) and fixed the line width to avoid vertical scrolling. – Tobi Jan 31 '12 at 22:09
up vote 9 down vote accepted

Just set \unitindent to 0 pt instead of changing \parindent:


TikZ node

This is used by the class, in rapport1.cls we find


Specifically, \parindent can be reset to \unitindent by internal class macros, such as \@indentset:

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.