如何在 table Latex 中包含 SVG 图片?

How include SVG picture in a table latex?

我在 table 中插入多张 SVG 图片时遇到问题。我用表格尝试了很多方法,但没有成功。

我设法用这段代码实现了文档中的单张图片,使用的是inkscape方法:

\begin{figure}[h!]
    \centering
    \def\svgwidth{5cm}
    \input{SupplyChain.pdf_tex}
\end{figure}

我想要一个 3 行 2 列的 table。第一列包含图片,第二列包含其描述。

您可以在表格中使用相同的代码:

\documentclass{article}
\usepackage{graphicx}

\begin{document}

{
\begin{tabular}{cc}
\def\svgwidth{5cm}
\input{test.pdf_tex}
&
text\
\def\svgwidth{5cm}
\input{test.pdf_tex}
&
text\   
\def\svgwidth{5cm}
\input{test.pdf_tex}
&
text\   
\end{tabular}


\end{document}