I used the sample https://texample.net/tikz/examples/consort-flowchart/ to build a flowchart. I have some problems, that it looks good.
- Text 1 - The shape has to move up, that there is no konflict with the arrows. The shape should have the width of the hole page and the text should be centered. I can change the size but then the other shapes below moving as well to the left.
- The other arrows should move from the middle to the the next shape.
What can I do to solve it?
\documentclass[border=10pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\centering
\begin{tikzpicture}[auto,
block_top/.style ={rectangle, draw=black, thick, fill=white,
text width=10em, text centered,
minimum height=2em, inner sep=6pt},
block_middle/.style ={rectangle, draw=black, thick, fill=white,
text width=15em, text centered,
minimum height=2em, inner sep=6pt},
block_center/.style ={rectangle, draw=black, thick, fill=white,
text width=8em, text centered,
minimum height=4em},
block_left/.style ={rectangle, draw=black, thick, fill=white,
text width=16em, text ragged, minimum height=4em, inner sep=6pt},
block_lost/.style ={rectangle, draw=black, thick, fill=white,
text width=16em, text ragged, minimum height=3em, inner sep=6pt},
line/.style ={draw, thick, -latex', shorten >=0pt}]
% outlining the flowchart using the PGF/TikZ matrix funtion
\matrix [column sep=5mm,row sep=3mm] {
% enrollment - row 1
\node [block_top] (D) {TEXT 1};\\
% enrollment - row 2
\node [block_center] (DL) {TEXT 2};
& \node [block_center] (DC) {TEXT 3};
& \node [block_center] (DB) {TEXT 4};\\
% follow-up - row 3
\node [block_middle] (I) {TEXT 5};
& \node [block_middle] (L) {TEXT 6}; \\
% follow-up - row 4
\node [block_center] (IG) {TEXT 7) };
& \node [block_center] (IS) {TEXT 8)};
& \node [block_center] (LS) {TEXT 9};
& \node [block_center] (LO) {TEXT 10};\\
};% end matrix
% connecting nodes with paths
\begin{scope}[every path/.style=line]
\path (D) -| (DL);
\path (D) -| (DC);
\path (D) -| (DB);
\path (DL) -- (I);
\path (DB) -- (L);
\path (DC) -- (L);
\path (DC) -- (I);
\path (DL) -- (I);
\path (I) -- (IG);
\path (I) -- (IS);
\path (L) -- (LS);
\path (L) -- (LO);
\end{scope}
\end{tikzpicture}
\end{document}
Cheers

