- From: Giovanni Piredda <address@hidden>
- To: address@hidden
- Subject: Re: Scheme programs: how to insert the output ???as code????
- Date: Sun, 8 Dec 2019 22:10:08 +0100
Hi Joris,
I wrote a scheme function to import csv data and typeset them into a
TeXmacs table (the code is at
https://github.com/pireddag/csvTable) to
answer a question on the forum (on forum.texmacs.cn - the link is
http://forum.texmacs.cn/t/how-to-import-a-table-from-a-csv-file-to-texmacs/109/3).
In that code, the table is not formatted.
I have written a few more lines of code to give the possibility of
formatting it (still have to place them on GitHub); but this is yet not
enough, because one might want to format the text in individual cells
(for example make text bold in first column and first row). I could add
a function for formatting text, but to me placing the table inside
TeXmacs as "TeXmacs code" seems a good idea too.
By the way I did not yet learn how to package the functions I write as
"proper TeXmacs plugins", like you suggested me (when I posted the code
for plotting functions), so I am setting things up as package + Scheme
functions and instructions on where to place them. But I intend to also
learn that.
Giovanni
On 08.12.19 21:56, TeXmacs wrote:
Hi Giovanni,
The answer to your question is probably "yes", but please make
your question a bit more explicit, or give us a precise example
of what you would like to do.
Best wishes, --Joris
On Sat, Dec 07, 2019 at 01:59:49PM +0100, Giovanni Piredda wrote:
Is it possible to insert the output of a Scheme program inside the
TeXmacs document ???as code???? The programs I wrote so far insert
the output in typeset form; if I write commands inside a Scheme
session, Scheme "injects" code inside the text of the TeXmacs
document.
I realize inserting text from Scheme programs might lead to chaos;
on the other hand, it would give one the possibility of editing the
output by hand.
Archive powered by MHonArc 2.6.19.