
我想使用智慧圖但因某些原因出現錯誤:
! 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,但具有完整的“vanilla Latex 安裝”)。我之前在使用 Texlive2012 PPA 時也遇到類似的問題。因此,如果您確實使用 xUbuntu,請嘗試完整的“vanilla Latex”。