groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Fw: gtroff enhancement request


From: Werner LEMBERG
Subject: [Groff] Fw: gtroff enhancement request
Date: Sun, 09 Sep 2007 00:31:37 +0200 (CEST)

--- Begin Message --- Subject: Re: gtroff enhancement request Date: Sat, 8 Sep 2007 14:53:34 -0600 (MDT)
Oh I didn't realize it was already implemented!

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

RK
        From address@hidden Sat Sep  8 14:42:35 2007
        Date: Sat, 08 Sep 2007 22:42:28 +0200 (CEST)
        To: address@hidden
        Subject: Re: gtroff enhancement request
        From: Werner LEMBERG <address@hidden>
        In-Reply-To: <address@hidden>
        References: <address@hidden>
                <address@hidden>
        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

[Prev in Thread] Current Thread [Next in Thread]