I'm using the following LaTeX code in a Beamer presentation:
\begin{frame}
\begin{figure}
\centering
\tiny
\lstset{language=python}
\lstinputlisting{code/get_extent.py}
\end{figure}
\end{frame}
Is it possible to select specific lines from my get_extent.py file rather than displaying it all?
To start our presentation we need to set the document class to beamer . Next we'll select a theme using the \usetheme command; for our example we'll use the Boadilla theme. Just like any other LaTeX document we need to enclose our document in the document environment.
Creating the table of contents in Beamer can be done with the same manner as in standard LaTeX. The first thing that we should do is to structure our presentation using the commands \section{} and \subsection{} ( \section*{} and \subsection*{} , to hide it from table of contents).
Beamer is a LaTeX document class for creating presentation slides, with a wide range of templates and a set of features for making slideshow effects. It supports pdfLaTeX, LaTeX + dvips, LuaLaTeX and XeLaTeX.
This has nothing to do with beamer
; it's about a listings
feature. Its excellent manual has more. For example:
\lstinputlisting[firstline=2,lastline=5]{code/get_extent.py}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With