groff
[Top][All Lists]
Advanced

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

Re: [Groff] -mm formatting macros question


From: Marisa Giancarla
Subject: Re: [Groff] -mm formatting macros question
Date: Sun, 27 Sep 2015 22:43:09 -0700

I made some progress but still have issues:

==== This is how I have it in my .mm file: ====
.PGFORM 80 0 0 1
.PGNH
ImpServ [sectorcache=<size>] [shipcache=<size>] [planetcache=<size>]
.DS 1
[itemcache=<size>]
[clearplay=on|off]
[port=<port>] or [-p<port>]
[nonews=on|off] or [-n]
.DE
.sp
.sp
ImpServ is the Imperium file server. It accepts requests from clients, and
returns them the objects they asked for, preventing deadlocks when more than
one client wishes to access a given item at a time.
.sp
.sp
The "port=" or "-p" option allows you to specify the port name that
ImpServ should use to talk to clients. This is only useful if you wish to
run more than one ImpServ at a time on the same machine. For example, you
might have a "beginners" game and an "experienced players" game, or maybe a
"fast" game at the same time as a "normal" game.
==== This is how it comes out: ====

ImpServ [sectorcache=<size>] [shipcache=<size>] [planetcache=<size>]
     [itemcache=<size>]
     [clearplay=on|off]
     [port=<port>] or [-p<port>]
     [nonews=on|off] or [-n]
ImpServ  is  the  Imperium  file  server.  It accepts requests from clients, and
returns them the objects they asked for, preventing deadlocks when more than one
client wishes to access a given item at a time.
The  "port="  or  "-p"  option  allows you to specify the port name that ImpServ
should use to talk to clients. This is only useful if you wish to run more  than
one  ImpServ  at  a  time  on  the  same  machine. For example, you might have a
"beginners" game and an "experienced players" game, or maybe a  "fast"  game  at
the same time as a "normal" game.
The  "nonews="  or  "-n"  option  allows  you to tell ImpServ that it should NOT
create news items. This is mainly useful for "fast" games (games with a low  ITU
(time per update)).
========
As you can see there are no spaces between paragraphs. I have also tried using 
the .P command and had the same output. Can anyone help?

> On Sep 16, 2015, at 1:02 AM, Ingo Schwarze <address@hidden> wrote:
> 
> Hi Marisa,
> 
> Marisa Giancarla wrote on Tue, Sep 15, 2015 at 11:03:03PM -0700:
> 
>> This should be easy - what are the macros in -mm
> 
> -mm is a macro set.  It is intended to make entering roff(7) code
> easier.  That implies that it doesn't need to contain macros for
> things that are already easy with low-level roff(7) requests, as
> long as these requests don't interfere with the inner workings of
> the -mm macros.
> 
> All you ask can be done easily with the following roff(7) requests:
> 
>> that end a line early,
> 
> .br
> 
>> and that put a blank line between two paragraphs.
> 
> .sp
> 
> unless the -mm .P macro already adds enough space at a specific
> position for your taste.  You can use the \n(Ps number register
> to adjust vertical paragraph spacing to your needs.
> 
> You could also use the -mm .SP macro, but it doesn't seem to do
> much more than plain .sp, except for the effect that multiple .SP
> in a row don't add up, while multiple .sp do, which may or may not
> be an improvement depending on context, but probably not very
> relevant unless you write your own macros on top of -mm.
> 
> Also note that .VERBON has an option to add a line before the
> verbose text, just in case that's the place where you need it.
> 
>> Is .BR one of them?
> 
> Not at all, according to groff_mm(7), it's an alternating font macro,
> fomatting its odd args in bold and its even macros in roman.
> 
> Yours,
>  Ingo


reply via email to

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