
好的。我正在嘗試更改投影機模板的顏色。我正在使用哥本哈根和金鋼狼。
這是幻燈片的樣子,以及我正在使用的程式碼。
\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}