Prosper は論文と発表資料でいろいろ共通に使えていいのだけど, そのままというわけにはいかないところがあるので, そういうののメモをここに書くことにする.
overlay しない slide 中なら verbatim 環境が使える. overlay すると verbatim は使えなくなる.
This is pTeX, Version 3.14159-p3.1.5 (euc) (Web2C 7.4.5) (./1.tex pLaTeX2e <2005/01/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (/usr/local/share/texmf/tex/latex/prosper/prosper.cls Document Class: prosper 2001/01/23, v. 1.1 (c) 2000 Frederic Goualard, CWI, The Netherlands CVSId: $Id: prosper.cls,v 1.5 2001/01/31 10:20:44 exupery Exp $
という環境で使えるものを探した.
Prosper FAQ より:fancyvrb スタイルで SaveVerbatim 環境と BUseVerbatim コマンドの組み合わせ.
\usepackage{fancyvrb}
\begin{SaveVerbatim}{hoge}
#include <stdio.h>
int main(void) {
printf("Hello, world\n");
}
\end{SaveVerbatim}
\overlays{1}{
\begin{slide}{テスト}
\BUseVerbatim{hoge}
\end{slide}
}
moreverb スタイルで listinginput コマンドを使う.行番号も入れられる.
\usepackage{moreverb}
\overlays{1}{
\begin{slide}{テスト}
\listinginput[1]{1}{sample.c} % sample.cを表示
\end{slide}
}
overlay の中で使えるか試してみた.