#10592: Create shortcut for making LaTeX from command line
------------------------------+---------------------------------------------
Reporter: kcrisman | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: user interface | Keywords: latex command line notebook
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
At [http://ask.sagemath.org/question/301/what-is-the-function-for-latex-
on-a-notebook-cell ask.sagemath], we see the question of
{{{
In a notebook cell one can write:
%latex
Hello
\ [
x=f(x)
\ ]
and an image appear with perfect math notation. (not jsmath)
What is the sage command that does the same receiving a string ? Something
like latexrender(r"Hello \ [x=f(x)\ ]")
}}}
The best answer was
{{{
Latex().eval(r"""Hello
\[
x=f(x)
\]
Goodbye""", globals=globals)
}}}
from John Palmieri.
Of course, this requires some import statement and the raw string. We
should be able to make a shortcut for this; the original poster's
`latex_render()` seems appropriate, or some variant on this. We'll have
to be sure to document the raw string issue.
I'm putting this under user interface because it improves it, but really
it's perhaps graphics? Well...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10592>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.