groff
[Top][All Lists]
Advanced

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

Re: [Groff] explicit and implicit spacing in eqn


From: Carsten Kunze
Subject: Re: [Groff] explicit and implicit spacing in eqn
Date: Mon, 18 Apr 2016 12:57:28 +0200 (CEST)

Doug McIlroy <address@hidden> wrote:

> But it is not unnoticeable in case of unary minus.
> Groff eqn treats
>       a~=~-b
> as if it were binary, and inserts extra space between
> the - and b.

It does work with the following patch--for the mentioned cases.
In case of a=c~-b then there is only space before the '-',
so either c-b or c~-~b must be used then.

diff --git a/src/preproc/eqn/list.cpp b/src/preproc/eqn/list.cpp
index 9e6e359..d77f771 100644
--- a/src/preproc/eqn/list.cpp
+++ b/src/preproc/eqn/list.cpp
@@ -101,6 +101,7 @@ int list_box::compute_metrics(int style)
          || prevt == OPERATOR_TYPE
          || prevt == RELATION_TYPE
          || prevt == OPENING_TYPE
+         || prevt == SUPPRESS_TYPE
          || prevt == PUNCTUATION_TYPE)
        list.p[i]->spacing_type = ORDINARY_TYPE;
     }

--Carsten



reply via email to

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