groff
[Top][All Lists]
Advanced

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

[Groff] Creating a table macro


From: Automation Department
Subject: [Groff] Creating a table macro
Date: Tue, 17 May 2011 18:59:23 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Would like to create a very simple table macro.

eg.,

.de TABLE
.TS
box expand;
l s
l l.
\fI\\$1\fP

..

This does not work though other similarly crafted macros do. It 'starts'
the macro at the macro definition. Do I need to escape it?

Also, if I just do:

.de TABLE
box expand;
l s
l l.
\fI\\$1\fP

..

Then call with

.TS
.TABLE "Macro Junk"
column1 column2
.TE

I get:
tbl:final_rpt.roff:369: `.' not last character on line
tbl:final_rpt.roff:369: giving up on this table

Just hoping to save some typing.

Thanks!

- -- 
Chad Roseburg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN0yf7AAoJEBi1nVMf5Zz5WmcH/RLXJwm3lahPn7ANZYCUmTHs
OpKOuLPZxqmQDunCgsfo59fzEpCCM5eZLeQvUAz4UhmnDd22gw5Uc8UBGJOQjQPz
/4yEAIJ3lbSCFV61guBgoI7NbszxRZhMiwu5CBmamWDkMxmug6p0k/sf9GosX+VS
W4yrUzN8dzq5/N74FEq+2I8pznAomi7cafWCiv6WPXDDVF/CCiMJhB9Lt4NyzMhf
MOjDj1br+ITupZ0FAA8P+NRSWVXHdNG/yEyoMEGd57yEimzo91EL0UaXuafhtdto
9GKd0DqtC/HrD2IUdihSjnUKdbT/z/i7+d70xFH8gL88tDkJh/U7+mLQRjk6Ss0=
=0ZUS
-----END PGP SIGNATURE-----



reply via email to

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