I realize that in beamer there is an environment named solution, but I cannot find any documentation about it. In particular, I would like to address these two issues:

  1. I see that a title "Solution" is produced followed by a number. I would like to know if it's possible to change that title. This would be useful when writing a document in a non-English language.

  2. How to hide solutions?

  • Try with \documentclass[spanish]{beamer}\usepackage{babel} .... and see that happen. Warning: sometimes correct changes in babel configuration as change the document language cannot be compiled because the presence of auxiliary files of previous compilations. If that happen, remove the auxiliary files and try again.
    – Fran
    Nov 5, 2020 at 22:53
  • I tried \usepackage[spanish]{babel} and I also removed the other files, but nothing changes. Nov 5, 2020 at 23:03
  • Then you are doing something wrong, but without a minimal example is useless try to guess that. I have made an answer that show that this really solve the problem, at least for languages supported for babel.
    – Fran
    Nov 6, 2020 at 1:15
  • I am sorry. You are right. I was mispleacing the [spanish] option in my document. Thanks! I still would like to know if you can set it so that what's inside this solution environment is not shown in the output. Nov 6, 2020 at 9:11
  • About hide solutions: Hiding how? The solution block must be collapsed or maintain the dimensions when empty? It must be showed in other slide? As sample, try replacing "Foo" by " $2+3=\only<2>{5}$" in the MWE. This will hide the 5 except in the second slide of the frame. But there are more than one method. Please run texdoc beamer and read the section 3.9 and 3.10.
    – Fran
    Nov 6, 2020 at 10:48

1 Answer 1



It should be enough set the language of the document using babel for most common languages. The title should change automatically to "Solución" in Spanish, to "Lösung" in German, to "Rešenje" in Serbian, etc.



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .