Text Formattingbeamer | Deemphasizing Text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Deemphasizing Text

Post by latexhelp1 »

I have a slide in Beamer for which I'd like to have part of it deemphasized. By deemphasized, I mean make the text appear lighter in color, perhaps gray, perhaps as a shadow.

For example, see p. 22 in the PDF of the following:
https://sites.google.com/site/tarekalex ... ssan/files
(File "BurchardiHassan2010_Slides.pdf")

Below if my current code. I'd like all of the text demphasized EXCEPT for the lines

Code: Select all

\textbf{1. Framework}
\begin{itemize}
\item Clarification 1
\item Clarification 2
\end{itemize}
Here is the full code. I pray that it is a minimum working example. I'm also attaching the .pdf.

Code: Select all

\documentclass[professionalfont]{beamer}
\mode<presentation>
\usetheme{CambridgeUS}
\useoutertheme{miniframes}

\beamertemplatenavigationsymbolsempty

\begin{document}

\addtocounter{framenumber}{-1}
\section*{}
\frame
{
\frametitle{Outline of Presentation}
\textbf{1. Framework}
\begin{itemize}
\item Clarification 1
\item Clarification 2
\end{itemize}

\vspace{0.5cm}
2. Section 2

\vspace{0.5cm}
3. Section 3

\vspace{0.5cm}
4. Section 4

\vspace{0.5cm}
5. Section 5
}

\section{Section 1}
\subsection{}

\end{document}
I'd like to have Sections 2 - 5 deemphasized.

I very much appreciate any help you can provide.
Attachments
Prohibition Tables.pdf
(42.55 KiB) Downloaded 454 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Deemphasizing Text

Post by Stefan Kottwitz »

You could simply use a gray text color. I recommend defining a macro in the preamble for that, since that can easily be changed consistently for the document:

Code: Select all

\newcommand{\light}[1]{\textcolor{gray}{#1}}
Later in the slides:

Code: Select all

\light{2. Section 2}
slide.png
slide.png (7.28 KiB) Viewed 23462 times
However, I would use \tableofcontents, or list such as with enumerate, instead of manual numbering.

Stefan
LaTeX.org admin
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Deemphasizing Text

Post by latexhelp1 »

Stefan,

Thank you so much! This looks great. Thank you so much for getting back to me so quickly and for taking the time to help me. I am glad that you could understand my Beamer code and my question.

Is this gray that you are creating same gray that would appear if I were to use the tableofcontents?
Stefan_K wrote:You could simply use a gray text color. I recommend defining a macro in the preamble for that, since that can easily be changed consistently for the document:

Code: Select all

\newcommand{\light}[1]{\textcolor{gray}{#1}}
Later in the slides:

Code: Select all

\light{2. Section 2}
slide.png
I didn't want to use tableofcontents because the contents that I'd like to appear on the slide are longer in length than I could comfortably fit in the row with the Section titles and the bubbles. Also, the subsection would appear throughout the presentatoin, and I'd only want it to appear on this manual table of content slides.
Stefan_K wrote: However, I would use \tableofcontents,


What does this mean:
Stefan_K wrote: or list such as with enumerate, instead of manual numbering.

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

beamer | Deemphasizing Text

Post by Stefan Kottwitz »

I mean something like

Code: Select all

\begin{enumerate}
  \item A section
  \item Another section
  \item Again a section
\end{enumerate}
can be at least a bit better than manual numbering. Though it would use the enumerate label style of your beamer theme.

And, normally, I would use \label and \ref for automatically cross-referencing to section numbers, just for the case their order would change. But that's not easily possible in a beamer presentation.

Stefan
LaTeX.org admin
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Deemphasizing Text

Post by latexhelp1 »

Thank you Stefan! That all makes sense!
Stefan_K wrote:I mean something like

Code: Select all

\begin{enumerate}
  \item A section
  \item Another section
  \item Again a section
\end{enumerate}
can be at least a bit better than manual numbering. Though it would use the enumerate label style of your beamer theme.

And, normally, I would use \label and \ref for automatically cross-referencing to section numbers, just for the case their order would change. But that's not easily possible in a beamer presentation.

Stefan
May I still please follow up on the following? Do you know if the light macro and the gray that you are setting is the same as if you had used

Code: Select all

\tableofcontents
Stefan_K wrote:You could simply use a gray text color. I recommend defining a macro in the preamble for that, since that can easily be changed consistently for the document:

Code: Select all

\newcommand{\light}[1]{\textcolor{gray}{#1}}
Later in the slides:

Code: Select all

\light{2. Section 2}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: beamer | Deemphasizing Text

Post by Stefan Kottwitz »

I guess it's different, and it depends on the theme. As you make it manually, you can ignore it.

Stefan
LaTeX.org admin
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Deemphasizing Text

Post by latexhelp1 »

Thank you Stefan. Perhaps I'm not being clear. My apologies for all of the back and forth. I really appreciate your continued help.

I would like to set the color/demphasis to manually look like the effects of

Code: Select all

\tableofcontents
For my themes, I use

Code: Select all

\documentclass[professionalfont]{beamer}
\mode<presentation>
\usetheme{Warsaw}
\usetheme{CambridgeUS}
Stefan_K wrote:I guess it's different, and it depends on the theme. As you make it manually, you can ignore it.

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

beamer | Deemphasizing Text

Post by Stefan Kottwitz »

latexhelp1 wrote:I would like to set the color/demphasis to manually look like the effects of \tableofcontents
I just don't see what effects you mean:

Code: Select all

\documentclass[professionalfont]{beamer}
\mode<presentation>
\usetheme{Warsaw}
\usetheme{CambridgeUS}
\begin{document}
\frame{\tableofcontents}
\section{Section 1}
\subsection{Subsection 1}\frame{\mbox{}}
\section{Section 2}
\subsection{Subsection 1}\frame{\mbox{}}
\section{Section 3}
\subsection{Subsection 1}\frame{\mbox{}}
\end{document}
toc.png
toc.png (5.02 KiB) Viewed 23445 times
Stefan
LaTeX.org admin
Post Reply