[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] An example for `command' in pic.man
From: |
Bernd Warken |
Subject: |
[Groff] An example for `command' in pic.man |
Date: |
Fri, 14 May 2004 13:17:08 +0200 |
The pic preprocessor has a powerful interface to groff outside with `command'.
Although its syntax is not straightforward, no examples seem to exist for this
interface. The following diff adds an example to the man page for pic in
<groff-source>/src/preproc/pic/pic.man:
--- pic.man.orig 2003-07-10 06:41:42.000000000 +0200
+++ pic.man 2004-05-14 12:42:16.000000000 +0200
@@ -362,6 +362,22 @@
or
.BR \e ,
but allows the values of variables to be passed through.
+For example,
+.RS
+.IP
+.ft B
+.nf
+\&.PS
+x = 14
+command ".ds string x is " x "."
+\&.PE
+\\*[string]
+.ft
+.fi
+.RE
+.IP
+prints
+.B x is 14.
.
.TP
\fBsh\fR \fIX\fR \fIcommand\fR \fIX\fR
Bernd Warken
____________________________________________________________________
Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F!
Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158
- [Groff] An example for `command' in pic.man,
Bernd Warken <=