On Thu, 10 Jul 2008 20:44:53 +0200, Philipp Grau <[EMAIL PROTECTED]> said:

>> What does the "fragile" option actually do?

Philipp> Up until now, I did not find any reference or explanation. Nor
Philipp> is my TeX knowledge good enough to unterstand the source.

To my knowledge, the "fragile" option indicates that there is some code
in the frame that is not interpreted as usual. The contents of the frame
is copied to another file and then read back so the character codes can
be modified (see section 7.1 of beamer user guide).

>> What would happen if I just caused the "fragile" option to appear on
>> every slide, regardless of whether the slide had verbatim text?

Philipp> Not sure about that, I did not have the time to test it. But
Philipp> over the weekend I could do some tests.

To my opinion, the best solution to include verbatim/listing
environments is to use the defverbatim command. For instance:

\defverbatim\mycodesource{
\begin{lstlisting}{
  (defun foo()
    "Foo function."
    (message "Hello!")
  )
}
}
\begin{frame}{The power of elisp}

Here is a wonderful function:

\pause

\mycodesource
\end{frame}

You can then use overlays as usual etc and do not have to declare your
frame as "fragile".

Christophe

-- 
Christophe Garion          ISAE/DMIA - SUPAERO/IN
[EMAIL PROTECTED]             10 avenue Edouard Belin
Tél : (33)5 61 33 80 57    BP 54032
Fax : (33)5 61 33 83 45    31055 Toulouse Cedex 4

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to