Beamer テンプレートの色を変更するにはどうすればよいですか?

Beamer テンプレートの色を変更するにはどうすればよいですか?

はい。ビーマー テンプレートの色を変更しようとしています。Copenhagen と wolverine を使用しています。

スライドと私が使用しているコードは次のとおりです。

ここに画像の説明を入力してください

\documentclass[t,aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Copenhagen}
\usecolortheme{wolverine}
\beamertemplatenavigationsymbolsempty   % Removes the interactive buttons
\setbeamertemplate{headline}{}  % Removes the header sections

% ADDS SLIDE NUMBERS
%\newcommand*\oldmacro{}%
%\let\oldmacro\insertshorttitle%
%\renewcommand*\insertshorttitle{%
%   \oldmacro\hfill%
%   \insertframenumber\,/\,\inserttotalframenumber}

% Additional packages needed
\usepackage{amsmath} % For ???
\usepackage{dsfont}  % For mathds font
\usepackage{hologo}  % For BibTeX font
\usepackage{lmodern} % For ???

%Information to be included in the title page:
 \title{Central Bank Watching}

 \author{NAME}

 \institute[University]
 {
   University \newline \newline March 2019
 }

\date[\today]{}

\titlegraphic{\flushleft \includegraphics[scale=0.25]{UNI.png}}

% The below defines the footer such that it is:
% First Last (Institution) || Title           frame / frame total
\setbeamertemplate{footline}{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~(\insertshortinstitute)
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle\hfill\insertframenumber\,/\,\inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}

% The below is used for creating section pages
\makeatletter
\setbeamertemplate{section page}
{
    \begin{centering}
    \begin{beamercolorbox}[sep=12pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{part title}
    \usebeamerfont{section title}\insertsection\par
    \end{beamercolorbox}
    \end{centering}
}
% \setbeamertemplate{section page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]
\setbeamertemplate{subsection page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]
\makeatother

\AtBeginSection[]{
    \begin{frame}[plain,c]
        \sectionpage
    \end{frame}
}

\begin{document}

\frame{\titlepage}

...

\end{document}

黄色を次のRGBに変更します: 69, 91, 196

オレンジはRGBで168、178、85

これどうやってするの?

ありがとう!

答え1

追加

\definecolor{aa}{RGB}{69, 91, 196}
\definecolor{bb}{RGB}{168, 178, 85}
\setbeamercolor*{palette primary}{bg=aa}
\setbeamercolor*{palette quaternary}{bg=bb}

うまくいきます。

あるいは、次のように個々の色を手動で変更することもできます。

\setbeamercolor{title}{bg=aa}

ただし、特定のテンプレートがどのように設定されているかがわからない場合は、さらに多くの試行錯誤が必要になります。

ここに画像の説明を入力してください

\documentclass[t,aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Copenhagen}
\usecolortheme{wolverine}
\beamertemplatenavigationsymbolsempty   % Removes the interactive buttons
\setbeamertemplate{headline}{}  % Removes the header sections

\definecolor{aa}{RGB}{69, 91, 196}
\definecolor{bb}{RGB}{168, 178, 85}
\setbeamercolor*{palette primary}{bg=aa}
\setbeamercolor*{palette quaternary}{bg=bb}



% ADDS SLIDE NUMBERS
%\newcommand*\oldmacro{}%
%\let\oldmacro\insertshorttitle%
%\renewcommand*\insertshorttitle{%
%   \oldmacro\hfill%
%   \insertframenumber\,/\,\inserttotalframenumber}

% Additional packages needed
\usepackage{amsmath} % For ???
\usepackage{dsfont}  % For mathds font
\usepackage{hologo}  % For BibTeX font
\usepackage{lmodern} % For ???

%Information to be included in the title page:
 \title{Central Bank Watching}

 \author{NAME}

 \institute[University]
 {
     University \newline \newline March 2019
 }

\date[\today]{}

\titlegraphic{\flushleft \includegraphics[scale=0.25]{UNI.png}}

% The below defines the footer such that it is:
% First Last (Institution) || Title           frame / frame total
\setbeamertemplate{footline}{%
    \leavevmode%
    \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
        \usebeamerfont{author in head/foot}\insertshortauthor~(\insertshortinstitute)
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
        \usebeamerfont{title in head/foot}\insertshorttitle\hfill\insertframenumber\,/\,\inserttotalframenumber
    \end{beamercolorbox}}%
    \vskip0pt%
}

% The below is used for creating section pages
\makeatletter
\setbeamertemplate{section page}
{
        \begin{centering}
        \begin{beamercolorbox}[sep=12pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{part title}
        \usebeamerfont{section title}\insertsection\par
        \end{beamercolorbox}
        \end{centering}
}
% \setbeamertemplate{section page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]
\setbeamertemplate{subsection page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]
\makeatother

\AtBeginSection[]{
        \begin{frame}[plain,c]
                \sectionpage
        \end{frame}
}

\begin{document}

\frame{\titlepage}

...

\end{document}

関連情報