Skip to content

Instantly share code, notes, and snippets.

@stevencarlislewalker
Last active June 9, 2023 19:38
Show Gist options
  • Save stevencarlislewalker/59937758d054151425b27c5dc3a427e2 to your computer and use it in GitHub Desktop.
Save stevencarlislewalker/59937758d054151425b27c5dc3a427e2 to your computer and use it in GitHub Desktop.
Latex svg

Latex command that I use.

pdflatex --file-line-error --synctex=1 --shell-escape test.tex

Note that this only works with inkscape on the path.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\listfiles
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{svg}
\usepackage{svg-extract}
\begin{document}
\begin{figure}
\centering
\includesvg[inkscapelatex=true, width=0.5\linewidth]{test.svg}
\caption{Some text.}
\label{name}
\end{figure}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment