Subject: mailing-list for TeXmacs Users
List archive
From : Joris van der Hoeven <address@hidden>- To: Alvaro Tejero Cantero <address@hidden>
- Cc: <address@hidden>, <address@hidden>
- Subject: Re: [TeXmacs] Help on action
- Date: Thu, 17 Feb 2005 22:28:52 +0100 (CET)
On Fri, 28 Jan 2005, Alvaro Tejero Cantero wrote:
> <assign|bcite|
> <macro|x|
> <assign|bibfilename|
> <find-file|.|/home/qoptik/Literatur|<merge|<arg|x>|.pdf>>>
> <action|<arg|x>|
> (with s (get-env "bibfilename") (display* "bname=" (substring s 7
> (string-length s))))>>>
The point here is that macro arguments are still different from
environment variables (see the documentation on TeXmacs primitives;
one day this distinction may disappear, but not within the next few months).
Nevertheless, it is always easy to locally assign an environment
variable with a macro argument using the "with" primitive.
Alternatively, you can use some macro-magic so as to substitute
the argument by its value in the body: see the (detailed) documentation
on quoting and quasi-quoting and the examples given there.
- Re: [TeXmacs] Help on action, Joris van der Hoeven, 02/17/2005
Archive powered by MHonArc 2.6.19.