groff
[Top][All Lists]
Advanced

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

Re: [Groff] Unkown mathematical sign


From: Ted Harding
Subject: Re: [Groff] Unkown mathematical sign
Date: Sat, 16 Feb 2013 10:47:41 -0000 (GMT)

On 16-Feb-2013 10:10:56 Volker Wolfram wrote:
> Hi,
> im using GROFF on OpenBSD and I'm really satisfied with this great
> software and tools. But I'm a beginner and im looking for a symbol
> in  the eqn macro package. This is the "element" sign to describe
> an item in a mathematical quantity. I found this sign in LaTeX coded
> as "in".
> 
> Can anyone help me to get this sign in GROFF?
> 
> I thank you all for your support.
> 
> Regards,
> Volker Wolfram
> 
> Volker Wolfram
>         location: /dev/null
>         Nur solid gegr=C3=BCndetes Nichtwissen ist bombensicher.

The symbol you are looking for is present in the PostScript "Symbol"
font as "element" (PostScript name), and can be acessed in the groff
symbol set ("S") as "mo" (groff name, standing for "member of").

To have this readily available in 'eqn' you can pre-define it.
In my own definition I refer to it as "in", and my definition is:

  sdefine in %{ type "binary" vcenter "\(mo" }%

with an associated definition of "notin" (the same symbol as "in"
but with a strike through it):

  sdefine notin %{ type "binary" vcenter "\(nm" }%

(where tghe groff name "nm" stands for "not member").

You can either put these definitions in your specific document,
encapsulated within ".EQ" and ".EN" when you first need it, such as:

.EQ
sdefine in %{ type "binary" vcenter "\(mo" }%
sdefine notin %{ type "binary" vcenter "\(nm" }%

P ( A ) ~=~ sum from{a in A} p ( a )
.EN

or (for general use) you can edit the file eqnrc (in the 'tmac'
folder), which is read in by groff before anything else happens,
so that they are included in that file. Then they will always be
available.

As simple examples, here are a few of the special definitions which
I have placed in my 'eqnrc' file:

sdefine cdot %{ type "binary" "\(md" }%
sdefine forall %{ type "operator" "\(fa" }%
sdefine thereis %{ type "operator" "\(te" }%
sdefine suchthat %{ type "operator" vcenter roman ":" }%
sdefine in %{ type "binary" vcenter "\(mo" }%
sdefine notin %{ type "binary" vcenter "\(nm" }%
sdefine asymp %{
  type "binary" vcenter "\v'0.1n'\s[\En[.s]*12u/10u]\(ti\s0\v'-0.1n'" }%

Hoping this helps. Please follow up with further queries if
any further help is needed!

Best wishes,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Date: 16-Feb-2013  Time: 10:47:27
This message was sent by XFMail
-------------------------------------------------


reply via email to

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