Discussion:
beamer theme: black backgroud, yellow titles and white text
(too old to reply)
Sivaram Neelakantan
2021-10-03 06:27:56 UTC
Permalink
What is the easiest way to configure the above in beamer? I have no
idea what the final structure of slide components would look like but
have info only that it's got to be black background, slide titles and
subtitles are to be in yellow and running text of various sizes are to
be in white.

I have been using
\usepackage{beamerthemeWarsaw}
\setbeameroption{show notes on second screen=right} % Both
\useoutertheme[subsection=false]{smoothbars}
\setbeamercolor{title in head/foot}{fg=Green}

which gives blue on white. How do I tweak this for the above colours
please?

sivaram
--
samcarter8
2021-10-04 11:24:52 UTC
Permalink
It sounds as if a simplified version of this theme
https://topanswers.xyz/tex?q=1280 would be close to what you are looking
for:

\documentclass{beamer}

\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{structure}{fg=yellow}
\setbeamercolor{normal text}{fg=white}

\begin{document}

\begin{frame}
\frametitle{title}
\framesubtitle{title}
abc
\end{frame}

\end{document}
Post by Sivaram Neelakantan
What is the easiest way to configure the above in beamer? I have no
idea what the final structure of slide components would look like but
have info only that it's got to be black background, slide titles and
subtitles are to be in yellow and running text of various sizes are to
be in white.
I have been using
\usepackage{beamerthemeWarsaw}
\setbeameroption{show notes on second screen=right} % Both
\useoutertheme[subsection=false]{smoothbars}
\setbeamercolor{title in head/foot}{fg=Green}
which gives blue on white. How do I tweak this for the above colours
please?
sivaram
Sivaram Neelakantan
2021-10-05 11:32:45 UTC
Permalink
Post by samcarter8
It sounds as if a simplified version of this theme
https://topanswers.xyz/tex?q=1280 would be close to what you are looking
\documentclass{beamer}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{structure}{fg=yellow}
\setbeamercolor{normal text}{fg=white}
\begin{document}
\begin{frame}
\frametitle{title}
\framesubtitle{title}
abc
\end{frame}
\end{document}
[snipped 21 lines]

While I haven't fully tested it out with my theme, this is pretty much
the colour scheme that I was looking for. Thanks for the minimal
example code.


sivaram
--
Sivaram Neelakantan
2021-10-05 17:11:00 UTC
Permalink
Post by samcarter8
It sounds as if a simplified version of this theme
https://topanswers.xyz/tex?q=1280 would be close to what you are looking
\documentclass{beamer}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{structure}{fg=yellow}
\setbeamercolor{normal text}{fg=white}
\begin{document}
\begin{frame}
\frametitle{title}
\framesubtitle{title}
abc
\end{frame}
\end{document}
[snipped 20 lines]
How do I change the line under the frametitle to a different colour.
Using Warsaw theme it stays white irrespective of what frame element
colour I change

\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{background}{bg=black}
\setbeamercolor{title}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{titlelike}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{structure}{fg=white,bg=black}
\setbeamercolor{frametitle}{fg=white,bg=black}
\setbeamercolor{headline}{fg=yellow,bg=yellow}
\setbeamercolor{upper separation line head}{fg=yellow}
\setbeamercolor{separation line}{fg=yellow}
\setbeamercolor{fine separation line}{fg=yellow}

sivaram
--
samcarter8
2021-10-06 14:59:54 UTC
Permalink
Can you make a compilable MWE to recreate your mysterious white line?
Post by Sivaram Neelakantan
Post by samcarter8
It sounds as if a simplified version of this theme
https://topanswers.xyz/tex?q=1280 would be close to what you are looking
\documentclass{beamer}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{structure}{fg=yellow}
\setbeamercolor{normal text}{fg=white}
\begin{document}
\begin{frame}
\frametitle{title}
\framesubtitle{title}
abc
\end{frame}
\end{document}
[snipped 20 lines]
How do I change the line under the frametitle to a different colour.
Using Warsaw theme it stays white irrespective of what frame element
colour I change
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{background}{bg=black}
\setbeamercolor{title}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{titlelike}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{structure}{fg=white,bg=black}
\setbeamercolor{frametitle}{fg=white,bg=black}
\setbeamercolor{headline}{fg=yellow,bg=yellow}
\setbeamercolor{upper separation line head}{fg=yellow}
\setbeamercolor{separation line}{fg=yellow}
\setbeamercolor{fine separation line}{fg=yellow}
sivaram
Sivaram Neelakantan
2021-10-07 11:01:17 UTC
Permalink
Post by samcarter8
Can you make a compilable MWE to recreate your mysterious white line?
Here it is

--8<---------------cut here---------------start------------->8---
\documentclass[usenames,dvipsnames]{beamer}
\usepackage[absolute,verbose,overlay]{textpos}
\usepackage[utf8x]{inputenc}
\usepackage{pgfpages}
\usepackage{beamerthemeWarsaw}
\usepackage{colortbl}
\usepackage{graphicx}
\usepackage{fancyvrb}
\useoutertheme[subsection=false]{smoothbars}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{background}{bg=black}
\setbeamercolor{title}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{titlelike}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{structure}{fg=white,bg=black}
\setbeamercolor{frametitle}{fg=white,bg=black}
\setbeamercolor{headline}{fg=yellow,bg=yellow}
\setbeamercolor{upper separation line head}{fg=yellow}
\setbeamercolor{separation line}{fg=yellow}
\setbeamercolor{fine separation line}{fg=yellow}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{block title}{use=structure,fg=white,bg=black}
\setbeamercolor{block body}{use=structure,fg=white,bg=yellow}
\setbeamercolor{title in head/foot}{fg=white}
\begin{document}
\author{Sivaram,\\ \color{RoyalBlue}{***@null.com}}%
\date{\today }%
\title[MWE\hspace{10em} \insertframenumber\ of
\inserttotalframenumber]{MWE}
\institute{MWE}
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Sample header}
The line above should be yellow
\end{frame}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---


