reference between slides in Beamr - latex

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}

Related

Changing the font for alert in beamer for math mode

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}

How to highlight the current Beamer bullet/text in different color?

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}

Switch Overlay Specification in Latex Beamer

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}

center and align item within enumerate latex

I would like to align my equations for nicely in latex. My problem is that those equations represent conditions with that they need to be numerated. What I have now numerates my equation but my first equation is not align with the others. Any suggestion?
\begin{center}
\begin{enumerate}
\centering
\item $f_k(x_k)=y_k$
\item $f_k(x_{k+1})=f_{k+1}(x_{k+1})$
\item $f^\prime_k(x_{k+1})=f^\prime_{k+1}(x_{k+1})$
\item $f^{\prime\prime}_k(x_{k+1})=f^{\prime\prime}_{k+1}(x_{k+1})$
\end{enumerate}
\end{center}
Blockquote
Hello you may use a minipage and delete the \centering.
I also added the \fbox just to see the borders of the minipage, you may take it out if you wish.
\begin{center}
\fbox{
\begin{minipage}{2in}
\begin{enumerate}
\item $f_k(x_k)=y_k$
\item $f_k(x_{k+1})=f_{k+1}(x_{k+1})$
\item $f^\prime_k(x_{k+1})=f^\prime_{k+1}(x_{k+1})$
\item $f^{\prime\prime}_k(x_{k+1})=f^{\prime\prime}_{k+1}(x_{k+1})$
\end{enumerate}
\end{minipage}
}
\end{center}

Having two item index in same line

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}

Resources