1

Here is the picture of the diagram

enter image description here

5
  • 3
    Welcome on TeX.SE. I recongize the font of this graph. It comes from github.com/walmes/Tikz. Pls cite your source when you use one. Help us to help you, pls provide a Minimal Working Example so that we can see where you get in trouble.
    – JeT
    Commented Feb 1, 2021 at 20:19
  • Hello, thanks for the answer. The diagram is not from the source you say. The diagram is an image of a class note. Clarified this point. I don't attach code because I don't know how to use tikz. If that's a problem to ask I apologize. Thanks anyway for your interest in helping me Commented Feb 1, 2021 at 21:01
  • It's never a problem to ask a question. But as you can imagine, it'd be too easy to just post a "Do it for me" question and get an answer :) May I suggest you elaborate your question ? for instance, you could give the link to the presentation you mention. Then you could probably show us what you tried to draw at least the 4 rectangular nodes (it's very easy and a good exercise to begin). Then someone would have a starting point to add the arrows and other nodes once you tell us where you got stuck.
    – JeT
    Commented Feb 1, 2021 at 21:59
  • Maybe should you also try on google a site:tex.stackexchange.com <TikZ Diagram> to get some inspiration ?
    – JeT
    Commented Feb 1, 2021 at 21:59
  • @ArielFernandez -- please see if the answer below meets the requirement
    – js bibra
    Commented Feb 4, 2021 at 9:04

2 Answers 2

2

enter image description here

\documentclass[border=10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,arrows,calc}
    \begin{document}
        \begin{tikzpicture}[auto,
            block/.style={rectangle, draw=black, thick, fill=white,
                text width=4em, text centered,
                minimum height=1em, inner sep=2pt},
            blk/.style={rectangle, draw=none, thick, fill=white,
                text width=4em, text centered,
                minimum height=1em, inner sep=2pt},
            line/.style ={draw, thick, -latex', shorten >=0pt, rounded corners}
            ]

            \node [block] (a) {TEXT 1};
            \node [blk,above=1ex of a] (b) {TEXT 2}; 
            \node [block,above=1.5cm of b] (c) {TEXT 3}; 
            \node [blk,above=1ex of c] (d) {TEXT 4};
            \node [blk,above=2ex of d] (e) {TEXT 5};
            \node [block, right=2cm of a] (a1) {TEXT 1};
            \node [blk,above=1ex of a1] (b1) {TEXT 2}; 
            \node [block,above=1.5cm of b1] (c1) {TEXT 3}; 
            \node [blk,above=1ex of c1] (d1) {TEXT 4};
            \node [blk,above=2ex of d1] (e1) {TEXT 5};

            \begin{scope}[every path/.style=line]
                \path (c) -- (b);
                \path (c1) -- (b1);
                \path (e) -- (d);
                \path (e1) -- (d1);
                \draw[out=180, in=180, looseness=1.2] (a) to node[above,sloped ] {\footnotesize textt}(c);
                \draw[out=0, in=0, looseness=1.2] (a1) to node[rotate=180, above,sloped ] {\footnotesize texttt}(c1);
                \draw[<->, ](d)-- (d1)node[midway,above ] {\footnotesize text6};
                \draw[<->, ](b)--(b1)node[midway,below ] {\footnotesize text7};
                \draw[<->, shorten >=2pt,shorten <=2pt,](b)--(c1)node[pos=0.2,above,sloped ] {\footnotesize text8};
                \draw[<->, shorten >=2pt,shorten <=2pt,](b1)--(c)node[pos=0.2,above,sloped ] {\footnotesize text9};             
            \end{scope}
        \end{tikzpicture}
        
\end{document}
1
  • 1
    Thank you very much for your answer and your help. It's exactly what I needed to do. Thanks for the didactic way in your answer. You have made me begin to understand the tikz package and how to make graphics. Thanks to your answer I was able to start making graphics on tikz on my own. You have really helped me a lot and have taught me to understand tikz. Thanks again Commented Feb 16, 2021 at 23:42
1

enter image description here

\documentclass[border=10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,arrows,calc}
    \begin{document}
        \begin{tikzpicture}[auto,
            block/.style={rectangle, draw=black, thick, fill=white,
                text width=6em, text centered,
                minimum height=1em, inner sep=2pt},
            blk/.style={rectangle, draw=none, thick, fill=white,
                text width=8em, text centered,
                minimum height=1em, inner sep=2pt},
            line/.style ={draw, thick, -latex', shorten >=0pt, rounded corners}
            ]

            \node [block] (a) {$V(p_1,p_2,m)$};
            \node [blk,above=1ex of a] (b) {Utilidad indirecta}; 
            \node [block,darkgreen,fill=darkgreen!20,above=2.5cm of b] (c) {$x_1(p_1,p_2,m)$}; 
            \node [blk,above=2ex of c] (d) {Maximización};
            \node [blk,above=4ex of d] (e) {Utilidad\\Problema de la maximización de la Utilidad (The UMP)};
            \node [block, right=4cm of a] (a1) {$e(p_1,p_2,u_0)$};
            \node [blk,above=1ex of a1] (b1) {Gasto mínimo}; 
            \node [block,above=2.5cm of b1] (c1) {$h_1(p_1,p_2,u_0)$}; 
            \node [blk,above=2ex of c1] (d1) {Minimización};
            \node [blk,above=4ex of d1] (e1) {Gasto\\Problema de la minimización del Gasto (The EMP)};
            \begin{scope}[every path/.style=line]
                \path (c) -- (b);
                \path (c1) -- (b1);
                \path (e) -- (d);
                \path (e1) -- (d1);
                \draw[out=180, in=180, looseness=1.2] (a) to node[above,sloped ] {\footnotesize Identidad de Roy}(c);
                \draw[dashed][out=0, in=0, looseness=1.2] (a1) to node[rotate=180, above,sloped] {\footnotesize Lema de Sheppard}(c1);
                \draw[<->, ](d)-- (d1)node[midway,above ] {\footnotesize Dualidad};
                \draw[<->, ](b)--(b1)node[midway,below ] {\footnotesize Dualidad};
                \draw[latex-latex,darkgreen, dashed ](c)--(c1)node[midway,above ] {\footnotesize Ecuación de Slutsky}node[midway,below ] {\footnotesize (for derivatives)};
                \draw[<->, shorten >=2pt,shorten <=2pt,](b)--(c1)node[pos=0.2,above,sloped ] {\footnotesize Dualidad};
                \draw[<->, shorten >=2pt,shorten <=2pt,](b1)--(c)node[pos=0.2,above,sloped ] {\footnotesize Dualidad};             
            \end{scope}
        \end{tikzpicture}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .