mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] Help with scheme functions


Chronological Thread 
  • From: Corey Sweeney <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] Help with scheme functions
  • Date: Fri, 29 Oct 2004 15:39:16 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=JCH2FHh1KIKQo9pWTYj88GNABUi8k/VlzxV4iaw6CXe1z1mY0tjLk4zBviBEmeffpS+Q/Ha4bnCEm4NhHJEYxYXyJAg9yko0TSE19KyKbzpimpIZ4vlgJQ8RTZoj7ttaEbw+amU3/IxvQ+vucdLk18vzus3lgMkd+sKqhF11Mqs=

By "scheme in Tex" i'm assuming you mean "scheme in TeXmacs".

Have you found guile-glue-*.scm at
http://www.texmacs.org/cgi-bin/cvsweb.cgi/src/src/Guile/Glue/ yet?

I've found those files *very* helpfull. What i do is look through the
list for something that might help what i want, then load a "scheme
session" in the document, and start probing the function to see how it
works (sometimes crashing my session) :).

Corey




On Mon, 25 Oct 2004 00:29:29 +0200 (MEST), Amit Dubey
<address@hidden> wrote:
>
> Hi list,
>
> If anyone has *any* experience with scheme in TeX, I'd appreciate
> *any* kind of help. The documentation (prim-style-misc.en.tm) does
> not appear to be correct. The example in the last line of the first
> paragraph reads "<error|insecure script>" unless "Accept all scripts" is
> activated. Later on, the documetation suggetss the ":secure" option can be
> used to overcome such errors, but it does not specific *what* this is an
> option
> for. Some digging showed that this is an option to "tm-define", but
> it is not clear how I can use tm-define in this context.
>
> A little bit more on what I'm trying to do: I want to implement a
> TeXmacs interface to natbib. Natbib returns citations in the form:
>
> Foo et al.(2004b)Foo, Bar and Snafu
>
> TeXmacs turns this in to:
>
> Foo et al.(2004<natbib|b>)Foo, Bar and Snafu
>
> Ideally, I'd like to have several macros which return formatted citations:
>
> \citenew{foo:ea:04b} => "Foo, Bar and Snafu (2004b)"
> \citep{foo:ea:04b} => "(Foo et al., 2004b)"
> \citet{foo:ea:04b} => "Foo et al. (2004b)"
>
> Of course, there are variations of these. The general approach I plan
> to use is the following:
>
> 1. Use a TeXmacs macro to call \cite
> 2. Pass the resulting tree to a scheme function in my-texmacs-init.scm
> 3. Have the scheme function put the tree in to the proper format
> 4. Return the resulting tree to the calling macro.
>
> In addition to the problems above, I don't know how to do #2 or #3.
> This is not entirely true: using _strings_ instead of trees, I can
> do #3, but of course, this is not the way TeXmacs works :(
> I'm not even entirely sure what the tree representation is for:
>
> Foo et al.(2004<natbib|b>)Foo, Bar and Snafu
>
> If no one can help with #3, I might be able to call the scheme
> functions from \render-cite (which I think allows me to operate on text...).
> But then I still need to figure out how to make the scripts secure...
>
> I'll play a bit more w/ the tree representation and report on my
> successes/failures. *But*, please, if you have *any* pointers,
> *any* help would be appreciated.
>
> Thanks,
> Amit Dubey
>
>


  • Help with scheme functions, Amit Dubey, 10/25/2004
    • Message not available
      • [TeXmacs] Help with scheme functions, Corey Sweeney, 10/29/2004

Archive powered by MHonArc 2.6.19.

Top of page