[snipped 41 lines]

sivaram
--
samcarter8
2021-10-07 14:33:37 UTC
Permalink
With `\setbeamercolor{normal text}{fg=white,bg=black}`:

\documentclass[usenames,dvipsnames]{beamer}
\usepackage[absolute,verbose,overlay]{textpos}
\usepackage[utf8x]{inputenc}
\usepackage{pgfpages}
\usepackage{beamerthemeWarsaw}
\usepackage{colortbl}
\usepackage{graphicx}
\usepackage{fancyvrb}
\useoutertheme[subsection=false]{smoothbars}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{background}{bg=black}
\setbeamercolor{title}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{titlelike}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{structure}{fg=white,bg=black}
\setbeamercolor{frametitle}{fg=white,bg=black}
\setbeamercolor{headline}{fg=yellow,bg=yellow}
\setbeamercolor{upper separation line head}{fg=yellow}
\setbeamercolor{separation line}{fg=yellow}
\setbeamercolor{fine separation line}{fg=yellow}
\setbeamercolor{normal text}{fg=white,bg=black}
\setbeamercolor{block title}{use=structure,fg=white,bg=black}
\setbeamercolor{block body}{use=structure,fg=white,bg=yellow}
\setbeamercolor{title in head/foot}{fg=white}
\begin{document}
\author{Sivaram,\\ \color{RoyalBlue}{***@null.com}}%
\date{\today }%
\title[MWE\hspace{10em} \insertframenumber\ of
\inserttotalframenumber]{MWE}
\institute{MWE}
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Sample header}
The line above should be yellow
\end{frame}
\end{document}
Post by Sivaram Neelakantan
\documentclass[usenames,dvipsnames]{beamer}
\usepackage[absolute,verbose,overlay]{textpos}
\usepackage[utf8x]{inputenc}
\usepackage{pgfpages}
\usepackage{beamerthemeWarsaw}
\usepackage{colortbl}
\usepackage{graphicx}
\usepackage{fancyvrb}
\useoutertheme[subsection=false]{smoothbars}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{background}{bg=black}
\setbeamercolor{title}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{titlelike}{parent=structure,fg=white,bg=yellow}
\setbeamercolor{structure}{fg=white,bg=black}
\setbeamercolor{frametitle}{fg=white,bg=black}
\setbeamercolor{headline}{fg=yellow,bg=yellow}
\setbeamercolor{upper separation line head}{fg=yellow}
\setbeamercolor{separation line}{fg=yellow}
\setbeamercolor{fine separation line}{fg=yellow}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{block title}{use=structure,fg=white,bg=black}
\setbeamercolor{block body}{use=structure,fg=white,bg=yellow}
\setbeamercolor{title in head/foot}{fg=white}
\begin{document}
\date{\today }%
\title[MWE\hspace{10em} \insertframenumber\ of
\inserttotalframenumber]{MWE}
\institute{MWE}
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Sample header}
The line above should be yellow
\end{frame}
\end{document}
Sivaram Neelakantan
2021-10-07 15:18:41 UTC
Permalink
Strange, I lost the white line below the frametitle with this change.
Did you get the yellow line after compilation or you're suggesting
this correction?

[snipped 82 lines]

sivaram
--
samcarter8
2021-10-08 00:15:29 UTC
Permalink
I'm suggesting this as a fix. That's not a line, but an artefact of a
shadow which did not adapt well to the background colour.

In this branch you can find a beamer version which uses a transparent
shadow and thus will automatically adapt to the current background:

https://github.com/josephwright/beamer/compare/main...samcarter:717-transparent-shadows-for-the-smoothba
Post by Sivaram Neelakantan
Strange, I lost the white line below the frametitle with this change.
Did you get the yellow line after compilation or you're suggesting
this correction?
[snipped 82 lines]
sivaram
Sivaram Neelakantan
2021-10-08 03:30:07 UTC
Permalink
Post by samcarter8
I'm suggesting this as a fix. That's not a line, but an artefact of a
shadow which did not adapt well to the background colour.
In this branch you can find a beamer version which uses a transparent
https://github.com/josephwright/beamer/compare/main...samcarter:717-transparent-shadows-for-the-smoothba
Thanks for the code. I'll try this out.


[snipped 11 lines]



sivaram
--
Sivaram Neelakantan
2021-10-08 05:35:30 UTC
Permalink
Post by samcarter8
I'm suggesting this as a fix. That's not a line, but an artefact of a
shadow which did not adapt well to the background colour.
In this branch you can find a beamer version which uses a transparent
https://github.com/josephwright/beamer/compare/main...samcarter:717-transparent-shadows-for-the-smoothba
[snipped 12 lines]

I did a search for hrule in SO and got this link

https://tex.stackexchange.com/questions/343517/beamer-full-width-hrule-below-frame-title#343520

I added a \color to the \rule. This comes out OK, if I remove/drop
smoothbars though.

\setbeamertemplate{frametitle}{%
\usebeamerfont{frametitle}\insertframetitle%
\vphantom{g}% To avoid fluctuations per frame
%\hrule% Uncomment to see desired effect, without a full-width hrule
\par% <-- added
\hspace*{-\dimexpr0.5\paperwidth-0.5\textwidth}% <-- calculation of left margin width
\color{yellow}{\rule[0.5\baselineskip]{\paperwidth}{0.4pt}}%
}
%\useoutertheme[subsection=false]{smoothbars}

sivaram
--

Loading...