HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.59k stars 2.83k forks source link

Importing Standalone output to tex document #95

Closed aklyussef closed 3 years ago

aklyussef commented 3 years ago

Hey, Thanks for the tool, the graphics look awesome. I'm having some difficulty importing the outputted standalone tex file into a technical report of mine and was wondering if someone tried to do something similar and can help :) Thanks!

Etshhh commented 3 years ago

If you could share with us how you added it to your report, that would be great!

aklyussef commented 3 years ago

I copied the pdf output from the tikzmake.sh script to a folder in my report filetree and added it in a figure block as shown below! No need to use the generated latex output from the script.

\begin{figure}[htpb] \centering \includegraphics[width=0.8\linewidth]{intro/figures/Unet_ushape} \caption{UNet Architecture}% \label{fig:unet} \end{figure}

Etshhh commented 3 years ago

That worked perfectly, thank you.

chengengliu commented 2 years ago

So we are importing the generated pdf file as a figure, is that correct?

Etshhh commented 2 years ago

yup, exactly.