在LaTeX中的smartdiagram流程图中更改框宽度

问题描述 投票:0回答:1

我想更改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}

先感谢您

latex flowchart
1个回答
0
投票

默认情况下,文本的宽度为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}

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.