Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2012-04-06 06:54:34 -0600

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.)

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.)