
Okay. Ich versuche, die Farbe meiner Beamer-Vorlage zu ändern. Ich verwende Copenhagen und Wolverine.
So sehen die Folien aus und hier ist der Code, den ich verwende.
\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}
Ich möchte das Gelb in folgendes RGB ändern: 69, 91, 196
und das Orange auf folgendes RGB: 168, 178, 85
Wie kann ich das machen?
Danke!
Antwort1
Hinzufügen
\definecolor{aa}{RGB}{69, 91, 196}
\definecolor{bb}{RGB}{168, 178, 85}
\setbeamercolor*{palette primary}{bg=aa}
\setbeamercolor*{palette quaternary}{bg=bb}
macht den Trick.
Alternativ können Sie einzelne Farben auch manuell ändern, und zwar wie folgt:
\setbeamercolor{title}{bg=aa}
Dies erfordert allerdings deutlich mehr Ausprobieren, wenn Sie nicht wissen, wie Ihre konkrete Vorlage eingerichtet ist.
\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}