How to draw figures in latex

This doc is referred from following references

IF this error:
LaTeX Error: File `algorithm.sty' not found.
then install:
$ sudo apt-get install texlive-science
 To install texlive ubuntu
sudo apt-get install texlive

 

 

Ref:

http://tex.stackexchange.com/questions/8890/tikz-how-to-draw-boxes-around-set-of-nodes

http://tex.stackexchange.com/questions/96340/how-to-place-a-textnode-at-the-center-of-a-drawed-rectangle

http://tex.stackexchange.com/questions/97868/how-to-draw-the-structure-with-rectangles-inside

http://tex.stackexchange.com/questions/112107/how-to-put-nodes-or-rectangles-inside-a-node

https://www.tug.org/TUGboat/tb29-1/tb91walczak.pdfhttps://www.latex-tutorial.com/tutorials/advanced/latex-tikz/

http://www.texample.net/tikz/examples/model-diagram/

http://www.texample.net/tikz/examples/

https://www.sharelatex.com/blog/2013/08/27/tikz-series-pt1.html

https://www.sharelatex.com/blog/2013/09/02/tikz-series-pt4.html

https://www.sharelatex.com/learn/Picture_environment

https://www.sharelatex.com/learn/TikZ_package

http://tex.stackexchange.com/questions/8890/tikz-how-to-draw-boxes-around-set-of-nodes

http://tex.stackexchange.com/questions/96340/how-to-place-a-textnode-at-the-center-of-a-drawed-rectangle

http://tex.stackexchange.com/questions/97868/how-to-draw-the-structure-with-rectangles-inside

http://tex.stackexchange.com/questions/112107/how-to-put-nodes-or-rectangles-inside-a-node

https://www.tug.org/TUGboat/tb29-1/tb91walczak.pdf

https://www.latex-tutorial.com/tutorials/advanced/latex-tikz/

 

Motivation model diagram Heckhausen Rheinbergo you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Motivation model diagram Heckhausen and Rheinberg
% Author: Stefan Kottwitz
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{matrix,arrows.meta}
\tikzset{
  centered/.style = { align=center, anchor=center },
     empty/.style = { font=\sffamily\Large, centered, text width=2cm },
       box/.style = { font=\sffamily, fill=green, centered },
    result/.style = { font=\sffamily\scriptsize, fill=black!20, centered},
     arrow/.style = { very thick, color=red, ->, >=Triangle},
}
\newcommand*{\nothing}{Do nothing}
\begin{document}
\begin{tikzpicture}
  \matrix (m)
    [
      matrix of nodes,
      column sep      = 3em,
      row sep         = 5ex,
      column 1/.style = { nodes = { empty }  },
      column 2/.style = { nodes = { box }    },
      column 3/.style = { nodes = { result } },
    ]
    {
      S-R-R  & Determined? & \nothing \\
      A-R-R  & Influence?  & \nothing \\
      Value  & Importance? & \nothing \\
      S-R-R  & Conseqence? & \nothing \\
    };
  \foreach \i/\j in {1/2,2/3,3/4} {
    \draw [arrow] (m-\i-2) -- (m-\j-2);
    \draw [arrow] (m-\i-2) -- (m-\i-3);
  }
  \draw [arrow] (m-4-2) -- (m-4-3);
\end{tikzpicture}
\end{document}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s