On May 22, 9:57 pm, Rob Beezer <goo...@beezer.cotse.net> wrote:

> So as Robert suggests, it might be easy to just modify
> str_function()  to replace "\n" by "\newline" and get what I think

That doesn't seem to work for me.

> Andrey is after.  All this is processing is contained in sag/misc/
> latex.py.  John Palmieri might have some insights/ideas as well.

I don't know about that, but I'll try: perhaps the best thing would be
to use some sort of verbatim environment for LaTeX typesetting of
strings.  My impression is that people tried this a while ago and ran
into problems -- a while ago there were comments to this effect in
misc/latex.py, but they seem to have been removed, probably by me.

Regardless of the approach, it has to work with actual LaTeX and also
with jsMath; the current plan uses \texttt in plain LaTeX and changes
this to \hbox in jsMath (because jsMath doesn't understand the command
\texttt).  I think jsMath has some sort of verbatim environment, so
you could try using that instead of \hbox.  Similarly, you could try
\verb... in plain LaTeX.  To implement any solution, it would probably
be a good idea to search the trac server and also search sage-devel
and sage-support for comments about LaTeX typesetting of strings, to
make sure that the proposed solution deals successfully with all
previous issues.  If anyone does this searching, regardless of whether
they implement any solution, it would be very helpful to record the
results so that everyone has a good list of test cases.

Also, please cc me on any trac ticket about this.

--
John

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to