Skip to content

Instantly share code, notes, and snippets.

@vibhoraggarwal
Last active March 27, 2020 12:20
Show Gist options
  • Save vibhoraggarwal/4d544d044591269af71493514da1a09c to your computer and use it in GitHub Desktop.
Save vibhoraggarwal/4d544d044591269af71493514da1a09c to your computer and use it in GitHub Desktop.

Vector Graphics

  1. SVG(Scaled Vector Graphics) could be made using inkscape or draw.io
  2. Generating *.pdf_tex file for the resepective svg file with the following command inkscape -D -z --file=image.svg --export-pdf=image.pdf --export-latex
  3. Use the following command in *.tex file to insert the image[Source: StackExchange]
\begin{figure}
    \centering
    \captionsetup{justification=centering}
    \def\svgwidth{\columnwidth}
    \scalebox{0.5}{\input{img/s2-leftturn.pdf_tex}}
    \caption{Left turn}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment