LaTeX forum ⇒ Presentations and PostersCustomize color of frame's section head/foot Topic is solved

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
levy
Posts: 1
Joined: Mon Nov 07, 2016 8:58 am

Customize color of frame's section head/foot

Postby levy » Mon Nov 07, 2016 9:12 am

Hi everyone,

I would like to change to my favorite Green color (of the svgnames package) the default color of the frame's section head and foot (I don't know what it's exactly called, but basically it's where presenters often put his name, seminar name/venue, dates, and page number, both on top and at bottom of the frame.

I'm a rather inexperienced Beamer user. Could you please help?

  1. \documentclass [xcolor=svgnames, t] {beamer}
  2. \usepackage[round,sort&compress,authoryear]{natbib}
  3. \usepackage{booktabs, comment}
  4. \usepackage[absolute, overlay]{textpos}
  5. %%% Beamer them customization
  6. \useoutertheme{infolines}
  7. \usetheme{CambridgeUS} % I like this them but want to customize it a bit
  8. \usecolortheme[named=Green]{structure} % I want this color, etc.
  9. \setbeamercolor{normal text}{fg=black} % Control text color
  10. \setbeamercolor{title}{fg=Green} % Color of slide title
  11. \setbeamercolor{frametitle}{fg=Green,bg=Green!0} % Color of frame title
  12. \setbeamercolor{section in head/foot}{bg=Green}
  13. \setbeamercolor{author in head/foot}{bg=Green}
  14. \setbeamertemplate{navigation symbols}{} % Turn off all nagivation symbols
  15. \setbeamertemplate{frametitle continuation}{} % Enable frame breaks but suppress numbering
  16. \setbeamertemplate{items}[circle]
  17. \newenvironment{reference}[2]{ %
  18. \begin{textblock*} {\textwidth} (#1, #2)
  19. \footnotesize\it\bgroup\color{red!50!black}} {\egroup\end{textblock*}}
  20. \usepackage[]{hyperref} % Use "hidelinks" option to make links black. Put "linktocpage" as an option will show red link around page numbes in TOC only, not the whole text and page numbers
  21. \hypersetup{colorlinks=True, linkcolor=white, citecolor=Green, urlcolor=blue, pdfstartview={XYZ null null 1.73}, pdfcreator={}, pdfauthor={}, pdftitle={}, bookmarksopenlevel=1}
  22. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% STARTING! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  23. \title[\textcolor{Green}{My Seminar Here}] {Presentation Title}
  24. \subtitle[]{\textcolor{black}{\scriptsize }} % Nice consistent color: Maroon
  25. \author[\textcolor{white}{My Name Here}]
  26. {
  27. \small Author 1's Name\inst{\dagger}\\
  28. \and Author 2's Name \inst{\dagger}\\
  29. \and Author 3's Name\inst{\S} \\
  30. \and Author 4's Name\inst{\P} \\
  31. \and Author 5's Name\inst{\dagger}
  32. }
  33. \institute[]
  34. {
  35. \inst{\dagger} \scriptsize University 1 \and
  36. \inst{\S} \scriptsize University 2 \and
  37. \inst{\P} \scriptsize University 3
  38. }
  39. \date[\textcolor{Green}{\today}]{Place, 201X}
  40.  
  41. \begin{document}
  42. \begin{frame} [plain] \label{titlepage}
  43. \titlepage
  44. \end{frame}
  45.  
  46. \section{Outlines}
  47. \begin{frame}{Outline}
  48. \begin{enumerate}
  49. \item First
  50. \item Second
  51. \item Third
  52. \item Fourth
  53. \item Fifth
  54. \item Conclusions
  55. \end{enumerate}
  56. \end{frame}
  57.  
  58. \section{Results}
  59. \subsection{First results}
  60.  
  61. Two things I can't figure out how to do:
  62.  
  63. \begin{itemize}
  64. \item How to convert "First results" as shown in ``Section in Head" from WHITE color to Green color (Green color of svgnames)?
  65. \item How to convert the PAGE NUMBER from DEFAULT Maroon-looking or Brown-looking number to Green to be consistent with GREEN color?
  66. \end{itemize}
  67.  
  68. \end{document}

User avatar
Stefan Kottwitz
Site Admin
Posts: 8945
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Nov 09, 2016 2:40 pm

Hi Levy,

welcome to the forum!

Add to your preamble:

\setbeamercolor{subsection in head/foot}{bg=Green}
\setbeamercolor{title in head/foot}{bg=Green}
\setbeamercolor{date in head/foot}{bg=Green}


Or, another rough way:

\setbeamercolor*{palette primary}{bg=Green}
\setbeamercolor*{palette secondary}{bg=Green}


Add fg=something to the argument (separated by a comma) if you need to change that too.

Stefan
Site admin


Return to “Presentations and Posters”

Who is online

Users browsing this forum: No registered users and 1 guest