【问题标题】:Change box width in smartdiagram flow chart in LaTeX在 LaTeX 中更改 smartdiagram 流程图中的框宽度
【发布时间】:2019-03-07 14:31:06
【问题描述】:

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

文字的宽度默认为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}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-02-28
    • 2021-12-30
    • 2020-09-03
    • 1970-01-01
    • 2013-09-25
    • 2016-06-05
    • 1970-01-01
    • 2022-10-16
    相关资源
    最近更新 更多