![我怎样才能删除智能图表中的框?](https://linux22.com/image/341969/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E5%88%A0%E9%99%A4%E6%99%BA%E8%83%BD%E5%9B%BE%E8%A1%A8%E4%B8%AD%E7%9A%84%E6%A1%86%EF%BC%9F.png)
我最近知道有一个 smartdiagram 包。感谢 samcarter 向我展示了他的代码,我的代码是
\documentclass[t, 10pt, compress]{beamer}
\usetheme{Antibes}
\usefonttheme[onlymath]{serif}
\usecolortheme{lily}
\usepackage{lmodern}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\definecolor{ugreen}{rgb}{0.,0.6,0.}
\definecolor{lgreen}{rgb}{0.9,0.95,0.9}
\begin{document}
\begin{frame}[c]{Examples} % plain, allowframebreaks, shrink, squeeze
\setbeamercolor{uppercol}{fg=white,bg=ugreen}%
\setbeamercolor{lowercol}{fg=black,bg=lgreen}%
\begin{beamerboxesrounded}[upper=uppercol,lower=lowercol,shadow=true]{Example 2}
\begin{minipage}[c][3cm]{\textwidth}
\centering
\smartdiagramset{
border color=none,
back arrow disabled=true,
sequence item fill opacity=0,
additions={
additional item offset=-7mm,
additional item fill opacity=0
}
}
\smartdiagramadd[flow diagram:horizontal]{
$X$,
Noisy Channel,
$f(\cdot)$,
$Z$
}
{
above right of module2/$Y$~~~
}
\end{minipage}
If a function $f:Y \rightarrow Z$ is injective (one-to-one mapping) or invertible,
then $Z=f(Y)$ is said to be a \textbf{sufficient statistic} relative to $X$.
\end{beamerboxesrounded}
\end{frame}
\end{document}
第一张图片(上面一张)是用TexMaker中的smartdiagram绘制的。
第二张图(下图)是用 mspaint(windows 程序)绘制的。
请告诉我如何将上面的图片改为下面的图片。使用智能图表没有任何限制。如果有其他绘制方法,也欢迎。感谢您阅读我的问题。
答案1
您可以采用以下方法作为起点。显然,这需要进行微调以调整间距并满足您的需求,但我希望基本思路应该相当清晰。
\documentclass[border=10pt,tikz]{standalone}
\usetikzlibrary{arrows.meta,graphs,quotes,shadows}
\begin{document}
\begin{tikzpicture}
[
block/.style={rounded corners, bottom color=#1, top color=white, drop shadow, text width=12.5mm},
>=Stealth,
draw=cyan!50!blue!50,
line width=.75mm
]
\graph [nodes={align=center, minimum height=12.5mm}, grow right=25mm, branch down=2.5mm]{
"$X$" -> "Noisy\\Channel" [block=cyan] ->["$Y$"] "$f(-)$" [block=blue!50] -> "$Z$"
};
\end{tikzpicture}
\end{document}