Prosper and listings
Auri Vincenzi <[email protected]> Wed, 01 Sep 2004 17:36:42 -0300
| Newsgroups | gmane.comp.tex.latex.prosper.announce |
|---|---|
| Message-ID | <[email protected]> |
Dear Prosper's users,
I am trying to use the listings package with prosper...
In the Prosper Faq I found a solution to use listings in this way:
\documentclass[pdf]{prosper}
\usepackage{listings}
\begin{document}
\newsavebox{\tmp}
\begin{lrbox}{\tmp}%
\begin{lstlisting}
Comme nous l'avons déjà vu lors de la présentation du \today,
Bib\TeX{} est un outil magnifique pour la génération automatique de
bibliographies.
\end{lstlisting}
\end{lrbox}
\overlays{2}{
\begin{slide}{toto}
\usebox{\tmp}
\end{slide}
}
\end{document}
The above example it is ok. It is working. But if I try to use
the command \lst instead of \begin{lstlisting} text
\end{lstlisting}, I got the following erro message:
*******************************************************************
...
(C:\texmf\tex\latex\amsfonts\umsb.fd)
Package hyperref Warning: bookmark level for unknown lstlisting
defaults to 0.
(file.pas) (C:\texmf\tex\latex\psnfss\t1ptm.fd)
(C:\texmf\tex\latex\psnfss\t1phv.fd)
LaTeX Warning: Reference `last@page' on page 1 undefined on input
line 20.
[1 ! Undefined control sequence. \hyper@linkstart
...hyper@currentlinktype
{#1}
l.20 \end{slide}
? ...
*******************************************************************
Here is the LaTeX code I am trying to use. file.pas can be any other file.
-------------------------------------------
\documentclass[%
pdf,
default
]{prosper}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{listings}
\begin{document}
\newsavebox{\tmpd}
\begin{lrbox}{\tmpd}%
\lstinputlisting[lastline=4]{file.pas}%
\end{lrbox}
%Slide tentando utilizar lstinputlisting
\begin{slide}{TEMP B}
\usebox{\tmpd}
\end{slide}
\end{document}
-------------------------------------------
Anyone can help me?
Thanks,
Auri
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click