Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Macros with hyperlinks

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Macros with hyperlinks


Chronological Thread 
  • From: Oscar Gerardo Lazo Arjona <address@hidden>
  • To: address@hidden, address@hidden
  • Subject: Re: [TeXmacs] Macros with hyperlinks
  • Date: Fri, 07 Jan 2011 13:25:08 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=E88gN5qfAtXZTZ6R3aE9JZ2kHqQ9mDo+21wD2OmhdxJwCFVLgmu9a2EX0SQYdprVx+ 18egbXVaV81J+6r2tRFSShZGym+TiSkdtfaUYrge0ojZvo3nyizzIfmddjrqcCDYTEcx mUjuYqAci69KnNUeRQ5ROkTePv+nHtMRvEuT8=

On 07/01/11 10:31, Joris van der Hoeven wrote:
On Fri, Jan 07, 2011 at 10:28:25AM -0600, Oscar Gerardo Lazo Arjona wrote:
On 07/01/11 03:30, Joris van der Hoeven wrote:
The following macro should be helpful to look at:


<assign|hop|<macro|x|y|<arg|x>,<if|<equal|<arg|y>|<uninit>>|--|<arg|y>>>>

You may find more information in the documentation on writing style files.

Best, --Joris


I tried that, but I if I use<hop|foo|> and hit enter I get:

"foo,"
This is because the set of possible arities is not detected here.
You can enter the thing with M-i c instead of \.
That does work, but it's a lot of keys to press for just a link, how
With drd-props you may override the possible arities of a macro.

I read in http://www.texmacs.org/tmweb/manual/webman-styling.en.html and tried with

<drd-props|hey|arity|1>

And that sets the default arity to 1, which I can change to 2 if I deactivate the tag (make it go from blue to green).

But it seems to me that for my purposes it is better to use <if|<equal|TextName|>|... > rather than
<if|<equal|TextName|<uninit>|... >, so that leaving <wlink|FileName|> works as expected. This is neater than having to deactivate the tag.

However, I think the optimal behaviour would be if it worked in a similar way to the <macro> tag whose arity can be changed when the tag is active (blue).

Can this be done?

Thank you!

Oscar.



Best, --Joris





Archive powered by MHonArc 2.6.19.

Top of Page