summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/skb/user-guide/slides/manual-listings.tex
blob: f75ae1a21e5ab567b130e140b8a4b6205eb18d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\mode
<presentation>

\begin{frame}{Styles and Support for Listings}
  \label{manual:listing}

  \begin{itemize}
    \item A few pre-defined styles provided
    \item Most of them set a small type writer font
    \item Some provide for line numbers
    \item \cmd{\lstdefinestyle} used to reset style to basic parameters
  \end{itemize}

  \begin{example}[use within normal text]
    \lstinputlisting[style=beamer-example,language=TeX,lastline=2]{\skbfileroot{examples/listings}}
  \end{example}

  \begin{example}[use for beamer frames]
    \lstinputlisting[style=beamer-example,language=TeX,firstline=3]{\skbfileroot{examples/listings}}
  \end{example}

\end{frame}


\mode
<article>

\resizebox{\textwidth}{!}{\includeslide{manual:listing}}
\bigskip

\skbinput[from=rep]{manual/listing}

\clearpage

\mode
<all>