ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* math: `\overbar` with fractions and subscripts
@ 2011-02-04 11:14 Paul Menzel
  2011-02-04 19:45 ` Otared Kavian
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-02-04 11:14 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1029 bytes --]

Dear ConTeXt folks,


I do have some problem with the following example (also attached,
executed with `context test`).

        \starttext
        \startformula
        \overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}
        \stopformula
        In text $\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}$.
        \startformula
        \overbar{q_0} = \frac{\overbar{q}}{\overbar α}
        \stopformula
        \stoptext

I am using the latest ConTeXt Minimals distribution.

        $ context --version
        
        MTXrun | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv
        MTXrun | current version: 2011.02.04 10:01

1. The bar divides for subscripts/indices.
2. If you look at the first fraction, the bar is as long as the stroke
from the fraction and therefore I think too long.
3. When inlining the fraction in text the bar fuses with the stroke from
the fraction.

Are these know problems or do I just use the wrong commands?


Thanks,

Paul

[-- Attachment #1.1.2: test.pdf --]
[-- Type: application/pdf, Size: 15901 bytes --]

[-- Attachment #1.1.3: test.tex --]
[-- Type: text/x-tex, Size: 241 bytes --]

\starttext
\startformula
\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}
\stopformula
In text $\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}$.
\startformula
\overbar{q_0} = \frac{\overbar{q}}{\overbar α}
\stopformula
\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: math: `\overbar` with fractions and subscripts
  2011-02-04 11:14 math: `\overbar` with fractions and subscripts Paul Menzel
@ 2011-02-04 19:45 ` Otared Kavian
  2011-02-07 12:40   ` Paul Menzel
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2011-02-04 19:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Paul,

I think one should use \overline instead of \overbar in your example. For me the following works fine with mkiv:
      \starttext
       \startformula
       \overline{q} = \frac{\overline{q}}{\overline{α_0}}
       \stopformula
       In text $\overline{q} = \frac{\overline{q}}{\overline{α_0}}$.
       \startformula
       \overline{q_0} = \frac{\overline{q}}{\overline α}
       \stopformula
       \stoptext
(one gets as expected the « conjugate » of α_0, for instance).

Best regards: OK
On 4 févr. 2011, at 12:14, Paul Menzel wrote:

> Dear ConTeXt folks,
> 
> 
> I do have some problem with the following example (also attached,
> executed with `context test`).
> 
>        \starttext
>        \startformula
>        \overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}
>        \stopformula
>        In text $\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}$.
>        \startformula
>        \overbar{q_0} = \frac{\overbar{q}}{\overbar α}
>        \stopformula
>        \stoptext
> 
> I am using the latest ConTeXt Minimals distribution.
> 
>        $ context --version
> 
>        MTXrun | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv
>        MTXrun | current version: 2011.02.04 10:01
> 
> 1. The bar divides for subscripts/indices.
> 2. If you look at the first fraction, the bar is as long as the stroke
> from the fraction and therefore I think too long.
> 3. When inlining the fraction in text the bar fuses with the stroke from
> the fraction.
> 
> Are these know problems or do I just use the wrong commands?
> 
> 
> Thanks,
> 
> Paul
> <test.pdf><test.tex>___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: math: `\overbar` with fractions and subscripts
  2011-02-04 19:45 ` Otared Kavian
@ 2011-02-07 12:40   ` Paul Menzel
  2011-02-07 14:29     ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-02-07 12:40 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1042 bytes --]

Dear Otared,


Am Freitag, den 04.02.2011, 20:45 +0100 schrieb Otared Kavian:

> I think one should use \overline instead of \overbar in your example. For me the following works fine with mkiv:
>       \starttext
>        \startformula
>        \overline{q} = \frac{\overline{q}}{\overline{α_0}}
>        \stopformula
>        In text $\overline{q} = \frac{\overline{q}}{\overline{α_0}}$.
>        \startformula
>        \overline{q_0} = \frac{\overline{q}}{\overline α}
>        \stopformula
>        \stoptext
> (one gets as expected the « conjugate » of α_0, for instance).

thank you for your answer. `\overline` works as you say, but it looks
typographically different in the respect that the bar is closer to the
letter, which of course solves the issue for the inline fraction. For α
this looks quite strange in my eyes. But I do not know a lot about
typography.

Please find the PDF-output attached with the following ConTeXt version.

	MTXrun | current version: 2011.02.04 10:01


Thanks,

Paul

[-- Attachment #1.1.2: test.pdf --]
[-- Type: application/pdf, Size: 15840 bytes --]

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: math: `\overbar` with fractions and subscripts
  2011-02-07 12:40   ` Paul Menzel
@ 2011-02-07 14:29     ` Aditya Mahajan
  0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2011-02-07 14:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 487 bytes --]

On Mon, 7 Feb 2011, Paul Menzel wrote:

> thank you for your answer. `\overline` works as you say, but it looks
> typographically different in the respect that the bar is closer to the
> letter, which of course solves the issue for the inline fraction. For α
> this looks quite strange in my eyes. But I do not know a lot about
> typography.

IIRC, \overline is meant for long entities, like \overline{(a+b)}. For 
single letters, it is better to use the accent \bar.

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-07 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-04 11:14 math: `\overbar` with fractions and subscripts Paul Menzel
2011-02-04 19:45 ` Otared Kavian
2011-02-07 12:40   ` Paul Menzel
2011-02-07 14:29     ` Aditya Mahajan

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).