Color de texto en un nodo en estilo proyector

Color de texto en un nodo en estilo proyector

Escribí un archivo .sty simple basado en el tema del proyector 'metropolis' + fontspec + fuentes Fira. Me gusta en la portada la idea de que los autores y las instituciones aparezcan como en el MWE, es decir, una línea por autor(es)/institución. El inconveniente de este diseño es que, si quiero utilizar las macros \author e \institution, tengo que pasar los argumentos con \\coautores separados del mismo inst. align=leftse encarga de eso. El problema es que el nuevo párrafo utiliza el color predeterminado, que es el negro, y nada más \usebeamercolor[fg]{author}. El uso color = \usebeamercolor[fg]{author}en la definición del nodo da unaMissing \endcsname inserted error.color = white funciona, que es lo que estoy haciendo ahora, pero eso significa codificar el color, lo que es mejor evitar. Una solución podría ser dividir la lista de autores como enDivida la lista de \@autores en \yy recorro los autores, pero parece excesivo para lo que estoy haciendo. ¿Existe una forma más sencilla de aplicar \usebeamercolor[fg]{author}a todos los autores?

MWE:

\documentclass[11pt, aspectratio=169]{beamer}  % 
\usetheme[]{metropolis}

% Requirement
\usepackage{tikz}
\usepackage{fontspec}

% colors
\definecolor{BGlightBlu}{HTML}{3461AA}

% Fonts
\newfontfamily{\RuLight}{Rubik Light}

% Settings
\setbeamercolor*{author}{fg = white}


% innertheme 

\defbeamertemplate*{title page}{thisStyle}[1][]
{%

\begin{tikzpicture}[remember picture,overlay]
  \draw[fill=BGlightBlu, BGlightBlu] (current page.south west) rectangle
   (current page.north east);

% Title
\node
[   align=left,
    xshift=.6cm,
    yshift = 1cm, 
    minimum width=0.8\textwidth,
    text width=0.7\textwidth,
    anchor = west, 
    font = {\RuLight \LARGE},
    text = white,
    execute at begin node=\setlength{\baselineskip}{0.7\baselineskip}
] (title) at (current page.west)
{
    \inserttitle
};

% Author 
\node
[   
    below=0.6cm,
    align=left,
    anchor = north west,
    xshift=.6cm,
    font={\RuLight \footnotesize},
    align=left,
%   color=white, %works
%     color = \usebeamercolor[fg]{author}, % 'Missing \endcsname' error
    execute at begin node=\setlength{\baselineskip}{01.2\baselineskip}
] (author) at (title.south west){  \usebeamercolor[fg]{author} \insertauthor
                        };  

% Inst
\node
[   
    xshift = 0.5\textwidth,
    below=0.6cm,
    align=left,
    anchor = north west,
    font={\RuLight \footnotesize},
    align=left,
    color=white,
    execute at begin node=\setlength{\baselineskip}{1.2\baselineskip}
] (inst) at (title.south west){ \insertinstitute };

\end{tikzpicture}
}

\title[]{The title is so long that it needs two lines}
\author[]{Me Myself  \\    My First Coauthor, My Second Coauthor}
\institute[]{My Place alone (MPA)  \\ Their place, together (TPT)} 


\begin{document}

\begin{frame}[plain]
\maketitle
\end{frame}

\end{document}

Marco de título

Ahora divido el código en BgMWE.tex y beamerthemeMWE.sty para reproducir el error.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  beamerthemeMWE.sty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mode<presentation>
\usetheme[]{metropolis}

% Requirement
\usepackage{tikz}

% Settings
\setbeamercolor*{author}{fg = red}

% innertheme 

\setbeamertemplate{background}{
  \begin{tikzpicture}
  \draw[fill=BGlightBlu, BGlightBlu] (current page.south west) rectangle
   (current page.north east);
  \ifnum\thepage>1\relax%
   \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
   \fi
  \end{tikzpicture}
}

