ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug with glue and spaces in formulas?
@ 2004-11-10 18:44 Otared Kavian
  0 siblings, 0 replies; only message in thread
From: Otared Kavian @ 2004-11-10 18:44 UTC (permalink / raw)


Hi Hans and all Contexters,

While discussing with David Munger about the Steps macros he wrote 
for presentations in ConTeXt (see the thread \presentationstep), we 
noticed that there seems to be a problem with "white spaces" or glue 
around some "binary operators" such as +, - and =.
Please see the result of the following sample.

Best regards: OK

%%%% begin file test-glue.tex
\starttext
This is to verify how the space, or glue, is controlled in \ConTeXt.

First some binary operators ``$\in$'', ``$+$'', ``$-$'' and ``$=$'' 
without grouping braces:
\placeformula[eq:plain]
\startformula
x\in \Omega \subset {\Bbb R}^N,\quad\quad -\Delta u + u -u^3 = f.
\stopformula
Next the same with braces
\placeformula[eq:braces1]
\startformula
x{\in} \Omega {\subset} {\Bbb R}^N,\quad\quad {-}\Delta u {+} u {-u^3} {=} f.
\stopformula
Note how the spaces around the signs $\in$, $+$, $-$ and $=$ have 
shrinked. The problem seems to appear when these are actually binary 
operators (that is $+1$ and ${+}1$ give the same result, while 
$1+2=3$ is different from $1{+}2{=}3$).

I haven't tried all such binary operators, but it seems that this 
happens with all of them: compare $A \cap B$ and $A{\cap}B$, or 
$A\cup B$ and $A{\cup}B$.

\stoptext
%%%%% end file test-glue.tex

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-10 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10 18:44 bug with glue and spaces in formulas? Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).