Contents
  1. The short answer
  2. Before you convert: prepare the logo artwork
  3. Method 1: Convert the SVG to PDF and use \includegraphics
  4. Method 2: Include the SVG directly with the svg package
  5. Verify the result
  6. Limits of this guide

The short answer

LaTeX cannot read SVG files on its own. You have two reliable ways to use an SVG logo. You can convert the SVG to PDF (or to EPS for the older latex-plus-dvips workflow) and place it with \includegraphics. Or you can load the svg package, which runs Inkscape behind the scenes to do that conversion when you compile. Both methods keep the logo as vector artwork. Vector artwork is made of mathematically defined paths rather than pixels, so it stays sharp at any size and in print.

For a logo, converting to PDF yourself is usually the more predictable choice. You control the conversion once, check the output, and every collaborator compiles the same file without needing Inkscape or special compiler permissions.

Before you convert: prepare the logo artwork

A few properties of the SVG decide whether the logo survives the trip into your document intact.

  • Convert text to outlines. If the logo's wordmark is stored as live text, the converter or LaTeX may substitute a different font when the original isn't installed. In Inkscape, select the text and use Path > Object to Path, or convert at export time as shown below. Outlined text becomes ordinary paths and no longer depends on any font.
  • Crop the canvas to the artwork. Extra empty canvas around the logo becomes white space in your document and throws off alignment. Exporting the drawing area rather than the full page avoids this.
  • Check for embedded bitmaps. An .svg extension does not guarantee the file is purely vector. An SVG can contain embedded raster images, such as a pasted PNG, and those will blur when scaled. Open the file in a vector editor and inspect the objects, or check the final PDF as described in the verification section.
  • Confirm you may use the logo. Having the file does not mean you have permission to reproduce the mark. Check the brand owner's usage terms or your agreement with the client.

Method 1: Convert the SVG to PDF and use \includegraphics

This method works with pdfLaTeX, LuaLaTeX and XeLaTeX, which all accept PDF graphics through the graphicx package. Convert the file with Inkscape (version 1.x command-line syntax):

inkscape logo.svg --export-type=pdf --export-filename=logo.pdf --export-area-drawing --export-text-to-path

The --export-area-drawing option crops the PDF to the visible artwork. The --export-text-to-path option outlines any remaining live text. If you don't have Inkscape, the rsvg-convert tool from librsvg can also produce a PDF. It does not offer the same cropping and text options, so prepare the SVG in an editor first.

rsvg-convert -f pdf -o logo.pdf logo.svg

Then place the PDF in your document:

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\includegraphics[width=4cm]{logo.pdf}

\end{document}

Set either width or height, not both, so the logo keeps its proportions. If you compile with latex and dvips instead of a PDF-producing engine, export EPS instead by changing the export type to eps. Then include the .eps file the same way.

Method 2: Include the SVG directly with the svg package

The svg package provides \includesvg. It calls Inkscape during compilation to generate the PDF, which is convenient if the logo changes often. It has two requirements. Inkscape must be installed and available on the system path. The compiler must also be allowed to run external programs, which is called shell escape and is off by default for security reasons.

\documentclass{article}
\usepackage{svg}
\svgsetup{inkscapelatex=false}

\begin{document}

\includesvg[width=4cm]{logo}

\end{document}

Compile with shell escape enabled:

pdflatex -shell-escape document.tex

The setting inkscapelatex=false matters for logos. By default, the package separates text from the drawing and re-typesets it in your document's font. That suits technical diagrams but would replace a logo's lettering with the wrong typeface. Turning the option off keeps the text inside the converted graphic. Outlining the text beforehand is still the safest route.

Online LaTeX editors and shared build systems differ in whether they permit shell escape and whether Inkscape is available. Check your platform's documentation. If either is missing, use Method 1.

Verify the result

  • Zoom in heavily on the logo in the compiled PDF. Edges should stay crisp at any magnification. Visible pixels mean raster content is present.
  • Run pdfimages -list on the logo PDF (from the Poppler utilities). An empty list means no embedded bitmaps. Any entries indicate raster images inside the artwork.
  • Run pdffonts on the logo PDF. If the text was outlined, no fonts should be listed for the logo file. Listed fonts mean live text remains and its appearance depends on font embedding.
  • Compare the colors and lettering against the approved logo. Check that nothing was clipped and that no unexpected margin surrounds the artwork.

Limits of this guide

No source material specific to your logo, LaTeX distribution or tool versions was supplied. The commands above follow current Inkscape 1.x syntax and standard package behavior. Older Inkscape releases use different command-line options, and package defaults can change between versions. Consult the documentation for the versions you have installed. Treat the advice about outlining text and cropping the canvas as design recommendations for predictable output rather than requirements imposed by LaTeX.