编译时出现 Smartdiagram 错误

编译时出现 Smartdiagram 错误

我想使用智能图表但由于某种原因出现错误:

! Undefined control sequence. \smartdiagram 
code #1#2->\StrCut {#1}{:}\diagramtype \option \IfNoValueTF {#... l.6 ...ram]
{Initiation,Planning,Execution,Closure} The control sequence at the end of 
the top line of your error message was never \def'ed. If you have misspelled 
it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). 
Otherwise just continue, and I'll forget about whatever was undefined.

! Undefined control sequence. \smartdiagram
code ...\StrCut {#1}{:}\diagramtype \option \IfNoValueTF {#1}{... l.6 ...ram]
{Initiation,Planning,Execution,Closure} The control sequence at the end of 
the top line of your error message was never \def'ed. If you have misspelled 
it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). 
Otherwise just continue, and I'll forget about whatever was undefined.

这是我使用的代码。

\documentclass[12pt]{article}
\usepackage{smartdiagram}

\begin{document}
    \begin{center}
    \smartdiagram[circular diagram]{Initiation,Planning,Execution,Closure}
    \end{center}
\end{document}

答案1

无需指定附加包。Smartdiagram 将自动调用它们。您的 MWE 是正确的并且可以编译(Kubuntu 12.10,但具有完整的“原始 Latex 安装”)。我以前在使用 Texlive2012 PPA 时遇到过类似的问题。因此,如果您确实在使用 xUbuntu,请尝试完整的“原始 Latex”。

相关内容