Document ClassesLast Item in Black

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Last Item in Black

Post by marie2011 »

Dear forum members,

I was wondering if there is a possibility to have the third item in black before passing to the next slide.

Here you have the minimal working example:

Code: Select all

\documentclass[10pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish,ngerman,catalan,english]{babel}
\usepackage{pdfpages}
\usefonttheme[stillsansserifsmall]{serif}
\usefonttheme{structuresmallcapsserif}
\usetheme{Pittsburgh}
\usecolortheme{seahorse}
\setbeamertemplate{footline}[frame number]
\beamertemplatenavigationsymbolsempty
\begin{document}
\begin{frame}
Some Items:
\begin{itemize}
\item<2-| alert@2> First Item;
\item<3-| alert@3> Second Item;
\item<4-| alert@4> Third Item (this item should be red and then black before
  passing to the next slide).
\end{itemize}
\end{frame}
\end{document}
Many thanks in advance.

Regards,

Marie

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

Last Item in Black

Post by koleygr »

Hi Marie,

If you haven't find a solution yet, i can give you one
(not the best, but it works). You can use an \alt<-5>{}{}
commant... just blank. This way you will have one more slide
in your frame.

I suppose that after that commants you want to pass to a new
frame (but this isn't enought clear in your post).
So i giving you the next code, and if it is not what
excactly you looking for, you can post again.

Code: Select all

    \documentclass[10pt]{beamer}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[spanish,ngerman,catalan,english]{babel}
    \usepackage{pdfpages}
    \usefonttheme[stillsansserifsmall]{serif}
    \usefonttheme{structuresmallcapsserif}
    \usetheme{Pittsburgh}
    \usecolortheme{seahorse}
    \setbeamertemplate{footline}[frame number]
    \beamertemplatenavigationsymbolsempty
    \begin{document}
  
    \begin{frame}
    Some Items:
    \begin{itemize}
    \item<2-| alert@2> First Item;
    \item<3-| alert@3> Second Item;
    \item<4-| alert@4> Third Item;
    \alt<-5>{  }{  }
    \end{itemize}
    \end{frame}
    
    \begin{frame}
    Some other items:
    \begin{itemize}
    \item<2-| alert@2> Your New First Item;
    \end{itemize}
    \end{frame}

    \end{document}
PS: You can put the \alt<>{}{} commant everyware in the frame

Kostis
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
Post Reply