Changing hyperlink color changes beamer section header colors
When I use hypersetup to change the link colors for the outline of my presentation, it also changes the colors of the section and subsection titles in the header. I have some code that I believe should override this based on patchcmd, but it doesn't seem to work. When I add tracingpatches it does not report any issues. How can I get the section/subsection to show up as white instead of black?
MWE:
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
hypersetup{colorlinks,linkcolor=black}
makeatletter
renewcommandinsertshorttitle[1]{%
beamer@setupshort{#1}%
letthanks=@gobble%
ifnumc@page=1%
hyperlinkpresentationend{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
else%
hyperlinkpresentationstart{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
fi}
makeatother
makeatletter
patchcmd{beamer@section}
{definsertsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{section in head/foot}#1}}}
{}{}
patchcmd{beamer@subsection}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{subsection in head/foot}#1}}}
{}{}
makeatother
beamertemplatenavigationsymbolsempty
begin{document}
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}
beamer header-footer
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
When I use hypersetup to change the link colors for the outline of my presentation, it also changes the colors of the section and subsection titles in the header. I have some code that I believe should override this based on patchcmd, but it doesn't seem to work. When I add tracingpatches it does not report any issues. How can I get the section/subsection to show up as white instead of black?
MWE:
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
hypersetup{colorlinks,linkcolor=black}
makeatletter
renewcommandinsertshorttitle[1]{%
beamer@setupshort{#1}%
letthanks=@gobble%
ifnumc@page=1%
hyperlinkpresentationend{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
else%
hyperlinkpresentationstart{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
fi}
makeatother
makeatletter
patchcmd{beamer@section}
{definsertsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{section in head/foot}#1}}}
{}{}
patchcmd{beamer@subsection}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{subsection in head/foot}#1}}}
{}{}
makeatother
beamertemplatenavigationsymbolsempty
begin{document}
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}
beamer header-footer
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
When I use hypersetup to change the link colors for the outline of my presentation, it also changes the colors of the section and subsection titles in the header. I have some code that I believe should override this based on patchcmd, but it doesn't seem to work. When I add tracingpatches it does not report any issues. How can I get the section/subsection to show up as white instead of black?
MWE:
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
hypersetup{colorlinks,linkcolor=black}
makeatletter
renewcommandinsertshorttitle[1]{%
beamer@setupshort{#1}%
letthanks=@gobble%
ifnumc@page=1%
hyperlinkpresentationend{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
else%
hyperlinkpresentationstart{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
fi}
makeatother
makeatletter
patchcmd{beamer@section}
{definsertsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{section in head/foot}#1}}}
{}{}
patchcmd{beamer@subsection}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{subsection in head/foot}#1}}}
{}{}
makeatother
beamertemplatenavigationsymbolsempty
begin{document}
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}
beamer header-footer
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
When I use hypersetup to change the link colors for the outline of my presentation, it also changes the colors of the section and subsection titles in the header. I have some code that I believe should override this based on patchcmd, but it doesn't seem to work. When I add tracingpatches it does not report any issues. How can I get the section/subsection to show up as white instead of black?
MWE:
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
hypersetup{colorlinks,linkcolor=black}
makeatletter
renewcommandinsertshorttitle[1]{%
beamer@setupshort{#1}%
letthanks=@gobble%
ifnumc@page=1%
hyperlinkpresentationend{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
else%
hyperlinkpresentationstart{beamer@insertshort{usebeamercolor*[fg]{title in head/foot}beamer@shorttitle}}%
fi}
makeatother
makeatletter
patchcmd{beamer@section}
{definsertsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{section in head/foot}#1}}}
{}{}
patchcmd{beamer@subsection}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{#1}}}
{definsertsubsectionhead{hyperlink{Navigationthec@page}{usebeamercolor*[fg]{subsection in head/foot}#1}}}
{}{}
makeatother
beamertemplatenavigationsymbolsempty
begin{document}
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}
beamer header-footer
beamer header-footer
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 hours ago
astay13astay13
1083
1083
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
astay13 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Instead of messing with the hypersetup you can change the colours of toc entries with setbeamercolor{section in toc}{fg=green}
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in toc}{fg=green}
setbeamercolor{subsection in toc}{fg=green}
beamertemplatenavigationsymbolsempty
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
begin{document}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}

Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
astay13 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470317%2fchanging-hyperlink-color-changes-beamer-section-header-colors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Instead of messing with the hypersetup you can change the colours of toc entries with setbeamercolor{section in toc}{fg=green}
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in toc}{fg=green}
setbeamercolor{subsection in toc}{fg=green}
beamertemplatenavigationsymbolsempty
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
begin{document}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}

Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
add a comment |
Instead of messing with the hypersetup you can change the colours of toc entries with setbeamercolor{section in toc}{fg=green}
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in toc}{fg=green}
setbeamercolor{subsection in toc}{fg=green}
beamertemplatenavigationsymbolsempty
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
begin{document}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}

Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
add a comment |
Instead of messing with the hypersetup you can change the colours of toc entries with setbeamercolor{section in toc}{fg=green}
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in toc}{fg=green}
setbeamercolor{subsection in toc}{fg=green}
beamertemplatenavigationsymbolsempty
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
begin{document}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}

Instead of messing with the hypersetup you can change the colours of toc entries with setbeamercolor{section in toc}{fg=green}
documentclass{beamer}
usetheme{AnnArbor}
usepackage{multicol}
definecolor{beamer@myBlue}{RGB}{19,41,75}
definecolor{beamer@myOrange}{RGB}{232,74,39}
definecolor{beamer@myGray}{RGB}{210,210,210}
setbeamercolor{frametitle}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{normal text}{fg=black}
setbeamercolor{title}{fg=beamer@myBlue,bg=beamer@myOrange!75}
setbeamercolor{item projected}{fg=white,bg=beamer@myOrange}
setbeamercolor{block title}{fg=beamer@myBlue,bg=beamer@myOrange}
setbeamercolor{block body}{fg=blue,bg=beamer@myBlue!80}
setbeamercolor{title in head/foot}{fg=beamer@myBlue,bg=beamer@myGray}
setbeamercolor{author in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{institute in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{date in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in head/foot}{fg=white,bg=beamer@myBlue}
setbeamercolor{subsection in head/foot}{fg=white,bg=beamer@myOrange}
setbeamercolor{section in toc}{fg=green}
setbeamercolor{subsection in toc}{fg=green}
beamertemplatenavigationsymbolsempty
%% Presentation info
title[Test]{
This is a test of my template
}
author[J.~Smith]{John Smith}
institute[A]{Affiliation}
date[Jan. 15, 2019]{January 15, 2019}
begin{document}
%%%%
%% Titlepage
begin{frame}[plain]
titlepage
end{frame}
%%%%
%% Outline
begin{frame}
frametitle{Outline}
begin{multicols}{2}
tableofcontents
end{multicols}
end{frame}
%%%%
%%% Other slides start here
section{Introduction}
subsection{Overview}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
section{Conclusion}
subsection{Review}
begin{frame}
frametitle{Example}
begin{itemize}
item Here is a list:
begin{itemize}
item A
item B
item C
item D
item E
end{itemize}
item And another one:
begin{itemize}
item 1
item 2
item 3
end{itemize}
end{itemize}
end{frame}
newcounter{finalframe}
setcounter{finalframe}{value{framenumber}}
end{document}

answered 3 hours ago
samcartersamcarter
87.1k795279
87.1k795279
Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
add a comment |
Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
Thanks! Nice to know there's a much simpler way to do it
– astay13
20 mins ago
add a comment |
astay13 is a new contributor. Be nice, and check out our Code of Conduct.
astay13 is a new contributor. Be nice, and check out our Code of Conduct.
astay13 is a new contributor. Be nice, and check out our Code of Conduct.
astay13 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470317%2fchanging-hyperlink-color-changes-beamer-section-header-colors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown