--- Begin Message ---
Oh I didn't realize it was already implemented!

Let me play around with it a bit and get back to you.

RK
        From [EMAIL PROTECTED] Sat Sep  8 14:42:35 2007
        Date: Sat, 08 Sep 2007 22:42:28 +0200 (CEST)
        To: [EMAIL PROTECTED]
        Subject: Re: gtroff enhancement request
        From: Werner LEMBERG <[EMAIL PROTECTED]>
        In-Reply-To: <[EMAIL PROTECTED]>
        References: <[EMAIL PROTECTED]>
                <[EMAIL PROTECTED]>
        X-Provags-ID: V01U2FsdGVkX18x4Cip5IKjT+0LRc9rMkt7M+IeV6VWoszFg6s
         p7CTxyC+dYWetWBvwsjgRVUNFt5o63aePoeXrUKEs/TJVd1YLo
         3xZJZG6b5FvNv5F6auf0Q==

        >       What about using strings with arguments?  Look at this
        >       example:
        > 
        >         .de xxx
        >         \c
        >         .  gcolor \\$1
        >         ..
        >         .
        >         This is \*[xxx green]a test\*[xxx] with colours.
        > 
        > I thought about this last night, and I think I came up with a
        > similar idea an escape that can call an arbitrary macro with
        > arguments.  Is the string format '\*[]' the right syntax do you
        > think?

        Well, this is what is implemented already in groff...

        > Perhaps \Q[macro arg1 ...] would work?  I think this is an idea
        > worth discussing.

        Direct execution of an arbitrary macro with an escape doesn't work
        since groff always expands in-place; a macro to be called with \*[...]
        have to start with `\c' as the first line.


            Werner


--- End Message ---

Reply via email to