我尝试了包中的以下代码smartdiagram
,但是我看不到与手册中相同的结果。
我的代码是
\documentclass[12pt,a4paper]{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\begin{document}
\begin{minipage}[t][3.5cm]{\textwidth}
\begin{center}
\smartdiagramset{
uniform color list=gray!60!black for 3 items,
back arrow disabled=true,
additions={
additional item offset=0.85cm,
additional item border color=red,
additional connections disabled=false,
additional arrow color=red,
additional arrow tip=stealth,
additional arrow line width=1pt,
additional arrow style=]-latex’,
}
}
\smartdiagramadd[flow diagram:horizontal]{%
PGF,Ti\textit{k}Z,Smartdiagram%
}{%
below of module1/Low Level, below of module3/High level%
}
\end{center}
\end{minipage}
\end{document}
答案1
来自这篇文章这里它说(针对不同软件包的不同问题):“您需要箭头库(手册中没有明确提到示例所需的所有库是很常见的)”。因此,进行 Torbjorn T. 提到的更改并添加库,一切对我来说都有效。试试这个代码:
\documentclass[12pt,a4paper]{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{minipage}[t][3.5cm]{\textwidth}
\begin{center}
\smartdiagramset{
uniform color list=gray!60!black for 3 items,
back arrow disabled=true,
additions={
additional item offset=0.85cm,
additional item border color=red,
additional connections disabled=false,
additional arrow color=red,
additional arrow tip=stealth,
additional arrow line width=1pt,
additional arrow style=]-latex'
}
}
\smartdiagramadd[flow diagram:horizontal]{%
PGF,Ti\textit{k}Z,Smartdiagram%
}{%
below of module1/Low Level, below of module3/High level%
}
\end{center}
\end{minipage}
\end{document}