Code: Select all
\documentclass{beamer}\usepackage{tikz}\usetikzlibrary{calc}\usetikzlibrary{intersections}\usetikzlibrary{decorations.pathmorphing}\usetikzlibrary{decorations.markings}\usetikzlibrary{arrows.meta}\begin{document}\begin{frame}\frametitle{Title}\framesubtitle{Subtitle}Text\begin{figure}\centering\begin{tikzpicture}% [domain=-3:0.2, label/.style={postaction={% decorate,decoration={% markings,% mark=at position 0.9 with {\node[above, transform shape] {#1};}}}}]\end{tikzpicture}\caption{Figure}\end{figure}\end{frame}\end{document}
but this doesn't :
Code: Select all
\documentclass{beamer}\usepackage{tikz}\usetikzlibrary{calc}\usetikzlibrary{intersections}\usetikzlibrary{decorations.pathmorphing}\usetikzlibrary{decorations.markings}\usetikzlibrary{arrows.meta}\begin{document}\begin{frame}\frametitle{Title}\framesubtitle{Subtitle}Text\begin{figure}\centering\begin{tikzpicture}[domain=-3:0.2, label/.style={postaction={decorate,decoration={markings,mark=at position 0.9 with {\node[above, transform shape] {#1};}}}}]\end{tikzpicture}\caption{Figure}\end{figure}\end{frame}\end{document}