Ask Your Question

Using sagesilent LaTeX command

asked 2013-08-31 14:18:08 -0600

gabrielh gravatar image

Hello all,

I'm trying to make a piece of code using SageTex, and saw that the problem really comes down to this:

\newcommand{\test}[1] { \begin{sage silent} #1 \end{sagesilent} }

\test{f = sin(x) - 1}

(please note, I have added a blank space in the begin{sage silent} as the editor of this piece of code would otherwise give some weird result. hope you don't mind...)

This gives then the following error:

Runaway argument ? File ended while scanning use of \next.

What am I doing wrong here? Any feedback would be greatly appreciated!

All the best, Gabriel

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-31 14:33:49 -0600

kcrisman gravatar image

Unfortunately, it seems this is a known problem in SageTeX. See this TeX.SX question, among others. The answer to this by the author of SageTeX on a Sage group is not that encouraging since it's a TeX limitation, but there are some potential workarounds that don't involved \newcommand in that thread.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-08-31 14:18:08 -0600

Seen: 399 times

Last updated: Aug 31 '13