Add examples for use of BFH Terminal and BFH Listings in beamer class to examples and documentation
Thank you for creating and maintaining the LaTeX BFH-CI templates. My students and I benefit a lot.
Your template offers environments for terminal and code listings, well documented online for bfh-terminal, bfh-listings and as example code. The online documentation and examples miss the use of terminal and listings in the beamer class though, and copy-pasting them into the frames will result in errors, because the use of verbatim environments requires the use of [fragile]
for the respective frames.
Please add the following code as example to the online documentation and example code.
\begin{frame}[fragile]
\frametitle{foobar}
\framesubtitle{Prompt}
\setupLinuxPrompt{student}
%tabs and spaces at the beginning of lines inside verbatim environments will be displayed
%this is also true for \end{ubuntu}; a leading tab in that line will result in an empty prompt line
\begin{ubuntu}
echo "Hello World" `\StartConsole`
Hello World
\end{ubuntu}
\captionof{lstlisting}{This is a caption}
\end{frame}
\begin{frame}[fragile]{Test}
\framesubtitle{Listing}
\lstinputlisting[style=bfh-c,
language=C,
label={lst:hello}]{listings/expl_hello.c}
\end{frame}
Thank you very much.
PS: In the future, I'll try to submit merge requests instead of issues. What is your preferred/recommended method for submitting merge requests? From fork, by mail (patch file), ... ?