Image

Velos(Overlays) en diapositivas

Esta sección está dedicada a explicar cómo incorporar velos que permitan presentar parcialmente el contenido de una diapositiva hecha en LaTeX.

\documentclass[aspectratio=169,14pt]{beamer}
\usetheme{default}
\usepackage[spanish]{babel}
\usepackage{tikz,xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepackage{fancybox}
\usepackage{graphicx}
\usepackage{fancyvrb}
\usepackage{etoolbox, amsfonts,amsmath}
\setbeamercovered{invisible}
\definecolor{griss}{HTML}{CCCCCC}
\title{Transiciones}

\begin{document}

\section{Opacidad}
    \setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Opacidad
    \end{center}
\end{frame}

\setbeamercolor{background canvas}{bg=white}
\begin{frame}
    $$\setminus \texttt{setbeamercovered}\{
    invisible, transparent
    \}$$


    
    
\end{frame} 
    \setbeamercolor{background canvas}{bg=griss}
    \begin{frame}[plain]
        \begin{center}
            \Huge En una lista  
        \end{center}
    \end{frame}
    
\setbeamercolor{background canvas}{bg=white}
\section{En una lista}
\begin{frame}[fragile]

    \begin{minipage}{0.4\textwidth}
        \centering
        \begin{verbatim}
            \begin{itemize}
                \item<2-> Argentina
                \item<3-> Bolivia
                \item<4-> Colombia      
                \item<5-> Ecuador
                \item<6-> Perú 
            \end{itemize}
        \end{verbatim}
    \end{minipage}
    \quad
    \begin{minipage}{0.4\textwidth}
        \centering
    \begin{itemize}
        \item<2-> Argentina
        \item<3-> Bolivia
        \item<4-> Colombia      
        \item<5-> Ecuador
        \item<6-> Perú 
    \end{itemize}
\end{minipage}

\end{frame}

\section{Cambiando el orden}
\begin{frame}[fragile]
    \begin{minipage}{0.4\textwidth}
        \centering
        \begin{verbatim}
            \begin{enumerate}
            \item<-2> Argentina
            \item<-3> Bolivia
            \item<-4> Colombia      
            \item<5> Ecuador
            \item<-6> Perú 
            \end{enumerate}
        \end{verbatim}
    \end{minipage}
\quad
    \begin{minipage}{0.4\textwidth}
    \centering
    \begin{enumerate}
        \item<-2> Argentina
        \item<-3> Bolivia
        \item<-4> Colombia      
        \item<5> Ecuador
        \item<-6> Perú 
    \end{enumerate}
\end{minipage}


\end{frame}
\section{Onslide}
\setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Onslide
    \end{center}
\end{frame}
\setbeamercolor{background canvas}{bg=white}

\begin{frame}[fragile]
\begin{minipage}{0.4\textwidth}
\centering
\begin{verbatim}
\onslide<2->{   
    \shadowbox{\LaTeX}
}
\onslide<3->{   
    \shadowbox{\textsc{Matlab}} 
}
\end{verbatim}
\end{minipage}
\quad
\begin{minipage}{0.4\textwidth}
    \centering
    \onslide<2->{   
        \shadowbox{\LaTeX}
    }
    \onslide<3->{   
        \shadowbox{\textsc{Matlab}} 
    }
\end{minipage}



\end{frame}


\setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Uncover vs Onslide
    \end{center}
\end{frame}
\setbeamercolor{background canvas}{bg=white}

\begin{frame}[fragile]

\begin{minipage}{0.4\textwidth}
    \centering
    \begin{verbatim}
\begin{align}
    c^2=&\onslide<2->{a^2+b^2}\
    c^2=&\uncover<3->{a^2+b^2}
\end{align}
    \end{verbatim}
\end{minipage}
\quad
\begin{minipage}{0.4\textwidth}
    \begin{align}
        c^2=&\onslide<2->{a^2+b^2}\
        c^2=&\uncover<3->{a^2+b^2}
    \end{align}
\end{minipage}


    
\end{frame}

\section{Pause}

\begin{frame}[fragile]
\begin{minipage}{0.4\textwidth}
    \centering
    \begin{verbatim}
$$\pause z^{T}w=0,$$ 
$$\pause z\geq0,$$ 
$$\pause  w\geq0,$$ 
$$\pause w=q+Mz.$$
\end{verbatim}
\end{minipage}
\quad
\begin{minipage}{0.5\textwidth}
    
    $$\pause z^{T}w=0,$$ 
    $$\pause z\geq0,$$ 
    $$\pause  w\geq0,$$ 
    $$\pause w=q+Mz.$$
    
\end{minipage}

\end{frame}

\section{Opacidad}
\setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Tablas con pause
    \end{center}
\end{frame}

\setbeamercolor{background canvas}{bg=white}

\section{Pause Tablas}
\begin{frame}
    \LARGE
    \begin{center}
        \begin{tabular}{c|c|c|c}
            \hline
            $k$ &$x_k$  &$f(x_k)$  &$|x_k-x_{k-1}|$  \  \hline \pause
            0   &2.5  & 0.1 &-  \ \hline \pause
            1   & 2.3 & 0.01 &0.2  \ \hline \pause
            2   & 2.6 & 0.02 &0.3  \ \hline \pause
            3   & 2.65 &0.001  &0.05\ \hline 
        \end{tabular}
    \end{center}
\end{frame}

\begin{frame}[fragile]
\begin{center}
\begin{verbatim}
\begin{tabular}{c|c|c|c}
    \hline
    $k$ &$x_k$  &$f(x_k)$  &$|x_k-x_{k-1}|$  \  \hline \pause
    0   &2.5  & 0.1 &-  \ \hline \pause
    1   & 2.3 & 0.01 &0.2  \ \hline \pause
    2   & 2.6 & 0.02 &0.3  \ \hline \pause
    3   & 2.65 &0.001  &0.05\ \hline 
\end{tabular}
\end{verbatim}
    
\end{center}

\end{frame}


\section{Pause Tikz}
\setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Pause en gráficas tikz
    \end{center}
\end{frame}
\setbeamercolor{background canvas}{bg=white}
\begin{frame}
    \begin{center}
        
    
    \begin{tikzpicture} 
        \coordinate (A) at (1,4);
        \coordinate (B) at (5,4);
        \coordinate (C) at (4,2);
        \coordinate (D) at (4,1.5);
        \coordinate (E) at (0,4);
        \coordinate (F) at (6,4);
        \coordinate (G) at (4,1);
        \draw (E) -- (F); 
        \pause
        \draw (A) -- (C); 
        \pause
        \draw (B) -- (C); 
        \pause
        \draw (C) -- (D); 
        \pause
        \draw[draw= black,fill=yellow!30] (3.5,0.5) rectangle(4.5,1.5);
        \node at (G){W};
        \node[above] at (A){A}; 
        \node[above] at (B){B}; 
    \end{tikzpicture}
\end{center}
\end{frame}

\begin{frame}[fragile]
\begin{minipage}{0.4\textwidth}
\begin{verbatim}
    \begin{tikzpicture} 
    \coordinate (A) at (1,4);
    \coordinate (B) at (5,4);
    \coordinate (C) at (4,2);
    \coordinate (D) at (4,1.5);
    \coordinate (E) at (0,4);
    \coordinate (F) at (6,4);
    \coordinate (G) at (4,1);
    \draw (E) -- (F); 
    \pause
    \draw (A) -- (C); 
    \pause
        \end{verbatim}
\end{minipage}
\quad \quad
\begin{minipage}{0.4\textwidth}     
\begin{verbatim}
        \draw (B) -- (C); 
        \pause
        \draw (C) -- (D); 
        \pause
        \draw[draw= black,fill=yellow!30] (3.5,0.5) rectangle(4.5,1.5);
        \node at (G){W};
        \node[above] at (A){A}; 
        \node[above] at (B){B}; 
    \end{verbatim}
\end{minipage}  
\end{frame}

\section{Only}
\setbeamercolor{background canvas}{bg=griss}
\begin{frame}[plain]
    \begin{center}
        \Huge Pause en gráficas pgfplots
    \end{center}
\end{frame}

\setbeamercolor{background canvas}{bg=white}

\definecolor{azul}{HTML}{006BBB}
\definecolor{celeste}{HTML}{30A0E0}
\definecolor{mostaza}{HTML}{FFC872}
\definecolor{crema}{HTML}{FFE3B3}
\definecolor{roja}{HTML}{DD4470}
\begin{frame}{Velos (Overlays)}
\begin{center}
    \begin{tikzpicture}
        \begin{axis}[ybar,
            azul,
            x tick label style={/pgf/number format/1000 sep=},
            enlarge x limits=0.2,
            width=11cm, height=7cm,
            axis background/.style={fill=crema},
            legend style={at={(0.5,-0.15)},
                anchor=north,legend columns=-1}
            ]
            \only<1->{
            \addplot[azul,fill=azul] plot coordinates
            {(2014,5) (2015,3) (2016,2) (2017,4) (2018,1) (2019,2)};
            }
            \only<2->{
            \addplot[roja, fill=roja] plot coordinates
            {(2014,2) (2015,5) (2016,8) (2017,2) (2018,4) (2019,2)};
             }
             \only<3->{
            \addplot[mostaza,fill=mostaza] plot coordinates
            {(2014,4) (2015,2) (2016,4) (2017,5) (2018,6) (2019,5)};
                 
            \legend{Categoría 1,Categoría 2,Categoría 3}
        }
        \end{axis}
    \end{tikzpicture}
\end{center}
\end{frame} 
\begin{frame}[fragile]
    \begin{center}
        \begin{verbatim}
\begin{tikzpicture}
    \begin{axis}[ybar,
        azul,
        x tick label style={/pgf/number format/1000 sep=},
        enlarge x limits=0.2,
        width=11cm, height=7cm,
        axis background/.style={fill=crema},
        legend style={at={(0.5,-0.15)},
            anchor=north,legend columns=-1}
        ]
        \only<1->{
            \addplot[azul,fill=azul] plot coordinates
            {(2014,5) (2015,3) (2016,2) (2017,4) (2018,1) (2019,2)};
        }
        \only<2->{
            \addplot[roja, fill=roja] plot coordinates
            {(2014,2) (2015,5) (2016,8) (2017,2) (2018,4) (2019,2)};
        }
        \only<3->{
            \addplot[mostaza,fill=mostaza] plot coordinates
            {(2014,4) (2015,2) (2016,4) (2017,5) (2018,6) (2019,5)};
            
            \legend{Categoría 1,Categoría 2,Categoría 3}
        }
    \end{axis}
\end{tikzpicture}
        \end{verbatim}
        
    \end{center}
    
\end{frame}

\begin{frame}[fragile]
    \begin{center}
        \begin{verbatim}
                    \only<2->{
                        \addplot[roja, fill=roja] plot coordinates
                        {(2014,2) (2015,5) (2016,8) (2017,2) (2018,4) (2019,2)};
                    }
                    \only<3->{
                        \addplot[mostaza,fill=mostaza] plot coordinates
                        {(2014,4) (2015,2) (2016,4) (2017,5) (2018,6) (2019,5)};
                        
                        \legend{Categoría 1,Categoría 2,Categoría 3}
                    }
                \end{axis}
            \end{tikzpicture}
        \end{verbatim}
        
    \end{center}
    
\end{frame}

\begin{frame}{Resumen}
        \begin{itemize}
            \item<2-> $\setminus \texttt{setbeamercovered}\{\}$
            \item<3-> item 
            \item<4-> onslide
            \item<5-> uncover       
            \item<6-> pause
            \item<7-> only 
        \end{itemize}

\end{frame} 

\end{document}
        

© Profesor Favián Arenas. 2023. Diseñado por HTML Codex