TransWikia.com

Problem with Beamer, environments, and if

TeX - LaTeX Asked by George Mailath on February 9, 2021

The following code will not compile and I am mystified:

documentclass{beamer}
usetheme{default}
newififTest
Testtrue
begin{document}
begin{frame}
frametitle{title}
ifTest
begin{center}
content
end{center}
fi
end{frame}
end{document}

One Answer

You will have to use the fragile option if you want to use such low-level tests:

documentclass{beamer}
usetheme{default}
newififTest
Testtrue
begin{document}
begin{frame}[fragile]
frametitle{title}
ifTest
begin{center}
content
end{center}
fi
end{frame}
end{document}

Answered by Ulrike Fischer on February 9, 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