如何使用智能图表实现逐项列举/枚举环境?

如何使用智能图表实现逐项列举/枚举环境?

我正在尝试为我的工作制定一个大纲,我认为可能是一个很好的例子。但是,我没有在每个类别下添加列表。

这个问题解释了如何在智能图表中包含表格,但对我来说同样的事情失败了。

这是 MWE。它实际上是两个链接问题的复制粘贴。它返回Something is wrong, perhaps a missing \item。由于这是一个非常普遍的错误消息,我无法继续进行。

\documentclass[border=100]{standalone}
\usepackage[rgb]{xcolor}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
% xcolor manual: 34
\definecolorseries{colours}{hsb}{grad}[hsb]{.575,1,1}{.987,-.234,0}
\resetcolorseries[12]{colours}


\begin{document}
\newsavebox\outputbox
\sbox\outputbox{%
    \begin{itemize}
        \item Corr
        \item Corr2
    \end{itemize}
}


\centering
\smartdiagramset{
    set color list={red!10, red!30,red!50},
    sequence item border color=black,
    sequence item text color=black,
    sequence item border size=1.2\pgflinewidth,
    sequence item font size=\scriptsize\sffamily,
    additions={
        additional item shape=rectangle,
        additional item fill color=colours!!+!20,
        additional item border color=colours!!,
        additional arrow line width=2pt,
        additional arrow tip=to,
        additional arrow color=black,
        additional item font=\scriptsize\sffamily,
      }
}
\smartdiagramadd[sequence diagram]{step 1,step 2, step 3}
{below of sequence-item1/a \usebox{\outputbox} ,below of sequence-item2/output 1,below of sequence-item3/output 2}
\smartdiagramconnect{-to}{sequence-item1/additional-module1}
\smartdiagramconnect{-to}{sequence-item2/additional-module2}
\smartdiagramconnect{-to}{sequence-item3/additional-module3}

\end{document}

谢谢!

答案1

这可能会为你指明正确的方向

在此处输入图片描述

\documentclass[tikz,border=2pt]{standalone}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{enumitem}
\usepackage{etoolbox}
\AtBeginEnvironment{tikzpicture}{%
    \setlist[itemize]{topsep=0pt, parsep=0pt,
        leftmargin=2em}
}

\begin{document}
    \begin{tikzpicture}[
    node distance = 2pt,
    start chain = going right,
    start/.style = {signal, 
                    draw=#1, 
                    fill=#1!30,
                    text width=1cm, 
                    minimum height=0.4cm, 
                    font=\scriptsize,
                    signal pointer angle=120, on chain},
    cont/.style = {start=#1, 
                    signal from=west}
    ]
    
    \node[start=orange](a) {\bfseries Step 1};
    \node[above=5mm of a, 
            rectangle, 
            draw, 
            fill=gray!20,
            minimum height=1mm,
            inner sep=1pt,
            text width=1cm]
            (a1){\scriptsize\sffamily{%
                    AABB \& CC\\
                    \begin{itemize}
                    \item X
                    \item Y
                    \end{itemize}   }};
    \node[cont=olive] {\bfseries Step2};
    \node[cont=gray](b) {\bfseries Step3};
    \draw[-latex](a1)to(a);
    \end{tikzpicture}
\end{document}

编辑自 --https://tex.stackexchange.com/questions/411852/building-smartdiagram-process-sequence-diagram

Smartdiagram 包:附加功能中的不同填充颜色

相关内容