|
From: | Sam Liddicott |
Subject: | [Texmacs-dev] Re: [TeXmacs] how to read <write|aux|<tuple|key|value>> data back again |
Date: | Tue, 20 Jul 2010 21:14:03 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8pre) Gecko/20100720 Lanikai/3.1.2pre |
Hi Joris; I had a nasty accident with my email program (typing in the wrong window) and it lost the mail you send about reading a pageref using get-binding, and it's not shown up in the archive yet. Please could you dig it out of your sent-items for me. Thanks - and apologies Sam On 20/07/10 19:31, Sam Liddicott wrote: Thanks for the info Joris. A hack would be great. For now I'm only using it to simulate a pageref? Function to tell if a label is defined or not. A pagerefpage function would be cool - to return the un-marked-up page number... I will be generating the actual programs in awk to start with as the code is already written. I'll use the dev list now on, I thought it was for C++ questions Sam Joris van der Hoeven <address@hidden> wrote:Hi Sam, On Mon, Jul 19, 2010 at 10:06:06PM +0100, Sam Liddicott wrote:If I write data using <write|aux|<tuple|key|value>>, how do I get to read it back again.You can't, at least not currently. The information is contained in 'buf->aux', the auxiliary part of your buffer, which is only accessible in the C++ code. At best, I could add a hack so that you can access it from within Guile. Anyway, for you litterate programming stuff, you probably want to generate the actual programs using Guile; this is much easier than endless hacking of the TeXmacs style files; the style language has not really be designed for doing non trivial computations. Using Guile, you can simply examine the entire document tree and perform any computations (and modifications) you want. Best wishes, --Joris P.S.: please send developer's questions to texmacs-dev --
Sam's signature |
[Prev in Thread] | Current Thread | [Next in Thread] |