diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex b/Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex index a91bd2941e7..84904757aa2 100644 --- a/Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex +++ b/Master/texmf-dist/doc/latex/latex-via-exemplos/latex-via-exemplos-slides.tex @@ -83,20 +83,36 @@ Este é umbloco com título. \section{Ambiente \texttt{verbatim} no slide} % outra entrada de sumário +% Ambiente \texttt{verbatim} e similar requer opção \texttt{fragile}. \begin{frame}[fragile] % outro slide - \frametitle{Verbatim} - Ambiente \texttt{verbatim} e similar requer opção \texttt{fragile}. -%\only<2>{ +\frametitle{Verbatim} +Ambiente \texttt{verbatim} e similar requer opção \texttt{fragile}. \begin{verbatim} -\begin{frame}[fragile] - \frametitle{...} - ... - \end{frame} +program teste; +begin + writeln('Alô pessoal!'); +end. \end{verbatim} -%} \end{frame} -%\begin{note} % outra nota: ambiente note so funciona fora do frame Não funciona na versão 2016. Testar na versão mais recente. +% Para listar o código do beamer, deverá criar o novo ambiente para evitar conflito de \end{frame}. +%% Crie um novo ambiente como segue, no preamble. +%\newenvironment{verbatimframe} +%{\begin{frame}[fragile,environment=verbatimframe]} +%{\end{frame}} +%% Depois use ele +%\begin{verbatimframe} +% \frametitle{Verbatim com código beamer} +%Para listar o código do \texttt{beamer}, deverá criar o novo ambiente para evitar conflito de \verb+\end{frame}+. +%% \pause{} +%\begin{verbatim} +%\begin{frame}\frametitle{Título} +%... +%\end{frame} +%\end{verbatim} +%\end{verbatimframe} + +%\begin{note} % outra nota: ambiente note so funciona fora do frame. Não funciona na versão 2016. Testar na versão mais recente. \note{Sem a opção \texttt{fragile}, não pode usar o ambiente \texttt{verbatim} dentro do \texttt{frame}. Não pode usar ``\texttt{overlay}'' no ambiente \texttt{verbatim} } |