I would like to draw this diagram into latex, I have tried using the svg package, but the image is broken:

enter image description here

I have also tried converting it using online converters to eps format but the result is the same. Finally I have also tried exporting svg format to tikz but I cannot manage to convert it. I don't know how to use Inkscape tho.

Do you believe is there any other way to make convert this diagram to any latex format of drawing?

  • Why you not include this picture as it is with \includegraphics[width=...]{<file name>}? Or simple redraw it with use of tikz or pstricks or ... packets?. Image is not so complicated ...
    – Zarko
    Dec 22, 2019 at 18:50
  • That is not too hard, but as we are not a "do this for me service", I'd suggest you have a look at some of the examples in this gallery texample.net/tikz/examples and then ask again when you have a more concrete question
    – daleif
    Dec 22, 2019 at 18:51

2 Answers 2


Very similar to the @Schrödinger's cat answer. Tiny differences are in definitions of nodes' styles and drawing of connection between nodes:

\documentclass[tikz, margin=3mm]{standalone}

node distance = 12mm and 6mm,
   box/.style = {draw, text width=8em, align=flush center,
   lbl/.style = {fill=white, inner sep=1pt, 
            > = Stealth  
\node (n1) [box] {CONTADOR ASINCRONO};
\node (n2) [box, right=of n1]   {CIRCUITO TRUNCADOR};
\node (n3) [box, below=of n2]   {Circuito QUE ENCIENDE LA BALIZA};
\node (n4) [box, right= 12mm of n3.south east] {OSCILOSCOPIO};
\node (n5) [box, right= 12mm of n3.north east] {BALIZA};
\node (n6) [box, above=of n2-| n4] {LEDs CONTADOR};
    \begin{scope}[every path/.style = {rounded corners,->}]
\draw   ([xshift=-2em] n1.north) |- (n6);
\draw   (n2.north) -- ++ (0,7mm) -| node[pos=0.25,lbl] {CLEAR} (n1);
\draw   ([xshift=2em] n1.south) -- ++ (0,-7mm) -| node[pos=0.25,lbl] {Q4Q2} (n2);
\draw   (n1) |- node[pos=0.5,lbl] {Q3Q0Q2*} (n3);
\draw   (n3.east) -- ++ (6mm,0) |- (n5);
\draw   (n3.east) -- ++ (6mm,0) |- (n4);

enter image description here


This diagram costs a few minutes to code so if the attempts of converting it fail, you may just draw it. That way you inherit the font size etc. from the document in which you embed it.

 \begin{scope}[box/.style={minimum height=#1,minimum width=10em,
    draw,align=center,node font=\bfseries},box/.default=5em]
  \node[box] (A) {CONTADOR\\ ASINCRONO};
  \node[box,right=2em of A] (B) {CIRCUITO\\ TUNCATOR};
  \node[box,below=4em of B] (C) {CIRCUITO QUE\\ \dots \\ \dots};
  \node[box=2em,right=5em of C.north east,anchor=south west] (D) {BALIZA};
  \node[box=2em,right=5em of C.south east,anchor=north west] (E) {BALIZA};
  \node[box=2em,above=10em of D.north west,anchor=south west] (F) {BALIZA};
 \begin{scope}[rounded corners=1ex,-stealth,nodes={fill=white},thick]
  \draw (B.north) -- ++ (0,2em) -| node[pos=0.25]{CLEAR}(A);
  \draw (A.-50) -- ++ (0,-2em) -| node[pos=0.25]{Q4Q2}(B);
  \draw (A) |- node{Q3Q0Q2\textsuperscript{*}} (C);
  \path (C.east) -- coordinate (aux) (D.west);
  \draw (C.east) -- (C-|aux) |- (D);
  \draw (C.east) -- (C-|aux) |- (E);
  \draw (A.120) |- (F);

enter image description here

As you can see, I did not have the passion to punch in the texts, which would be the most time consuming task. Note also that copying this code and using quotes does not make the code more elegant nor concise.

You must log in to answer this question.

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