- From: Михаил Бахтерев <address@hidden>
- To: address@hidden
- Subject: Re: Creating tables, math and drawings from scheme session
- Date: Sun, 8 Nov 2020 14:56:42 +0500
I've found the object->tree procedure, which returns a tree,
which is rendered as math or drawing at the «result of
evaluation» position. Very nice!
Thanks for help!
On Sat, Nov 07, 2020 at 10:48:00AM +0500, Михаил Бахтерев wrote:
>
Thanks! It looks like what i need.
>
>
On Thu, Nov 05, 2020 at 11:42:51PM +0100, TeXmacs wrote:
>
> Hi Michael,
>
>
>
> TeXmacs internally represents all documents as trees.
>
> The current buffer can be retrieved using
>
>
>
> (buffer-tree)
>
>
>
> You can next use the routines 'tree-ref' and 'tree-set' to
>
> extract subtrees and modify them. For instance, assume that
>
> you created a document with an empty first line and
>
> that you created a Scheme session just below.
>
> Then the buffer tree will be of the form
>
>
>
> (document
>
> ""
>
> ...your Scheme session...)
>
>
>
> You may then do
>
>
>
> (tree-set (tree-ref (buffer-tree) 0) `(strong "Hi there!"))
>
>
>
> to change the first line into a welcome greeting.
>
>
>
> I hope that this helps to get you started.
>
> For more info, see "The Jolly Writer", chapter 14.
>
>
>
> Best wishes, --Joris
>
>
Archive powered by MHonArc 2.6.19.