I can't get the solution proposed here to work: Accessing colors defined by a beamer color theme for a standalone tikzpicture
\documentclass[hyperref={pdfpagelabels=false},xcolor=x11names,compress]{beamer}
\usetheme{Boadilla}
\usepackage{tikz}%Mind map
\usetikzlibrary{mindmap,trees} %Mind map
\usepackage{media9,multimedia,comment,booktabs,datetime}
\begin{document}
\begin{frame}
\frametitle{Literature Review}
%\tikzset{every node/.append style={scale=2}}
\resizebox{0.9\textwidth}{!}{
\hspace{50pt}\begin{tikzpicture}
%\tikzstyle{every node}=[font=\Large,level distance=8cm]
\path[mindmap,concept color=DeepSkyBlue4,text=white,font=\sf\bf,text width=5cm,
level 1/.append style={level distance=6cm,sibling angle=60},
level 2/.append style={level distance=4cm},]
node[concept] {Learning}[clockwise from=0]
child[concept color=DeepSkyBlue4] {
node[concept] {practical}[clockwise from=90]
child { node[concept] {algorithms} [clockwise from=40]
child { node[concept] {databases} }
child { node[concept] {WWW} }}
child { node[concept] {data structures} }
}
child[concept color=red,text=black] {
node[concept] {applied}[clockwise from=360]
child { node[concept,level distance=16cm,sibling angle=60] {databases} }
}
child[concept color=red,text=black] {
node[concept] {technical}
}
child[concept color=red,text=black] {
node[concept,text width=2cm] {theoretical}
};
\end{tikzpicture}}
\end{frame}
\end{document}
How can I replace red
above with whatever is set by the selected theme (or customized with \setbeamercolor*{palette tertiary}{fg=black,bg=black!10}
? I want to do this for various tikzpicture, pgfplots etc.
red
colour itself, highly unrecommended (three lines of code): \colorlet{myred}{red} % store it \colorlet{red}{green} % change it %\colorlet{red}{myred} % get it back