Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

unrecognised tex code

Trying to prettyprint the output of a notebook cell I type this code:

view('m=ricol=ΔyΔx=+latex((y2y1)/(x2x1))+')

I see that AskSage renders the latex code correctly, but in my browser, the \frac command is not recognised and the output looks like

... racΔyΔx ...

The fraction generated by the latex()-command however IS rendered correctly.

To be perfectly clear: this is the code without enclosing $-signs:

view('[dollarsign]m=\mathrm{rico}\,l=\frac{\Delta y}{\Delta x}=\,'+latex((y2-y1)/(x2-x1))+'[dollarsign]')

It seems as if my keyboard codes are misinterpreted. I noticed, e.g., that ':' in a piece of latex code is rendered as '.' - this may be related, or maybe not.

One other question: can I include latex commands such as '...'? (Doesn't work here: \b is not recognised, same as \f).

Oh, and this must be important: latex is flawlessly rendered in TEXT-cells, including the {aligned} environment. It's only in sage-code cells that I experience these problems.

click to hide/show revision 2
corrected formatting of code samples

unrecognised tex code

Trying to prettyprint the output of a notebook cell I type this code:

view('m=ricol=ΔyΔx=+latex((y2y1)/(x2x1))+')

I see that AskSage renders the latex code correctly, but in my browser, the \frac command is not recognised and the output looks like

... racΔyΔx ...

The fraction generated by the latex()-command however IS rendered correctly.

To be perfectly clear: this is the code without enclosing $-signs:

view('[dollarsign]m=\mathrm{rico}\,l=\frac{\Delta unrendered code:

view('$m=\mathrm{rico}\,l=\frac{\Delta y}{\Delta x}=\,'+latex((y2-y1)/(x2-x1))+'[dollarsign]')

x}=\,'+latex((y2-y1)/(x2-x1))+'$')

It seems as if my keyboard codes are misinterpreted. I noticed, e.g., that ':' in a piece of latex code is rendered as '.' - this may be related, or maybe not.

One other question: can I include latex commands such as '...'? as '\begin{aligned}...\end{aligned}'? (Doesn't work here: \b is not recognised, same as \f).

Oh, and this must be important: latex is flawlessly rendered in TEXT-cells, including the {aligned} environment. It's only in sage-code cells that I experience these problems.

click to hide/show revision 3
retagged

updated 13 years ago

kcrisman gravatar image

unrecognised tex code

Trying to prettyprint the output of a notebook cell I type this code:

view('m=ricol=ΔyΔx=+latex((y2y1)/(x2x1))+')

I see that AskSage renders the latex code correctly, but in my browser, the \frac command is not recognised and the output looks like

... racΔyΔx ...

The fraction generated by the latex()-command however IS rendered correctly.

To be perfectly clear: this is the unrendered code:

view('$m=\mathrm{rico}\,l=\frac{\Delta y}{\Delta x}=\,'+latex((y2-y1)/(x2-x1))+'$')

It seems as if my keyboard codes are misinterpreted. I noticed, e.g., that ':' in a piece of latex code is rendered as '.' - this may be related, or maybe not.

One other question: can I include latex commands such as '\begin{aligned}...\end{aligned}'? (Doesn't work here: \b is not recognised, same as \f).

Oh, and this must be important: latex is flawlessly rendered in TEXT-cells, including the {aligned} environment. It's only in sage-code cells that I experience these problems.