TransWikia.com

Arrow diagrams using packages

TeX - LaTeX Asked on March 18, 2021

Is there a way to draw a diagram like such using only default provided packages?

Arrow diagram

The part that I’m trying to figure out is creating an arrow that points above an element, like the right-most arrow in the diagram. Would this be achievable through packages only, or do I have no other choice but to resort to programmes like Inkscape?

Thank you!

One Answer

enter image description here

  documentclass{article}
usepackage{tikz}
usetikzlibrary{positioning, hobby, arrows.meta}
begin{document}
    begin{tikzpicture}[use Hobby shortcut]
          %draw [help lines,  red!30] (0,0) grid (6,6);
        
        draw (0,0)-|(3,5)-|node[pos=.25, fill=white](x){huge X}(0,0);
        node[below=2cm of x, circle, fill, draw, inner sep=2pt, label=left:xtextsubscript{2}] (x2) {};
        
        path
        (1.5,2.5)coordinate(z0)
        (2,2)coordinate(z1)
        (3.1,2.2)coordinate(z2)
        (3.2,5.4)coordinate(z3)
        (2.5, 5.5)coordinate(z4)
        (2,5.4)coordinate(z5)
        ;
        draw[->, -Latex](x2) to (z0)..(z1)..(z2)..(z3)..(z4)..(z5) to (x);
    end{tikzpicture}
end{document}

Correct answer by js bibra on March 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP