Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 12 years ago

kcrisman gravatar image

Using quotes inside sageplot environment in SageTeX

Here's the question: how do I get the following to work in SageTeX? The quotes always lead to an error.

\sageplot{plot(cos(x),(x,0,pi),label='cos(x)')} Double quotes, escaping them, ... nothing seems to work. Thanks!

(See also this tex.SX.com question if you want to answer it in both places for more visibility.)

click to hide/show revision 2
No.2 Revision

Using quotes inside sageplot environment in SageTeX

Here's the question: how do I get the following to work in SageTeX? The quotes always lead to an error.

\sageplot{plot(cos(x),(x,0,pi),label='$\cos(x)$')}

\sageplot{plot(cos(x),(x,0,pi),label='cos(x)')} Double quotes, escaping them, ... nothing seems to work. Thanks!

(See also this tex.SX.com question if you want to answer it in both places for more visibility.)