TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I guess this is an unusual question as I have not found anything related (then again, maybe I searched poorly).

So what I would like to do is having an enumeration (in a beamer slide) go smaller and smaller in size, as smoothly as possible.

Currently, I haven't found a better solution than the following:

{\small my text is going smaller and }
{\footnotesize smaller and smaller and}
{\scriptsize smaller and smaller and }
{\tiny smaller and smaller and ...}

However I don't like it so much as it really looks like "blocks" of words in the enumeration and there is nothing smooth about it. (note that line skipping here does not imply line skipping in the rendering)

Any idea to get a better disappearing effect? Maybe a package I'm unaware of that provides more flexibility with fontsize?

share|improve this question

migrated from stackoverflow.com Apr 30 '13 at 14:56

This question came from our site for professional and enthusiast programmers.

Just a precision: by "enumeration", I actually just mean a sequence of words, not an environment. – cenna75 Apr 30 '13 at 11:56
Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Apr 30 '13 at 16:22
up vote 13 down vote accepted

enter image description here

\def\vanish#1{{\dimen@15pt\par\lineskip\p@\baselineskip\z@\@xvanish#1 * }}
\def\@xvanish#1 {%
    {\fontsize{\dimen@}\z@\selectfont#1 }\dimen@.97\dimen@\expandafter\@xvanish


\vanish{my text is going smaller and 
smaller and smaller and
smaller and smaller and 
smaller and smaller and 
smaller and smaller and 
smaller and smaller and \ldots} %


share|improve this answer
And we vanish when you come ;-) +1 – Harish Kumar May 1 '13 at 0:28
Sorry for not thanking you earlier, it's been a while but your solution is really great! Thanks!! – cenna75 Jun 21 '13 at 12:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.