Obtenga acceso a la paleta Beamer para tikzpictures

Obtenga acceso a la paleta Beamer para tikzpictures

No consigo que funcione la solución propuesta aquí:Acceder a colores definidos por un tema de color de proyector para una imagen tikz independiente

\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}

¿Cómo puedo reemplazar redlo anterior con lo que esté configurado por el tema seleccionado (o personalizado con \setbeamercolor*{palette tertiary}{fg=black,bg=black!10}? Quiero hacer esto para varios tikzpicture, pgfplots, etc.

Respuesta1

No sé por qué, pero algunos beamercolores están disponibles (como structure.fg) y otros no. Pero siempre puedesdefinirTus propios colores basados ​​en los del tema Beamer. De esta manera, cuando cambies el tema del proyector, todos los colores cambiarán.

Después

\usebeamercolor{block title alerted}
\colorlet{color1}{bg}

color1será igual al block title alerted.bgcolor. Puedes repetir estas líneas paradefinirmas colores. El siguiente código muestra un ejemplo con esta solución.

Otra solución la aporta Claudio Fiandrino en¿Cómo obtener valores reales de los colores del tema de color en Beamer?donde se utiliza un nuevo comando \ccft(Crear color a partir de plantilla) para definirnormalcolores basados ​​enproyectorunos.

\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}

\usebeamercolor{block title alerted}
\colorlet{color1}{bg}
\usebeamercolor{block body}
\colorlet{color2}{bg}
\colorlet{color3}{bg!30!color1}

\setbeamercolor*{palette tertiary}{fg=red,bg=black!10}
\usebeamercolor{palette tertiary}
\colorlet{color4}{bg}

\begin{document}
\begin{frame}
\frametitle{Literature Review}
\resizebox{0.9\textwidth}{!}{
\hspace{50pt}\begin{tikzpicture}
    \path[mindmap,
        concept color=structure.fg,
        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=color1] {
            node[concept] {practical}[clockwise from=90]
            child { node[concept, concept color=color2] {algorithms} [clockwise from=40]
            child { node[concept] {databases} }
            child { node[concept] {WWW} }}
            child { node[concept] {data structures} }
        }  
        child[concept color=color3,text=black] {
            node[concept] {applied}[clockwise from=360]
            child { node[concept,level distance=16cm,sibling angle=60] {databases} }
        }
        child[concept color=color4,text=black] { 
            node[concept] {technical} 
        }
        child[concept color=color4!30!black, text=white] { 
            node[concept,text width=2cm] {theoretical} 
        };
\end{tikzpicture}}
\end{frame}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada