Graphics, Figures & TablesTrouble with .svg files

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
GedC
Posts: 6
Joined: Wed Apr 16, 2014 7:36 pm

Trouble with .svg files

Post by GedC »

I have been using LaTeX for a while and for graphics I've just inserted .jpg files in the normal without any problems.

Now I want to use vector graphics and I've discovered that my drawing program can export .svg files. Unfortunately I can't get LaTeX (Beamer to be more precise) to accept them.

I use the line

\usepackage{svg}

in the preamble and then use

\begin{center}
\includesvg[width=45mm]{first}
\end{center}

in the place where I want the figure to be.

I get the following error

! LaTeX Error: File `./first' not found.

and eventually

I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.


! LaTeX Error: File `first.pdf_tex' not found.

I would be grateful if anyone could offer any help.

Thanks,

GedC

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply