Изменить ширину поля в блок-схеме смарт-диаграммы в LaTeX

Я хотел бы изменить ширину поля в 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}

заранее спасибо


person Expectation mean first moment    schedule 07.03.2019    source источник
comment
Можете ли вы сделать минимальный рабочий пример (MWE)?   -  person samcarter_is_at_topanswers.xyz    schedule 07.03.2019


Ответы (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}

введите здесь описание изображения

person samcarter_is_at_topanswers.xyz    schedule 07.03.2019