Re: [Groff] .if !dTS - GNU extension?

2016-04-27 Thread Werner LEMBERG
>> The canonical documentation, BTW, are the groff info files > > How ironic! Yes :-) However, `info' is the official GNU documentation format, and its indexing system is quite good, something groff's output formats don't provide. On the other hand, I always tried to maintain well-written man p

Re: [Groff] .if !dTS - GNU extension?

2016-04-27 Thread Doug McIlroy
> The canonical documentation, BTW, are the groff info files How ironic! Doug

Re: [Groff] multi-line macro arguments (for printing envelopes)

2016-04-27 Thread Łukasz Stelmach
Steffen Nurpmeso writes: > (Ted Harding) wrote: > |> Łukasz Stelmach wrote: > |>> I am developing a macro to print envelopes. Is it possible to pass a > |>> multi-line string (not necessarily defined with .ds) as a parameter > |>> for a macro? > > |The basic idea is not to give a "multi-li

Re: [Groff] multi-line macro arguments

2016-04-27 Thread Łukasz Stelmach
(Ted Harding) writes: > On 27-Apr-2016 18:24:41 Carsten Kunze wrote: >> Łukasz Stelmach wrote: >> >>> I am developing a macro to print envelopes. Is it possible to pass a >>> multi-line string (not necessarily defined with .ds) as a parameter >>> for a macro? >> >> what exactly would you like t

Re: [Groff] multi-line macro arguments

2016-04-27 Thread Steffen Nurpmeso
(Ted Harding) wrote: |> ?ukasz Stelmach wrote: |>> I am developing a macro to print envelopes. Is it possible to pass a |>> multi-line string (not necessarily defined with .ds) as a parameter |>> for a macro? |The basic idea is not to give a "multi-line string" as a single |paramater, but

Re: [Groff] multi-line macro arguments

2016-04-27 Thread Ted Harding
On 27-Apr-2016 18:24:41 Carsten Kunze wrote: > Hi, > > ?ukasz Stelmach wrote: > >> I am developing a macro to print envelopes. Is it possible to pass a >> multi-line string (not necessarily defined with .ds) as a parameter >> for a macro? > > what exactly would you like to do? Can you please gi

Re: [Groff] .if !dTS - GNU extension?

2016-04-27 Thread Werner LEMBERG
> Out of curiosity, would there be any way in classical troff to detect if a > macro is defined? In general, no, as far as I know. Werner

Re: [Groff] multi-line macro arguments

2016-04-27 Thread Carsten Kunze
Hi, ?ukasz Stelmach wrote: > I am developing a macro to print envelopes. Is it possible to pass a > multi-line string (not necessarily defined with .ds) as a parameter > for a macro? what exactly would you like to do? Can you please give an example? --Carsten

Re: [Groff] .if !dTS - GNU extension?

2016-04-27 Thread John Gardner
Oh, erm, whoops. Well in my defence, searching for "d" didn't get me terribly far, haha. Thanks! Out of curiosity, would there be any way in classical troff to detect if a macro is defined? Short of diverting the output of .pm I mean... On 28 April 2016 at 03:10, Werner LEMBERG wrote: > > > Thi

Re: [Groff] .if !dTS - GNU extension?

2016-04-27 Thread Werner LEMBERG
> This left me wondering if it's a Groff extension, but I couldn't find any > mention of it in *groff_diff*. Or is there something else I'm missing? Have a look at the `Miscellaneous' section in the `groff_diff' man page! The `!' is a NOT operator (which isn't new), and the GNU troff extension `

[Groff] .if !dTS - GNU extension?

2016-04-27 Thread John Gardner
Hey everybody, I was digging through Groff's source code when I happened across this line : printf(".if !\\n(.g .ab GNU tbl requires GNU troff.\n" >".if !dTS .ds TS\n" >".if !dTE .ds TE\n" Perhaps I

[Groff] multi-line macro arguments

2016-04-27 Thread Łukasz Stelmach
Good morning. I am developing a macro to print envelopes. Is it possible to pass a multi-line string (not necessarily defined with .ds) as a parameter for a macro? -- Kind regards, Łukasz Stelmach