1

There are two similar questions to mine:

But they both attempt to draw the node using tikz and I want to use a custom image, since I find drawing the shapes too complicated. What I need is to draw a diagram of a network protocol, where some nodes are people, others are (different classes of) network equipment. Assuming I want to use existing figures e.g. from LibreOffice Draw, how can I embed the LibreOffice figures into my tikzpicture?

2
  • Maybe try using a \pic? Aug 18, 2022 at 10:35
  • 1
    Put \includegraphics inside a node. Aug 18, 2022 at 13:28

1 Answer 1

3

A little example following John Kormylo suggestion. Icons were obtained from cisco

\documentclass[border=2mm,tikz]{standalone}

\usepackage{tikz}
\usetikzlibrary{chains}
\begin{document}
\begin{tikzpicture}[
    start chain=going right,
    diagram item/.style={
        on chain,
        join
    }
]
\node [
    diagram item,
    label=center:Internet
] {\includegraphics{cloud}};

\node [
    diagram item,
    label=above:Modem/Router
] {\includegraphics{cable_modem}};

\node [
    diagram item,
    label=above:PC
] {\includegraphics{pc}};

\end{tikzpicture}
\end{document}

enter image description here

You must log in to answer this question.

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