So I'm new to LaTeX. I work on presentations at presentations for introductory lectures on programming, so I often use the object exampleboxin my slides. I was told that whenever I have a frame containing an example box, I need to declare it with the keyword "fragile", as in:
\begin{frame}[fragile]
I don’t know exactly what this does, but I know that my code will only compile if I use it. I also gathered from the Internet that if I want to align the content frame by frame, I add the keyword 't', as in:
\begin{frame}[t]
The combination of the two of them is that, knowing very little about LaTeX, I would consider it in an intuitive way, it does not work.
\begin{frame}[t][fragile]
Does not
\begin{frame}[fragile][t]
I guess there is a simple solution to using both of them at the same time, but it’s hard for me to find a direct answer on the Internet. Can anyone shed some light?
Thank!
source
share