groff
[Top][All Lists]
Advanced

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

RE: [Groff] ceil() and floor()


From: Ted Harding
Subject: RE: [Groff] ceil() and floor()
Date: Thu, 05 Apr 2007 10:36:03 +0100 (BST)

On 05-Apr-07 06:51:39, address@hidden wrote:
> Hi! 
> 
> Can groff or eqn print out floor() |_ _| and ceil() |- -| characters?

eqn recognises keywords "floor" and "ceiling2, and adjusts their
heights to match enclosed expressions using "left" and "right",
as in:

.EQ L
left floor {x over y} right floor
~~~~~
left ceiling {x over y} right ceiling
.EN

Note, however, that you must *always* use "left" and/or "right
with "floor" and "ceiling" -- otherwise the keywords are printed
as text. Hence, for instance

.EQ L
left floor {cos^x} right floor
~~~~~
left ceiling {sin^x} right ceiling
.EN

but if you leave off "left":

.EQ L
floor {cos^x}
.EN

If you only want one side (left or right) of a floor or ceiling,
you can just use say "left floor" for the left-hand side, as in

.EQ L
left floor {x over y}
.EN

but you must put in 'left ""' as well if you only want "right floor"

.EQ L
left "" {x over y} right floor
.EN

This is because eqn can cope with a "left something" followed by
an object (delimited above by {}), automatically closing it
"invisibly" when the object comes to an end; but needs an
explicit "left" when there is a "right something". The use of

left ""

provides an invisible opener of the left-right pair.

Hoping this helps,
ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 094 0861
Date: 05-Apr-07                                       Time: 10:35:43
------------------------------ XFMail ------------------------------




reply via email to

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