I would like to change the font of the alerted text in my beamer, I want it to be in bold, in both text and math mode. I tried using boldmath but it doesn't work :
\begin{frame}{Test}
\setbeamercovered{invisible}
\setbeamercolor{alerted text}{fg=vertf}
\setbeamerfont{alerted text}{family=\sffamily, series=\bfseries\boldmath}
$$\alert<2>{x} + \alert<3>{y} + \alert<4>{z}$$
\begin{itemize}
\item <2-| alert#2>x
\item <3-| alert#3>y
\item <4-| alert#4>z
\end{itemize}
\end{frame}
You could work around the problem with something like this:
\documentclass{beamer}
\setbeamercovered{invisible}
\setbeamercolor{alerted text}{fg=green}
\setbeamerfont{alerted text}{series=\bfseries\boldmath}
\renewcommand<>{\alert}[1]{%
\ifmmode\text{%
\begin{alertenv}#2\relax$#1$\end{alertenv}%
}%
\else%
\begin{alertenv}#2\relax#1\end{alertenv}%
\fi%
}
\begin{document}
\begin{frame}
\frametitle{Test}
\[
\alert<2>{x} + \alert<3>{y} + \alert<4>{z}
\]
\begin{itemize}
\item <2-| alert#2>x
\item <3-| alert#3>y
\item <4-| alert#4>z
\end{itemize}
\end{frame}
\end{document}
Related
I have a code below. And I want to highlight the current formula in red while others are in black. many thanks in advance.
\documentclass{beamer}
\usetheme{default}
\title{Beamer Template}
\author{TeXstudio Team}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
\begin{frame}{Frame Title}
\begin{itemize}
\item bla
\pause \item \textcolor{red}{redbla}
\pause \item \textcolor{red}{redbla but the I want to see the second redbla in \textcolor{black}{black.}}
\end{itemize}
\end{frame}
\end{document}
You can highlight the current item in red by using the <alert#+> overlay specification:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Frame Title}
\begin{itemize}[<alert#+>]
\item bla
\item redbla
\item redbla but the I want to see the second redbla in black.
\end{itemize}
\end{frame}
\end{document}
I am trying to insert a figure but its caption is transparent in the current page. how to prevent this? many thanks in advance.
\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
\usepackage{hyperref}
\hypersetup{urlcolor=blue}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
%5 FOTO
\begin{frame}{Probleme heutiger Computer (3)}
%\begin{enumerate}
% \item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item kleiner geht nicht
\item Ausgleich mit Multicores /Multiprozessorsysteme
\end{itemize}
\end{itemize}
\pause
\begin{figure}
%\begin{itemize}
\begin{columns}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{./5.jpg}\caption{diverse Datenträger im Privatgebrauch}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{./5.2.jpg}\caption{Data Centre, Cloud}
\end{columns}
%\end{itemize}
\end{figure}
%\end{enumerate}
\end{frame}
\end{document}
It looks like
The caption is transparent because you are using \setbeamercovered{transparent}. You have two options to avoid the transparent caption:
immediately show the images and caption by avoid the \pause in front of them
switching to \setbeamercovered{invisible} either temporarily or for the whole presentation to delay the images and caption to the next overlay:
\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\setbeamerfont{caption}{size=\scriptsize}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
%5 FOTO
\begin{frame}
\frametitle{Probleme heutiger Computer (3)}
%\begin{enumerate}
% \item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item kleiner geht nicht
\item Ausgleich mit Multicores /Multiprozessorsysteme
\end{itemize}
\end{itemize}
{
\setbeamercovered{invisible}
\pause
\begin{figure}
%\begin{itemize}
\begin{columns}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{diverse Datenträger im Privatgebrauch}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{Data Centre, Cloud}
\end{columns}
%\end{itemize}
\end{figure}
%\end{enumerate}
}
\end{frame}
\end{document}
Some other comments:
you don't need \usepackage{hyperref}, beamer already loads it
I'd be wary to use \hypersetup{urlcolor=blue} with beamer, this can lead to strange alternations to the carefully constructed colour themes of beamer in places one would never expect
If your tex distribution was updated within the last 5 years or so, you don't need \usepackage[utf8]{inputenc}, that's now the default
If you just want to change the font size of the caption, you don't actually need the caption package, beamer has its own mechanism to control the size of captions
Instead of \begin{frame}{...} I would use \frametitle{...}. That's much more flexible and powerful
If you specify both the width and height of your images, they will end up distorted. Please consider adding the keepaspectratio option to avoid this
to avoid manually repeating the same frame title several times ("Probleme heutiger Computer (3)") you could use overlays and add the slide in frame counter to the frametitle
I have a code as below. I would like to create \ref{} between item 1 in the second and third slides. So whenever someone clicks item1 in the second slide jumps to the third slide and vice versa.
\documentclass[]{beamer}
\usetheme{Madrid}
\usenavigationsymbolstemplate{}
\title{Main Title}
\author{Jane Doe}
\institute{University A}
\date{\today}
\begin{document}
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}
\begin{frame}
\frametitle{First Page}
\begin{exampleblock}{Example}
This is an example which will be used later.
\end{exampleblock}
\end{frame}
\begin{frame}[label={important}]
\frametitle{Second Page}
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Third Page}
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
\end{frame}
\end{document}
\documentclass[]{beamer}
\usetheme{Madrid}
\usenavigationsymbolstemplate{}
\title{Main Title}
\author{Jane Doe}
\institute{University A}
\date{\today}
\begin{document}
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}
\begin{frame}
\frametitle{First Page}
\begin{exampleblock}{Example}
This is an example which will be used later.
\end{exampleblock}
\end{frame}
\begin{frame}[label={important}]
\frametitle{Second Page}
\begin{itemize}
\item \hyperlink{foo}{Item 1}
\item Item 2
\end{itemize}
\end{frame}
\begin{frame}[label={foo}]
\frametitle{Third Page}
\begin{itemize}
\item \hyperlink{important}{Item 1}
\item Item 2
\end{itemize}
\end{frame}
\end{document}
I have a beamer document with
\beamerdefaultoverlayspecification{<+->}
in the preamble to make \items appear separately. However, this seems to also make \bibitems
appear separately. How can I switch back to 'normal' within the document, such that all bibitems appear on one slide?
You can change the default overlay specification before the bibliography:
\documentclass{beamer}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\begin{frame}
\begin{itemize}
\item content...
\item content...
\end{itemize}
\end{frame}
\beamerdefaultoverlayspecification{}
\begin{frame}
\nocite{knuth:ct,angenendt}
\printbibliography
\end{frame}
\end{document}
I have written the following in latex
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{description}
\item Ans:
\begin{enumerate}
\item text
\end{enumerate}
\end{description}
\end{document}
and I get an output like
Ans:
1. text
I would like to know if there is a way to get an output like this
Ans: 1. text
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{description}
\item[Ans:]
\begin{enumerate}
\item text
\end{enumerate}
\end{description}
\end{document}