TransWikia.com

Solution environment in Beamer

TeX - LaTeX Asked by user12703198 on April 17, 2021

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?

One Answer

mwe

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.

Example:

documentclass[spanish]{beamer}
usepackage{babel}
usetheme{Madrid}
begin{document}
begin{frame}{Foo}
begin{solution} 
     Foo 
end{solution}
end{frame}
end{document}

Answered by Fran on April 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP