包括 .svg 图像错误

包括 .svg 图像错误

这段代码为何不起作用?

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[
  a4paper,
  margin=15mm,
  bindingoffset=2mm,
  heightrounded,
]{geometry}

\usepackage{amsmath}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{svg}

\begin{document}
\begin{flushleft}

\begin{center}
\begin{figure}[htbp]
\includesvg{example.svg}
\caption{Image created with Inkscape}\label{figura:2}
\vspace{7pt}
\end{figure}
\end{center}
\end{flushleft}
\end{document}

TexWorks 0.61 发送此错误:

("C:\Users\Marco\AppData\Local\Programs\MiKTeX
2.9\tex\latex\microtype\mt-cmr.c
    fg")
    ! Undefined control sequence.
    \@includesvg ...extracttrue \fi \ifnum \pdfstrcmp 
                                                      {\pdffilemoddate {\SVG@in@...
    l.23 \includesvg{example.svg}

?

我正在用 XeLaTeX+MakeIndex+BibTeX 进行编译

相关内容