我想定义一个使用与您使用的对象相同参数的新对象。例如,Tikz
style
我设法获取了line width
,但我无法获取。line cap
\documentclass{beamer}
\tikzset{%
glow/.style n args={2}{%
preaction={#1, draw, line cap=% the same as the line: in this case round%
, line width=\pgflinewidth+.1*#2, opacity=1}}}
\begin{document}
\begin{frame}{Title}
\begin{tikzpicture}
\draw[line width=2pt, glow={black}{1pt}, line cap=round](0,0)--++(\textwidth-20pt,0);
\end{tikzpicture}
\end{frame}
\end{document}