I am trying to draw a flowchart. But the nodes are getting overlapped. This is the code:
\documentclass[12pt]{article}
\usepackage{cite}
\usepackage{graphicx}
\usepackage[a4paper, margin=1 in]{geometry}
\hfuzz=20pt
\vfuzz=20pt
\hbadness=2000
\vbadness=\maxdimen
\setlength{\arrayrulewidth}{0.5mm}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=white!30 ]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=6cm, draw=black, fill=white!30]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=6cm, draw=black, fill=white!30]
\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, text width=6cm, draw=black, fill=white!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\nocite{*}
\begin{tikzpicture}[node distance=2cm]
\node (start) [startstop] {Start};
\node (in1) [io, below of=start] {Enter A and B and B`(A contains the bigger string)};
\draw [arrow] (start) -- (in1);
\node (pro1) [process, below of=in1] {big sentence: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa};
\draw [arrow] (in1) -- (pro1);
\node (dec1) [decision, below of=pro1] {any condition statement .................};
\draw [arrow] (pro1) -- (dec1);
\node (dec2) [decision, below of=dec1] {again a condition............................................................................};
\draw [arrow] (dec1) -- (dec2);
\node (dec3) [decision, below of=dec1] {Another one.................................................................................};
\draw [arrow] (dec1) -- (dec3);
\end{tikzpicture}
\end{document}
The nodes are not getting placed serially, they are getting overlapped
\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. And make sure, you get rid of those<br>that your code is marked as a code sample. – LaRiFaRi Jun 16 '15 at 06:36