Latex 中的智能图表

Latex 中的智能图表

我在使用 beamer 类中的智能图表包生成的图表时遇到了一些问题。您可以看到以下考虑的代码:

\documentclass{beamer}


\RequirePackage{tikz}
\usetikzlibrary{positioning,shapes,calc,mindmap,trees,arrows,chains}
\RequirePackage{adjustbox}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}


\begin{document}
\begin{frame}{General Settings 1}
\begin{figure}
    \centering
    \smartdiagramset{%
    uniform color list=blue for 3 items,
    back arrow disabled=true,
  module minimum width=2cm,
  module minimum height=1.5cm,
  arrow line width=5pt,
  module x sep=4cm,
  text width=2.5cm,
  additions={
    additional item offset=0.8cm,
    additional item border color=red,
    additional arrow color=red,
    additional item width=2.25cm,
    additional item height=1cm,
    additional item text width=2cm,
    additional arrow line width=5pt,
    additional item bottom color=red!50,
    additional item shadow=drop shadow,
  }
}
\smartdiagramadd[flow diagram:horizontal]{
\textbf{Mining of ore}\\ \scriptsize{(underground or open-cut mining)}, \textbf{Processing of ore}\\ \scriptsize{(crushing, grinding, flotation)},  \textbf{Mineral product}
}{below of module1/Waste rock,above of module2/Process water, below of module2/Tailings to tailings dam}
\smartdiagramconnect{<-}{module2/additional-module2}
\smartdiagramconnect{<-}{additional-module1/module1}
\smartdiagramconnect{<-}{additional-module3/module2}
\end{figure}
\end{frame}
\end{document}

得到的图表是这样的: 文本

不过,我喜欢生成下图: 文本

这方面存在三个问题:

1- 箭头没有阴影,

2- 附加框中的文本不能以粗体或较小的字体输入,

3- 方块的尺寸和颜色不能有差异。

那么,有人愿意帮助我解决这些问题吗?提前感谢您的时间和帮助。

答案1

作为起点:

在此处输入图片描述

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
                positioning
                }

\begin{document}
\begin{frame}[fragile]
\frametitle{General Settings 1}
    \begin{figure}
\tikzset{
every edge/.style = {draw=cyan, line width=2mm, shorten >=1pt, shorten <=1pt,
                     -{Triangle[scale=0.6]}},
N/.style args = {#1/#2}{fill=#1, text width=#2, 
                        font=\scriptsize, align=center},
   N/.default = cyan/7em,
}
\newcommand\tn[1]{\textbf{\small #1}}
    \begin{tikzpicture}[node distance=8mm]
\node (n1) [N]  {\tn{Mining of ore}\\ 
                 (underground or open-cut mining)}; 
\node (n2) [N=cyan/8em, right=of n1] 
                {\tn{Processing of ore}\\ 
                 (crushing, grinding, flotation)};
\node (n3) [N, right=of n2] 
                {\tn{Mineral product}};
\node (n4) [N, below=of n1]
                {\tn{Waste rock}};
\node (n5) [N=red!30/8em, below=of n2]
                {\tn{Tailings to tailings dam}};
\node (n6) [N=cyan/8em, above=of n2]
                {\tn{Process watter}
                 (from desalination plants, lakes, boreholes,
                  rivers, or other sources)};
\draw   (n1) edge (n2)
        (n2) edge (n3)
        (n1) edge (n4)
        (n2) edge (n5)
        (n2) edge (n6);
    \end{tikzpicture}
\end{figure}
\end{frame}
\end{document}

相关内容