\defbeamertemplate*{title page}{MWE}[1][]
{%

\begin{tikzpicture}[remember picture,overlay]

% Title
\node
[   align=left,
    xshift=.6cm,
    yshift = 1cm, 
    minimum width=0.8\textwidth,
    text width=0.7\textwidth,
    anchor = west, 
    font = { \LARGE},
    text = white,
    execute at begin node=\setlength{\baselineskip}{0.7\baselineskip}
] (title) at (current page.west)
{
    \inserttitle
};

% Author 
\node
[   
    below=0.6cm,
    align=left,
    anchor = north west,
    xshift=.6cm,
    font={ \footnotesize},
    align=left,
    color = author.fg, % Here is the source of the error
    execute at begin node=\setlength{\baselineskip}{0.8\baselineskip}
] (author) at (title.south west){  \insertauthor
                        };  

% Inst
\node
[   
    xshift = 0.5\textwidth,
    below=0.6cm,
    align=left,
    anchor = north west,
    font={ \footnotesize},
    align=left,
    color=white,
    execute at begin node=\setlength{\baselineskip}{0.8\baselineskip}
] (inst) at (title.south west){ \insertinstitute };

\node[below=0.5cm,
     align=left,
     anchor = north west,
     font={ \large},
     color=white,
] (date) at (author.south west){ \insertdate};
\end{tikzpicture}[action]{%
{\usebeamercolor[fg]{author}}% just to initialize the colour
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  BgMWE.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt, aspectratio=169]{beamer}  % 
\usetheme{MWE}


\title[]{The title is so long that it needs two lines}
\author[]{Me Myself  \\    My First Coauthor, My Second Coauthor}
\institute[]{My Place alone (MPA)  \\ Their place, together (TPT)} 


\begin{document}

\begin{frame}[plain]
\maketitle
\end{frame}

\end{document}

Si compilo MWE.tex obtengoMWE.tex:14: Package xcolor Error: Undefined color `author.fg'.

Type  H <return>  for immediate help.```

Respuesta1

Siempre que haya usado el color del autor antes (un simple {\usebeamercolor[fg]{author}}servirá), puede acceder al componente de primer plano como author.fg:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  BgMWE.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt, aspectratio=169]{beamer}% 


\begin{filecontents*}[overwrite]{beamerthemeMWE.sty}
\mode<presentation>
\usetheme{moloch}% modern fork of the metropolis theme

% Requirement
\usepackage{tikz}

\definecolor{BGlightBlu}{HTML}{3461AA}

% Settings
\setbeamercolor*{author}{fg = red}

% innertheme 

\setbeamertemplate{background}{
  \begin{tikzpicture}
  \draw[fill=BGlightBlu, BGlightBlu] (current page.south west) rectangle
   (current page.north east);
  \ifnum\thepage>1\relax%
   \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
   \fi
  \end{tikzpicture}
}

\defbeamertemplate*{title page}{MWE}[1][]
{%
\begin{tikzpicture}[remember picture,overlay]

% Title
\node
[   align=left,
    xshift=.6cm,
    yshift = 1cm, 
    minimum width=0.8\textwidth,
    text width=0.7\textwidth,
    anchor = west, 
    font = {\LARGE},
    text = white,
    execute at begin node=\setlength{\baselineskip}{0.7\baselineskip}
] (title) at (current page.west)
{\inserttitle};

% Author 
\node
[   
    below=0.6cm,
    align=left,
    anchor = north west,
    xshift=.6cm,
    font={\footnotesize},
    align=left,
    color = author.fg, % Here is the source of the error
    execute at begin node=\setlength{\baselineskip}{0.8\baselineskip}
] (author) at (title.south west){\insertauthor};

% Inst
\node
[   
    xshift = 0.5\textwidth,
    below=0.6cm,
    align=left,
    anchor = north west,
    font={\footnotesize},
    align=left,
    color=white,
    execute at begin node=\setlength{\baselineskip}{0.8\baselineskip}
] (inst) at (title.south west){\insertinstitute};

\node[below=0.5cm,
     align=left,
     anchor = north west,
     font={\large},
     color=white,
] (date) at (author.south west){\insertdate};
\end{tikzpicture}
}

{\usebeamercolor[fg]{author}}
\end{filecontents*}
\usetheme{MWE}


\title[]{The title is so long that it needs two lines}
\author[]{Me Myself  \\    My First Coauthor, My Second Coauthor}
\institute[]{My Place alone (MPA)  \\ Their place, together (TPT)} 


\begin{document}

\begin{frame}[plain]
\maketitle
\end{frame}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada