0

for my thesis I try to (re)build a flowchart for its structure. But I am struggling...You can see the draft in the picture.

Can someone please help me? Is there a tool or something helpful?

I tried adapting this, but it doesn't work properly.

This is draft of what I want

edit: okay, now thanks to your help I managed to get closer to what I want. But its too big...how can I solve this?

\documentclass[a4paper,12pt]{scrbook}
\usepackage{enumitem, tikz}
\usetikzlibrary{calc,positioning,shapes.geometric,fit}
\begin{document}

\begin{figure}[H]
\begin{center}

\begin{tikzpicture}[block/.style={regular polygon,regular polygon sides=4,
    inner xsep=1em,align=center,text width=7em,draw},font=\small,thick,
    box/.style={draw,align=center,inner sep=1em},>=stealth
  ]
 \begin{scope}[local bounding box=blocks]
  \node[block] (B1) {TextTextTextTextText TextText Text Text
  \begin{enumerate}[label={\alph*)}]
   \item Kapitel 1
   \item Kapitel 2 TextTextText Text Text Text Text Text
   \item Kapitel 3 Text TextText Text
   \item Kapitel 4 TextTextText Text
   \item Kapitel 5
  \end{enumerate}};
  \path let \p1=($(B1.east)-(B1.west)$) in 
  node[right=3em of B1,block] (B2) {TextTextTextTextText TextText Text Text Text Text};
 \end{scope} 
 \path let \p1=($(blocks.east)-(blocks.west)$) in
  [nodes={minimum width=\x1},node distance=2em]
  node[box,above=of blocks] (A) {\textbf{Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text}}
  node[box,below=of blocks] (C) {Text Text Text Text Text Text Text Text}
  node[box,below=of C] (D) {Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text}
  node[box,below=1em of D.south west,minimum width=12em,inner ysep=1ex] (E) {Experteninterviews}
  let \p2=($(D.south)-(E.south)$) in
  node[box,below={\y2+1em} of D] (F) {Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text};
 \path[->] foreach \X in {1,2} 
    {(B\X.north) edge[<-] (B\X.north|-A.south)
     (B\X.south) edge (B\X.south|-C.north)}
    (C) edge (D) ([xshift=4em]D.south) edge ([xshift=4em]D.south|-F.north)
    (E.east) edge[edge label=Text Text Text] ([xshift=3.9em]D.south|-E.east);
 \node[draw=gray,thin,fit=(A)(C),dashed,rounded corners=0.8em,inner sep=0.8em,
    label=right:\rotatebox{90}{Theoretischer Teil}]{};
 \node[draw=gray,thin,fit=(D)(E)(F),dashed,rounded corners=0.8em,inner sep=0.8em,
    label=right:\rotatebox{90}{Empirischer Teil}]{};
\end{tikzpicture}

\caption{\label{fig:flowchart} Thesis FLOWCHART.}
\end{center}
\end{figure}
\end{document}
  • 2
    Welcome to TeX.SX! Could you plese add a MWE showing what you tried so far since you already found the code to a quite similar image. – leandriis Dec 7 '19 at 10:10
  • Thanks :) Added my code. – structurer Dec 15 '19 at 13:34
  • In the comments you mentioned "makes the figure too big for the page. The text doesn't use its full available space. " but your crrent MWE uses standalone documentclass which automatically adapts to the size of the contents. Could you clarify that? Completely unrelated, but you might want to replace the center environment with the \centering command to avoid additional white space. – leandriis Dec 15 '19 at 13:43
  • Ah, I understand. In my project I use scrbook – structurer Dec 15 '19 at 17:10
  • Can someone help me, solving the "too big" issue? – structurer Dec 18 '19 at 10:42
2

Welcome! This is to give you a start.

\documentclass[tikz,border=3mm]{standalone}
\usepackage{enumitem}
\usetikzlibrary{calc,positioning,shapes.geometric,fit}
\begin{document}
\begin{tikzpicture}[block/.style={regular polygon,regular polygon sides=4,
    inner xsep=2em,align=left,text width=5em,draw},font=\sffamily,thick,
    box/.style={draw,align=left,inner sep=2em},>=stealth
  ]
 \begin{scope}[local bounding box=blocks]
  \node[block] (B1) {Concept 1
  \begin{enumerate}[label={\alph*)}]
   \item bla
   \item blub
  \end{enumerate}};
  \path let \p1=($(B1.east)-(B1.west)$) in 
  node[right=3em of B1,block] (B2) {Concept 2};
 \end{scope} 
 \path let \p1=($(blocks.east)-(blocks.west)$) in
  [nodes={minimum width=\x1},node distance=2em]
  node[box,above=of blocks] (A) {Thesis}
  node[box,below=of blocks] (C) {Combination}
  node[box,below=of C] (D) {further analysis}
  node[box,below=1em of D.south west,minimum width=12em,inner ysep=1ex] (E) {Experts}
  let \p2=($(D.south)-(E.south)$) in
  node[box,below={\y2+1em} of D] (F) {Conclusion};
 \path[->] foreach \X in {1,2} 
    {(B\X.north) edge[<-] (B\X.north|-A.south)
     (B\X.south) edge (B\X.south|-C.north)}
    (C) edge (D) ([xshift=4em]D.south) edge ([xshift=4em]D.south|-F.north)
    (E.east) edge[edge label=Bla] ([xshift=3.9em]D.south|-E.east);
 \node[draw=gray,thin,fit=(A)(C),dashed,rounded corners=0.8em,inner sep=0.8em,
    label=right:Theory]{};
 \node[draw=gray,thin,fit=(D)(E)(F),dashed,rounded corners=0.8em,inner sep=0.8em,
    label=right:Empty]{};
\end{tikzpicture}
\end{document}

enter image description here

|improve this answer|||||
  • Oh wow, THANK YOU! Thats perfect! The only thing I want to adapt is the text position in the box. In "concept 1" box I added a lot of text. How can I keep the size of the box but make the text beginning "earlier" to fill the box? – structurer Dec 10 '19 at 10:19
  • @Thesis_Structure You can decrease inner xsep and increase text width, try e.g. inner xsep=1em and text width=7em. – Schrödinger's cat Dec 10 '19 at 13:53
  • Thanks :) but this makes the figure too big for the page. The text doesn't use its full available space. – structurer Dec 10 '19 at 17:42
  • @Thesis_Structure Well, how do you expect me to debug a code that I do not see. As I said, this is a start. You can always take what you have and ask a new question, and if this answer solves your original problem, please consider accepting it by clicking on the check mark on its left. – Schrödinger's cat Dec 10 '19 at 17:45
  • Sorry for being unspecific! I added my code in the first post. In my document its too big...how can I solve this? – structurer Dec 13 '19 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.