I am trying to change a node color of Tikz node with only option as:
\documentclass[10pt,xcolor=dvipsnames,xcolor=table]{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{frame}
\centering
\begin{tikzpicture}[sibling distance=12em, level distance=3em,
every node/.style = {shape=rectangle, rounded corners,
draw, align=center, font=\footnotesize,
top color=Red, bottom color=Red, color=white}]]
\node {Foo}
child {node{Bar1}}
\only<1>{child {node{Bar2}}
\only<2>{child[top color=Blue] {node{Bar2}}
child {node{bar21}}
child {node{bar22}}};
\end{tikzpicture}
\end{frame}
\end{document}
This works fine when no only thing is involved, but with only, its giving error:
Runaway argument?
\centering \begin {tikzpicture}[sibling distance=12em, level distance\ETC.
! File ended while scanning use of \frame.
<inserted text>
\par
<*> mwe.tex
What I am doing wrong here? Please help.
\usetikzlibrary{overlay-beamer-styles}:) – samcarter_is_at_topanswers.xyz May 01 '18 at 14:49beamerandoverlayin its name. Must betikz-beamer-overlay. No, wrong. Or perhaps... – Skillmon May 01 '18 at 14:52b,s,oandaare in the package name. I then usually use texdoc and try as many combinations of these until a pdf opens :) – samcarter_is_at_topanswers.xyz May 01 '18 at 14:56\onlyfrom your code but I don't get any blue colour in the nodes. – samcarter_is_at_topanswers.xyz May 01 '18 at 15:06