groff
[Top][All Lists]
Advanced

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

Re: [Groff] nroff vs. troff conditional using escapes?


From: Werner LEMBERG
Subject: Re: [Groff] nroff vs. troff conditional using escapes?
Date: Sat, 23 Feb 2008 09:31:01 +0100 (CET)

> What I mean is that I'd like to be able to do something like this:
> 
>   For more information, see the \n[troff]Description\n[troff]
>   \n[nroff]DESCRIPTION\n[nroff] section.

There are no inline conditionals in groff.  You would rather define a
macro like this:

  .de t-or-n
  .  ie t \
  .    nop \\$1
  .  el \
  .    nop \\$2
  ..

Then you can say

  For more information, see the
  .t-or-n Description DESCRIPTION
  section.


     Werner




reply via email to

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