Skip to Content.
Sympa Menu

texmacs-users - Re: Math output from a scheme session

Subject: mailing-list for TeXmacs Users

List archive

Re: Math output from a scheme session


Chronological Thread 
  • From: address@hidden
  • To: address@hidden
  • Subject: Re: Math output from a scheme session
  • Date: Wed, 23 Apr 2003 13:09:28 +0200

On Tue, Apr 22, 2003 at 03:04:19PM +0100, Ian Grant wrote:
> Hi TeXmacs people,
>
> I am new to TeXmacs, but what I have seen so far is very impressive. Can
> anyone tell me if it's possible to have a scheme session return a
> mathematical
> expression to the buffer instead of just verbatim text?
>
> In other words, I want the scheme session to return, occasionally, text of
> the
> form:
>
> [DATA_BEGIN]latex:$x^2+y^2=z^2$[DATA_END]

You could hack something around:

(define my-math '(concat "x" (rsup "2") "+y" (rsup "2") "=z" (rsup "2"))
(insert-object `(with "mode" "math" ,my-math))

Paste this in a Scheme session...

The problem with latex output is that there is currently no way I am
aware of to call the textm converter from Scheme.

--
-- DDAA



Archive powered by MHonArc 2.6.19.

Top of Page