Just like TikZ, Inkscape has the option to render the text of a figure using LaTeX. For this, it exports figures as both a pdf and a LaTeX file. The pdf document contains the figure with text stripped, and the LaTeX file contains the code needed to place the text at the correct position. For example, suppose you’re working on the following figure in Inkscape:
To include this figure in a LaTeX document, you’d go to File › Save As, select ‘pdf’ as the extension and then press Save which makes the following dialog pop up:
Choosing ‘Omit text in pdf and create LaTeX file’, will save the figure as pdf+LaTeX. To include these Inkscape figures in your LaTeX document, you can add the following code to your preamble:
\documentclass[11pt,a4paper]{scrbook}
\usepackage{import}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage{import}
\usepackage{placeins}
\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{calc}
\begin{document}
\chapter{Introduction}
Assuming the figure is located at figure/disegno.svg
, it can simply be included with following code:
\begin{figure}[hbt!]
\centering
\begin{normalsize}
\def\svgscale{0.5}
\import{figure/}{disegno.pdf_tex}
\end{normalsize}
\caption{Test}
\label{fig:test}
\end{figure}
Compiling your document, you’d get the following.
As you can see, the text is rendered by LaTeX which makes the figure blend in beautifully.