Vorrei usare i diagrammi creati con drawio dentro latex.
Unica soluzione trovata (ma forse neanche cercata) e’ quella di:

#!/bin/bash

/usr/bin/find ./document/images/drawio -name *.drawio -exec rm -f {}.pdf \; -exec drawio --crop -x -o {}.pdf {} \;
  • aggiungere il pdf in LaTex:
\begin{figure}[h]
  \caption{Caption for my figure}
  \centering
  \includegraphics[width=0.75\textwidth]{images/drawio/myfigure.drawio.pdf}
\end{figure}

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s