我想更改smartdiagramset中的框宽度,以便每个句子保持在一行上。这是我的流程图代码
\begin{figure} \centering \smartdiagramset{back arrow disabled=true}
\smartdiagram[flow diagram:horizontal]{\fontsize{5pt}{12pt}\selectfont{EPS:\\ 193 tests\\ 745 compounds\\ 15 Species\\ Weeds \& crops \\ Toxicity ignored}, \fontsize{6pt}{12pt}\selectfont{PPS: \\ Weeds \& Crops \\ }, \fontsize{6pt}{12pt}\selectfont{SPS:}, \fontsize{6pt}{12pt}\selectfont{Field trials}} \caption{Flow chart of herbicidal selection process} \end{figure}
先感谢您
默认情况下,文本的宽度为1.75cm
,您可以像这样增加它:
\documentclass{article}
\usepackage{smartdiagram}
\begin{document}
\smartdiagramset{back arrow disabled=true,text width=2cm, font=\fontsize{6pt}{12pt}\selectfont}
\smartdiagram[flow diagram:horizontal]{%
EPS:\\
193 tests\\
745 compounds\\
15 Species\\
Weeds \& crops\\
Toxicity ignored,
PPS: \\ Weeds \& Crops,
SPS:,
Field trials
}
\end{document}