For what it is worth, this works:
\documentclass{beamer}
\usepackage{sagetex}
\begin{document}
\begin{sagesilent}
G = r"""\begin{frame} Hello World \end{frame}"""
\end{sagesilent}
\sagestr{G}
\end{document}
You might be able to put all the contents of the sagesilent blocks (or
whatever) in a .sage file that use just load in a single line in the
.tex file...?
If you look at the auto-generated .sage file (from your code, after
you put an r before the triple quotes to properly allow for
backslashes), it has a try except and the indentation looks messed up.
William
On Thu, Sep 12, 2013 at 10:51 AM, David Roe <[email protected]> wrote:
> I'm trying to write some sagetex code that generates row reduction examples
> for matrices and I ran into a compatibility problem that seems to be
> different from the ones described in section 4.1 of the Sagetex manual.
> Here's a minimal example:
>
> \documentclass{beamer}
> \usepackage{sagetex}
>
> \begin{document}
> \begin{sagesilent}
> G = """
> \begin{frame}
> Hello World
> \end{frame}
> """
> \end{sagesilent}
>
> \sagestr{G}
>
> \end{document}
>
> This errors out with:
>
> ./STtest.sagetex.sout
> Runaway argument?
> {{
> ! Paragraph ended before \@newl@bel was complete.
> <to be read again>
> \par
> l.4
>
> Any ideas of what's going on or how to fix it?
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/groups/opt_out.
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.