First time here? Check out the FAQ!

Ask Your Question
1

Using sagesilent LaTeX command

asked 11 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 11 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 1,440 times

Last updated: Aug 31 '13