[NTG-context] Re: Why overbar is so big

2023-08-14 Thread Xavier B.
Yes. It works without lualibs-os
Thanks
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-14 Thread Hans Hagen via ntg-context

On 8/14/2023 9:13 AM, Xavier B. wrote:

It does not work:

\directlua{
34require "lualibs-os"
35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc 
-l")+1))}

What do you run directlua in LMTX?
in this case, what does does lualibs-os provide? os.resultof is built 
into context so that should just work


ok, i did as search on ctan and it looks like that lua file is just the 
context l-os one renamed so no need to load anything, in fact, loading 
it might even break the built in when it does overloads


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-14 Thread Xavier B.
It does not work:

\directlua{
34require "lualibs-os"
35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc 
-l")+1))}

What do you run directlua in LMTX?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen

On 8/13/2023 10:39 PM, Xavier B. wrote:

Running LMTX I have an error: lualibs-os not found:

lua error   > lua error on line 35 in file 
ng-pre-informacio-document.conTeXt:

token call, execute: 
...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 
'lualibs-os' not found:
 no field package.preload['lualibs-os']
 no file '/usr/local/share/lua/5.4/lualibs-os.lua'
 no file '/usr/local/share/lua/5.4/lualibs-os/init.lua'
 no file '/usr/local/lib/lua/5.4/lualibs-os.lua'
 no file '/usr/local/lib/lua/5.4/lualibs-os/init.lua'
 no file './lualibs-os.lua'
 no file './lualibs-os/init.lua'
stack traceback:
 [C]: in upvalue 'requiem'
 ...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function 
<...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165>
 (...tail calls...)
 [ctxlua]:1: in main chunk
25 \subsubject{Versió}
26
27 Contínuament canvio aquest document, afegint, modificant o eliminant 
algunes parts seves. En aquest sentit, és una obra permanentment inacabada. Per 
aquest motiu convé saber quina versió del document esteu llegint.
28
29 \medskip
30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, 
mm,-,dd]}.
31
32 \bigskip
33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ 
},month,{ },year] a les \currenttime, usant programari lliure 
(\goto{\Context}[url(http://wiki.contextgarden.net)] versió 
\contextversionnumber, \goto{\texenginename}[url(http://www.luatex.org)] versió 
\texengineversion\space i \goto{PGF/Ti{\em 
k}Z}[url(http://sourceforge.net/projects/pgf/)]) sota un entorn 
\goto{GNU/Linux}[url(https://www.linuxfoundation.org)] (\goto{Artix 
Linux}[url(https://artixlinux.org)]). La revisió d'aquest document és la número 
\goto{\directlua{
34require "lualibs-os"
35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc 
-l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. El conjunt 
de les versions s'administra amb \goto{git}[url(http://git-scm.com/)]. Teniu el codi font del 
document en aquest repositori: 
\goto{https://repo.or.cz/apunts-espa-matematiques.git}[url(https://repo.or.cz/apunts-espa-matematiques.git)].
36


Can you give me the solution here?
I have no clue what lualibs-os is so ... if it's something third party 
you and try.


--permitloadlib

and cross your fingers. Also, whenever using lua code that is not part 
of context keep in mind that we use lua 5.4


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
Running LMTX I have an error: lualibs-os not found:

lua error   > lua error on line 35 in file 
ng-pre-informacio-document.conTeXt:

token call, execute: 
...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 
'lualibs-os' not found:
no field package.preload['lualibs-os']
no file '/usr/local/share/lua/5.4/lualibs-os.lua'
no file '/usr/local/share/lua/5.4/lualibs-os/init.lua'
no file '/usr/local/lib/lua/5.4/lualibs-os.lua'
no file '/usr/local/lib/lua/5.4/lualibs-os/init.lua'
no file './lualibs-os.lua'
no file './lualibs-os/init.lua'
stack traceback:
[C]: in upvalue 'requiem'
...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in 
function <...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165>
(...tail calls...)
[ctxlua]:1: in main chunk
25 \subsubject{Versió}
26
27 Contínuament canvio aquest document, afegint, modificant o eliminant 
algunes parts seves. En aquest sentit, és una obra permanentment inacabada. Per 
aquest motiu convé saber quina versió del document esteu llegint.
28
29 \medskip
30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, 
mm,-,dd]}.
31
32 \bigskip
33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ 
},month,{ },year] a les \currenttime, usant programari lliure 
(\goto{\Context}[url(http://wiki.contextgarden.net)] versió 
\contextversionnumber, \goto{\texenginename}[url(http://www.luatex.org)] versió 
\texengineversion\space i \goto{PGF/Ti{\em 
k}Z}[url(http://sourceforge.net/projects/pgf/)]) sota un entorn 
\goto{GNU/Linux}[url(https://www.linuxfoundation.org)] (\goto{Artix 
Linux}[url(https://artixlinux.org)]). La revisió d'aquest document és la número 
\goto{\directlua{
34require "lualibs-os"
35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc 
-l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. 
El conjunt de les versions s'administra amb 
\goto{git}[url(http://git-scm.com/)]. Teniu el codi font del document en aquest 
repositori: 
\goto{https://repo.or.cz/apunts-espa-matematiques.git}[url(https://repo.or.cz/apunts-espa-matematiques.git)].
36


Can you give me the solution here?

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Mikael Sundqvist
Hi,

On Sun, Aug 13, 2023 at 9:13 AM Xavier B.  wrote:
>
> So,
>
> Finally is it a bug in MKIV? It seems you fix some kind of bug in your 
> messages. Is it true?
>
> > The output with Luametatex is correct but Luatex creates a raised bar
> > (and different linebreaking).
> >
> > \showglyphs
> >
> > \startTEXpage[offset=1ex]
> >  \ruledhbox{$\overline{OA} = \overbar  {OA} = 4.2$}
> >  \par
> >  \ruledhbox{$\underline   {OA} = \underbar {OA} = 4.2$}
> >  \par
> >  \ruledhbox{$\widetilde   {OA} = \widebar  {OA} = 4.2$}
> >  \par
> >  \ruledhbox{$\overbracket {OA} = \underbracket {OA} = 4.2$}
> > \stopTEXpage
> >
> > I'll add a 'force fix in spite of extensible being present' in mkiv. In
> > lmtx we always fix also because we drop in nicer shapes (watch the round
> > tips in lm and fancy tips in antykwa) and concluded that fonts will
> > remain as they are.
> >
> > Hans
>
> As you suggested, I will give a try to LMTX but be aware most user still use 
> MKIV until most distros upgrade the texlive version of context to LMTX.
>
> Regards,
> Xavier

One can also try to instead use the accent mechanism instead of a stacker:

% engine=luatex

\definemathtopaccent[widebar] ["0305]

\startTEXpage[offset=3pt]
$\overbar{OA}$

$\widebar{OA}$
\stopTEXpage

The \widebar is defined (almost) like that in lmtx.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen via ntg-context

On 8/13/2023 9:08 AM, Xavier B. wrote:

So,

Finally is it a bug in MKIV? It seems you fix some kind of bug in your 
messages. Is it true?


Not really. It's a a bug in the fonts (that will stay if only for 
compaibility reasons). There is a catch in mkiv that compensates for it 
but only when characters are not there. So, for these two I now force 
the catch.


In lmtx we have a bit different approach: we just assuem they are wrong 
in all fonts and fix them or replace them. We also have a more advanced 
math engine so we can control placement better.


There are also 'font parameters' involved that can be bad (i guess that 
designers can't really test math font parameters). In lmtx we have more 
of them, beyond what opentype math provides.


All of this is handled in goodie files. That mechanism is present in 
mkiv but no one ever bothered to spent time on it. That said: the last 
two years Mikeal and I spent a *lot* of time on math and we don't really 
look back at mkiv / mkii also because there is way more neat things now 
(most probably go unnoticed) ... you can read about it in some documents 
that come with context, articles in tugboat, and there are talks by 
Mikael at tug meetings on YT.



 The output with Luametatex is correct but Luatex creates a raised bar
 (and different linebreaking).

\showglyphs

\startTEXpage[offset=1ex]
  \ruledhbox{$\overline{OA} = \overbar  {OA} = 4.2$}
  \par
  \ruledhbox{$\underline   {OA} = \underbar {OA} = 4.2$}
  \par
  \ruledhbox{$\widetilde   {OA} = \widebar  {OA} = 4.2$}
  \par
  \ruledhbox{$\overbracket {OA} = \underbracket {OA} = 4.2$}
\stopTEXpage

I'll add a 'force fix in spite of extensible being present' in mkiv. In
lmtx we always fix also because we drop in nicer shapes (watch the round
tips in lm and fancy tips in antykwa) and concluded that fonts will
remain as they are.

Hans


As you suggested, I will give a try to LMTX but be aware most user still use 
MKIV until most distros upgrade the texlive version of context to LMTX.
It's not that hard to install lmtx alongside. If distributions take from 
texlive then likely you also end up with files that are not needed (base 
package) and lack some fonts (esp math) by default. You'd also benefit 
from the last couple of years advancements. Keep in mind that for a long 
term tex (document) project a snapshot approach is healthy because you 
never know what a distribution adds / replaces (esp fonts can be a mess 
and you want to know what you use).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
So,

Finally is it a bug in MKIV? It seems you fix some kind of bug in your 
messages. Is it true?

> The output with Luametatex is correct but Luatex creates a raised bar 
> (and different linebreaking).
> 
> \showglyphs
> 
> \startTEXpage[offset=1ex]
>  \ruledhbox{$\overline{OA} = \overbar  {OA} = 4.2$}
>  \par
>  \ruledhbox{$\underline   {OA} = \underbar {OA} = 4.2$}
>  \par
>  \ruledhbox{$\widetilde   {OA} = \widebar  {OA} = 4.2$}
>  \par
>  \ruledhbox{$\overbracket {OA} = \underbracket {OA} = 4.2$}
> \stopTEXpage
> 
> I'll add a 'force fix in spite of extensible being present' in mkiv. In 
> lmtx we always fix also because we drop in nicer shapes (watch the round 
> tips in lm and fancy tips in antykwa) and concluded that fonts will 
> remain as they are.
> 
> Hans

As you suggested, I will give a try to LMTX but be aware most user still use 
MKIV until most distros upgrade the texlive version of context to LMTX.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context

On 8/12/2023 10:10 AM, Xavier B. wrote:

The font is the default:
\setupbodyfont [modern, 12pt] % modern o cmr, 11pt

I use Linux (arch derivative).
if you want nicer math switch over to lmtx as mkiv is sort of frozen and 
efforts wrt math go into lmtx


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context

On 8/12/2023 11:46 AM, Wolfgang Schuster wrote:

Hans Hagen via ntg-context schrieb am 12.08.2023 um 11:13:

On 8/12/2023 10:10 AM, Xavier B. wrote:

The font is the default:
\setupbodyfont [modern, 12pt] % modern o cmr, 11pt

I use Linux (arch derivative).

Looks ok here (see atached). Does the modern-math.lfg file have:

    AccentTopShiftUp = -60,
    FlattenedAccentTopShiftUp    = -60,

I assume it has the same lm math font as we use.


Do you test with Luatex?


Only when asked.

The output with Luametatex is correct but Luatex creates a raised bar 
(and different linebreaking).

\showglyphs

\startTEXpage[offset=1ex]
\ruledhbox{$\overline{OA} = \overbar  {OA} = 4.2$}
\par
\ruledhbox{$\underline   {OA} = \underbar {OA} = 4.2$}
\par
\ruledhbox{$\widetilde   {OA} = \widebar  {OA} = 4.2$}
\par
\ruledhbox{$\overbracket {OA} = \underbracket {OA} = 4.2$}
\stopTEXpage

I'll add a 'force fix in spite of extensible being present' in mkiv. In 
lmtx we always fix also because we drop in nicer shapes (watch the round 
tips in lm and fancy tips in antykwa) and concluded that fonts will 
remain as they are.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Wolfgang Schuster

Hans Hagen via ntg-context schrieb am 12.08.2023 um 11:13:

On 8/12/2023 10:10 AM, Xavier B. wrote:

The font is the default:
\setupbodyfont [modern, 12pt] % modern o cmr, 11pt

I use Linux (arch derivative).

Looks ok here (see atached). Does the modern-math.lfg file have:

    AccentTopShiftUp = -60,
    FlattenedAccentTopShiftUp    = -60,

I assume it has the same lm math font as we use.


Do you test with Luatex?

The output with Luametatex is correct but Luatex creates a raised bar 
(and different linebreaking).


Wolfgang

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context

On 8/12/2023 10:10 AM, Xavier B. wrote:

The font is the default:
\setupbodyfont [modern, 12pt] % modern o cmr, 11pt

I use Linux (arch derivative).

Looks ok here (see atached). Does the modern-math.lfg file have:

AccentTopShiftUp = -60,
FlattenedAccentTopShiftUp= -60,

I assume it has the same lm math font as we use.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


overbar.pdf
Description: Adobe PDF document
\startTEXpage[offset=1ts]
$\overbar{OA} = 4.2$
\stopTEXpage
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Xavier B.
The font is the default:
\setupbodyfont [modern, 12pt] % modern o cmr, 11pt

I use Linux (arch derivative).

Xavier

On Fri, 11 Aug 2023 21:38:00 +0200
"Xavier B."  ha escrit:

> If you run
> 
> \starttext
> 
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
> quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
> consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 
> cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
> proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
> $\overbar{OA} = 4,2$
> \stoptext
> 
> Then the overbar has the bar in a very long altitude.
> Can you please, see the output attached.
> 
> Thanks in advance,
> Xavier
> 
> PS: I use context version:mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2023.03.10 12:15
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2023.03.10 12:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Why overbar is so big

2023-08-11 Thread Thangalin
Looks fine to me.

Current version: 2023.08.10 02:59

Running on Linux.

What fonts are you using?

On Fri, Aug 11, 2023 at 12:38 PM Xavier B.  wrote:

> If you run
>
> \starttext
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
> cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
> est laborum.
> $\overbar{OA} = 4,2$
> \stoptext
>
> Then the overbar has the bar in a very long altitude.
> Can you please, see the output attached.
>
> Thanks in advance,
> Xavier
>
> PS: I use context version:mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2023.03.10 12:15
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2023.03.10 12:15
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___


t.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Why overbar is so big

2023-08-11 Thread Xavier B.
If you run

\starttext

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum.
$\overbar{OA} = 4,2$
\stoptext

Then the overbar has the bar in a very long altitude.
Can you please, see the output attached.

Thanks in advance,
Xavier

PS: I use context version:mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2023.03.10 12:15
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2023.03.10 12:15


c.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] Overbar bug

2022-07-05 Thread Aditya Mahajan via ntg-context
On Mon, 4 Jul 2022, Johann Birnick via ntg-context wrote:

> please have a look at the following example:
> 
> \starttext
> $\overbar{\alpha} \overbar{\beta}$
> \stoptext
> 
> The first one works just fine, whereas the second one looks very odd.
> (At least in MkIV...)
> 
> Any ideas?

I don't understand why you are using $\overbar$ in math mode. Do you want 
$\bar{\alpha}$ and $\bar{\beta}$?

Aditya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Overbar bug

2022-07-04 Thread Johann Birnick via ntg-context
Hey there,

please have a look at the following example:

\starttext
$\overbar{\alpha} \overbar{\beta}$
\stoptext

The first one works just fine, whereas the second one looks very odd.
(At least in MkIV...)

Any ideas?

Best,
Johann
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] overbar in math mode is asymmetric over "F"

2019-12-10 Thread Bernd Donner
Hello,



the following small sample illustrates the problem:



\starttext

\enabletrackers[math.stackers.texts]

\math{\overbar {ABC}} %<-- somewhat okay

\math{\overbar {F}}   %<-- too short on the right side



%manual fixing

\math{\overbar {ABC\mkern\onemuskip}}

\math{\overbar {F\mkern3\onemuskip}}

\stoptext



I wish to have an overbar that extends over the exact boundingbox of the
letter or sequence of letters. How can this be done in context without
manual fixing?



Thnk you,

Bernd Donner

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Behaviour of \overbar in math mode

2017-09-25 Thread Henri
On Tue, 2017-09-26 at 00:47 +0200, Sebastian L. wrote:
> It works for single characters, not over braces and brackets though. But 
> that's what it was important for for me.
> 
> \starttext
> 
>    \overbar{1}
>    
>    $\overbar{1}$
>    
>    $\bar{a}$
>    
>    $\bar{(abcd)}$
>    
>    $\bar{\left(abcd\right)}$

$\overline{\left(abcd\right)}$

>    
> \stoptext
> 
> Thanks though Henri.
> 
> 
> On 9/26/2017 12:33 AM, Henri wrote:
> > 
> > Not a solution, but in math mode you should use $\bar{1}$ which is the 
> > proper math accent.
> > 
> > On Mon, 2017-09-25 at 23:51 +0200, Sebastian L. wrote:
> > > 
> > > Hi fellas,
> > > 
> > > after some recent beta change some of my documents differ in output
> > > compared to past builds, when it comes to \overbar command in math mode.
> > > MWE:
> > > 
> > > \starttext
> > > 
> > >     \overbar{1}
> > > 
> > >     $\overbar{1}$
> > > 
> > > \stoptext
> > > 
> > > In math mode the example looks broken... Did I miss a change; is there a
> > > new method for overbars in math mode?
> > > 
> > > Greetings, Sebastian
> > > 
> > > ___
> > > 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://context.aanhet.net
> > > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Behaviour of \overbar in math mode

2017-09-25 Thread Sebastian L.

I found it:

It seems to be \overline  now.

\starttext $\overline{(abcd)}$ \stoptext

I added a little info to the wiki.

Cheers.


On 9/26/2017 12:47 AM, Sebastian L. wrote:
It works for single characters, not over braces and brackets though. 
But that's what it was important for for me.


\starttext

  \overbar{1}
    $\overbar{1}$
    $\bar{a}$
    $\bar{(abcd)}$
    $\bar{\left(abcd\right)}$
  \stoptext

Thanks though Henri.


On 9/26/2017 12:33 AM, Henri wrote:
Not a solution, but in math mode you should use $\bar{1}$ which is 
the proper math accent.


On Mon, 2017-09-25 at 23:51 +0200, Sebastian L. wrote:

Hi fellas,

after some recent beta change some of my documents differ in output
compared to past builds, when it comes to \overbar command in math 
mode.

MWE:

\starttext

    \overbar{1}
        $\overbar{1}$
    \stoptext

In math mode the example looks broken... Did I miss a change; is 
there a

new method for overbars in math mode?

Greetings, Sebastian

___ 

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Behaviour of \overbar in math mode

2017-09-25 Thread Sebastian L.
It works for single characters, not over braces and brackets though. But 
that's what it was important for for me.


\starttext

  \overbar{1}
  
  $\overbar{1}$
  
  $\bar{a}$
  
  $\bar{(abcd)}$
  
  $\bar{\left(abcd\right)}$
  
\stoptext


Thanks though Henri.


On 9/26/2017 12:33 AM, Henri wrote:

Not a solution, but in math mode you should use $\bar{1}$ which is the proper 
math accent.

On Mon, 2017-09-25 at 23:51 +0200, Sebastian L. wrote:

Hi fellas,

after some recent beta change some of my documents differ in output
compared to past builds, when it comes to \overbar command in math mode.
MWE:

\starttext

    \overbar{1}

    $\overbar{1}$

\stoptext


In math mode the example looks broken... Did I miss a change; is there a
new method for overbars in math mode?

Greetings, Sebastian

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Behaviour of \overbar in math mode

2017-09-25 Thread Henri
Not a solution, but in math mode you should use $\bar{1}$ which is the proper 
math accent.

On Mon, 2017-09-25 at 23:51 +0200, Sebastian L. wrote:
> Hi fellas,
> 
> after some recent beta change some of my documents differ in output 
> compared to past builds, when it comes to \overbar command in math mode. 
> MWE:
> 
> \starttext
> 
>    \overbar{1}
>    
>    $\overbar{1}$
>    
> \stoptext
> 
> In math mode the example looks broken... Did I miss a change; is there a 
> new method for overbars in math mode?
> 
> Greetings, Sebastian
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Behaviour of \overbar in math mode

2017-09-25 Thread Sebastian L.

Hi fellas,

after some recent beta change some of my documents differ in output 
compared to past builds, when it comes to \overbar command in math mode. 
MWE:


\starttext

  \overbar{1}
  
  $\overbar{1}$
  
\stoptext


In math mode the example looks broken... Did I miss a change; is there a 
new method for overbars in math mode?


Greetings, Sebastian

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \overline and \overbar

2017-05-18 Thread Jeong Dal
Dear,

I am sorry to bring up \overline, \overbar, and \bar issue.

Here is a sample file and 
I attached two pdf files which were compiled using two different version of 
ConTeXt.

Under the LuaTeX v. 1.03, ConTeXt  ver: 2017.03.02 22:23 MKIV beta, the output 
overlineB.pdf is OK,
but under  the LuaTeX v. 1.04, ConTeXt  ver: 2017.05.14 19:09 MKIV beta, the 
output overlineA.pdf is strange.

Would you please check what is the problem?

Thank you.

Best regards,

Dalyoung

%%
\starttext
\startitemize[n]
\item Which is true?

\startitemize[n, packed, columns, two][stopper=,left=(, right=)]
\item $\overline{A} = A \cup A^\circ$
\item $\overline{A\cup B} = \overline{A} \cup \overline{B}$
\item If $A \subset B$ then $\overline{B} \subset \overline{A}$
\item $A\cup A'$ is an open set.
\stopitemize

\item Which is true?

\startitemize[n, packed, columns, two][stopper=,left=(, right=)]
\item $\overbar{A} = A \cup A^\circ$
\item If $A \subset B$ then $\overbar{B} \subset \overbar{A}$
\item $\overbar{A\cup B} = \overbar{A} \cup \overbar{B}$
\item $A\cup A'$ is an open set.
\stopitemize

\item Which is true?

\startitemize[n, packed, columns, two][stopper=,left=(, right=)]
\item $\bar{ACC} = A \cup A^\circ$
\item If $A \subset B$ then $\bar{BCDE} \subset \bar{A}$
\item $\bar{ACC\cup B} = \bar{A} \cup \bar{BCC}$
\item $A\cup A'$ is an open set.
\stopitemize

\stopitemize

\stoptext

log files:
%%  -- OverlineA.pdf
mtx-context | run 1: luatex 
--fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="0verline" 
--lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./0verline.tex" 
--c:input="./0verline.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017) 
 system commands enabled.
open source > level 1, order 1, name 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2017.05.14 19:09 MKIV beta  fmt: 2017.5.16  
int: english/english
system  > 

%%  -- OverlineB.pdf
mtx-context | run 1: luatex 
--fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="0verline" 
--lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./0verline.tex" 
--c:input="./0verline.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
"cont-yes.mkiv"
This is LuaTeX, Version 1.0.3 (TeX Live 2017/dev) 
 system commands enabled.
open source > level 1, order 1, name 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2017.03.02 22:23 MKIV beta  fmt: 2017.3.11  
int: english/english



0verline.tex
Description: TeX document


0verlineA.pdf
Description: Adobe PDF document


0verlineB.pdf
Description: Adobe PDF document


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \overline and \overbar

2017-05-10 Thread Jeong Dal
Dear Henri,

Thank you for your reply.
I used to use ‘\overline’ in LaTeX as shown in many texts, but it is time to 
change.

Thanks again.

Best regards,

Dalyoung
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \overline and \overbar

2017-05-10 Thread Henri Menke
Neither is correct in a mathematics context.  Use \bar.

On 05/10/2017 05:54 PM, Jeong Dal wrote:
> Dear all,
> 
> In the following sample, the outputs of \overline and of \overbar are 
> slightly different.
> I used \overline in LaTeX. 
> But  it takes more vertical space that cause the alignment trouble while 
> using \overbar has no problem at all.
> Is it normal behavior? 
> 
> Thank you.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> \starttext
> \startitemize[n]
> \item Which is true?
> 
>   \startitemize[n, packed, columns, two][stopper=,left=(, right=)]
>   \item $\overline{A} = A \cup A^\circ$
>   \item $\overline{A\cup B} = \overline{A} \cup \overline{B}$
>   \item If $A \subset B$ then $\overline{B} \subset \overline{A}$
>   \item $A\cup A'$ is an open set.
>   \stopitemize
>   
> \item Which is true?
> 
>   \startitemize[n, packed, columns, two][stopper=,left=(, right=)]
>   \item $\overbar{A} = A \cup A^\circ$
>   \item If $A \subset B$ then $\overbar{B} \subset \overbar{A}$
>   \item $\overbar{A\cup B} = \overbar{A} \cup \overbar{B}$
>   \item $A\cup A'$ is an open set.
>   \stopitemize
> 
> \stopitemize
> 
> \stoptext
> 
> 
>> 2017. 5. 9. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
>>
>> Send ntg-context mailing list submissions to
>>  ntg-context@ntg.nl
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>>  ntg-context-requ...@ntg.nl
>>
>> You can reach the person managing the list at
>>  ntg-context-ow...@ntg.nl
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: BUG: % is comment in btx fields (Henri Menke)
>>   2. Re: BUG: % is comment in btx fields (Rik Kabel)
>>   3. Re: BUG: % is comment in btx fields (Ulrike Fischer)
>>
>>
>> --
>>
>> Message: 1
>> Date: Tue, 09 May 2017 13:40:55 +1200
>> From: Henri Menke <henrime...@gmail.com>
>> To: ntg-context@ntg.nl
>> Subject: Re: [NTG-context] BUG: % is comment in btx fields
>> Message-ID: <1494294055.19890.36.ca...@gmail.com>
>> Content-Type: text/plain; charset="UTF-8"
>>
>> On Mon, 2017-05-08 at 20:15 -0400, Rik Kabel wrote:
>>> On 2017-05-08 17:44, Henri Menke wrote:
>>>> Dear list,
>>>>
>>>> The percent character in btx field is taken as a comment characters
>>>> which leads to the rest of the field being discarded.  In the MWE
>>>> below, the URL is cut off at the % sign and everything after it is
>>>> lost.
>>>>
>>>> Cheers, Henri
>>>>
>>>>
>>>> ---
>>>>
>>>>
>>>> \startbuffer[references]
>>>> @misc{kraft,
>>>>   author = "Kraft, Nathan",
>>>>   title = "Mr Kraft's Virtual Filing Cabinet",
>>>>   year = "2015",
>>>>   url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+
>>>> Cabi
>>>> net"
>>>> }
>>>> \stopbuffer
>>>>
>>>> \usebtxdataset[references.buffer]
>>>> \usebtxdefinitions[apa]
>>>>
>>>> \starttext
>>>>
>>>> \nocite[kraft]
>>>> \placelistofpublications
>>>>
>>>> \stoptext
>>>  The bibtex entry in this example is provided in a buffer. The buffer
>>> mechanism does not handle characters any differently than other text
>>> in the file, and % in a ConTeXt buffer has to be escaped if it does
>>> not signify a comment.
>>
>> That is simply not true!  Content inside ConTeXt buffers is as verbatim
>> as reading an external file.  Try \typebuffer instead of \getbuffer
>> your example below and observe that the comment sign is perfectly
>> preserved.
>>
>>> If you specify an external (.bib or .bibtex) file to supply the
>>> data,  % does not need to be escaped. So, this part is simple user
>>> error.
>>> (With
>>> \starttext
>>> \startbuffer
>>>   abc%def
>>>
>>>   ghi\%jkl
>>> \stopbuffer
>>> \getbuffer
>>> \stoptext
>>> you do not get %def in the output. Why do yo

[NTG-context] \overline and \overbar

2017-05-09 Thread Jeong Dal
Dear all,

In the following sample, the outputs of \overline and of \overbar are slightly 
different.
I used \overline in LaTeX. 
But  it takes more vertical space that cause the alignment trouble while using 
\overbar has no problem at all.
Is it normal behavior? 

Thank you.

Best regards,

Dalyoung


\starttext
\startitemize[n]
\item Which is true?

\startitemize[n, packed, columns, two][stopper=,left=(, right=)]
\item $\overline{A} = A \cup A^\circ$
\item $\overline{A\cup B} = \overline{A} \cup \overline{B}$
\item If $A \subset B$ then $\overline{B} \subset \overline{A}$
\item $A\cup A'$ is an open set.
\stopitemize

\item Which is true?

\startitemize[n, packed, columns, two][stopper=,left=(, right=)]
\item $\overbar{A} = A \cup A^\circ$
\item If $A \subset B$ then $\overbar{B} \subset \overbar{A}$
\item $\overbar{A\cup B} = \overbar{A} \cup \overbar{B}$
\item $A\cup A'$ is an open set.
\stopitemize

\stopitemize

\stoptext


> 2017. 5. 9. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: BUG: % is comment in btx fields (Henri Menke)
>   2. Re: BUG: % is comment in btx fields (Rik Kabel)
>   3. Re: BUG: % is comment in btx fields (Ulrike Fischer)
> 
> 
> --
> 
> Message: 1
> Date: Tue, 09 May 2017 13:40:55 +1200
> From: Henri Menke <henrime...@gmail.com>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] BUG: % is comment in btx fields
> Message-ID: <1494294055.19890.36.ca...@gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> On Mon, 2017-05-08 at 20:15 -0400, Rik Kabel wrote:
>> On 2017-05-08 17:44, Henri Menke wrote:
>>> Dear list,
>>> 
>>> The percent character in btx field is taken as a comment characters
>>> which leads to the rest of the field being discarded.  In the MWE
>>> below, the URL is cut off at the % sign and everything after it is
>>> lost.
>>> 
>>> Cheers, Henri
>>> 
>>> 
>>> ---
>>> 
>>> 
>>> \startbuffer[references]
>>> @misc{kraft,
>>>   author = "Kraft, Nathan",
>>>   title = "Mr Kraft's Virtual Filing Cabinet",
>>>   year = "2015",
>>>   url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+
>>> Cabi
>>> net"
>>> }
>>> \stopbuffer
>>> 
>>> \usebtxdataset[references.buffer]
>>> \usebtxdefinitions[apa]
>>> 
>>> \starttext
>>> 
>>> \nocite[kraft]
>>> \placelistofpublications
>>> 
>>> \stoptext
>>  The bibtex entry in this example is provided in a buffer. The buffer
>> mechanism does not handle characters any differently than other text
>> in the file, and % in a ConTeXt buffer has to be escaped if it does
>> not signify a comment.
> 
> That is simply not true!  Content inside ConTeXt buffers is as verbatim
> as reading an external file.  Try \typebuffer instead of \getbuffer
> your example below and observe that the comment sign is perfectly
> preserved.
> 
>> If you specify an external (.bib or .bibtex) file to supply the
>> data,  % does not need to be escaped. So, this part is simple user
>> error.
>> (With
>> \starttext
>> \startbuffer
>>   abc%def
>> 
>>   ghi\%jkl
>> \stopbuffer
>> \getbuffer
>> \stoptext
>> you do not get %def in the output. Why do you expect different
>> behavior if the buffer holds a bibtex entry?)
>> 
>> The way hyphenatedurl handles things may well be worthy of
>> improvement.
>> 
>> -- 
>> Rik
>> _
>> __
>> 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/nt
>> g-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : ht

Re: [NTG-context] underbar and overbar

2017-04-04 Thread Henning Hraban Ramm
Bump. Even a simple yes/no answer would be nice. Is this behaviour intended?

Am 2017-03-29 um 17:03 schrieb Henning Hraban Ramm <te...@fiee.net>:

> Ahoi,
> 
> I played with the "bar" commands:
> 
> \underbar{underlined \underbar{more and \underbar{more} 
> \overbar{\underbar{and} \overbar{over}} and back}}
> 
> While stacking bars is nice, overbar and underbar exclude each other, while 
> underbar takes precedence.
> Is this intended? I expected different results.
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] underbar and overbar

2017-03-29 Thread Henning Hraban Ramm
Ahoi,

I played with the "bar" commands:

\underbar{underlined \underbar{more and \underbar{more} \overbar{\underbar{and} 
\overbar{over}} and back}}

While stacking bars is nice, overbar and underbar exclude each other, while 
underbar takes precedence. Is this intended? I expected different results.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Prime and overbar

2014-08-20 Thread Xan
Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for 
$A'$. Is there any way for putting overbar just on top of the expression?

Thanks,
Xan

PS: Please CCme
___
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
___


Re: [NTG-context] Prime and overbar

2014-08-20 Thread Hans Hagen

On 8/20/2014 9:38 AM, Xan wrote:

Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for $A'$. Is 
there any way for putting overbar just on top of the expression?


Can you be more explicit? I get the attached.


Thanks,
Xan

PS: Please CCme
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


test.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Prime and overbar

2014-08-20 Thread Xan
On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:

 Hi,
 
 $\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one 
 for $A'$. Is there any way for putting overbar just on top of the 
 expression?
 
 Thanks,
 Xan
 
 PS: Please CCme

Yes.




x.pdf
Description: Adobe PDF document
\starttext
\overbar{$A'B'$}
\stoptext___
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
___

Re: [NTG-context] Prime and overbar

2014-08-20 Thread Aditya Mahajan

On Wed, 20 Aug 2014, Xan wrote:


On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:


Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for $A'$. Is 
there any way for putting overbar just on top of the expression?

Thanks,
Xan



Yes.


That is a very old version of ConTeXt that you are using: ConTeXt - 
2013.05.28 00:36. Have you tried with a more recent version?


Aditya
___
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
___


Re: [NTG-context] Prime and overbar

2014-08-20 Thread Aditya Mahajan

On Wed, 20 Aug 2014, Aditya Mahajan wrote:


On Wed, 20 Aug 2014, Xan wrote:


On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:


Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one 
for $A'$. Is there any way for putting overbar just on top of the 
expression?


Thanks,
Xan



Yes.


That is a very old version of ConTeXt that you are using: ConTeXt - 
2013.05.28 00:36. Have you tried with a more recent version?


(Untested): With the older version, you can try \overline instead of 
\overbar.


Aditya
___
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
___


[NTG-context] Adjusting overbar for a special font

2014-04-01 Thread H. Özoguz

Hello there,

I tried to overbar an arabic word, and noticed, that the bar is too low 
and overlaps the letters. While producing a minexample, I noticed that 
this might be a issue of my font, because this does not happen with 
Arial. See this minexample:


\definefont[arial][name:arial*arabic at 12pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 12pt]

\starttext
\startalign[r2l]
\arial
كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
\arabicuth
كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
\stopalign
\stoptext

and compare the compiled pdf in attachment.

You can download the used font-file UthmanicHafs1Ver09.ttf here:

http://fonts.qurancomplex.gov.sa/download/UthmanicHafs1Ver09Font.zip

We have discussed this font here month ago, hans commented: yes, but 
calling this a normal font is somewhat over-the-top


So it is quite special - but still best available font (free or 
commercial) for typesetting the holy quran.


But setting the bar a bit higher should be easily possible, independent 
of these font-lacks, right? The solution should be independent from the 
chosen font-size.


Thanks!
Huseyin


overbar.pdf
Description: application/download
___
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
___

Re: [NTG-context] Adjusting overbar for a special font

2014-04-01 Thread Wolfgang Schuster

Am 01.04.2014 um 11:37 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hello there,
 
 I tried to overbar an arabic word, and noticed, that the bar is too low and 
 overlaps the letters. While producing a minexample, I noticed that this might 
 be a issue of my font, because this does not happen with Arial. See this 
 minexample:
 
 \definefont[arial][name:arial*arabic at 12pt]
 \definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 12pt]
 
 \starttext
 \startalign[r2l]
 \arial
 كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
 \arabicuth
 كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
 \stopalign
 \stoptext
 
 and compare the compiled pdf in attachment.
 
 You can download the used font-file UthmanicHafs1Ver09.ttf here:
 
 http://fonts.qurancomplex.gov.sa/download/UthmanicHafs1Ver09Font.zip
 
 We have discussed this font here month ago, hans commented: yes, but calling 
 this a normal font is somewhat over-the-top
 
 So it is quite special - but still best available font (free or commercial) 
 for typesetting the holy quran.
 
 But setting the bar a bit higher should be easily possible, independent of 
 these font-lacks, right? The solution should be independent from the chosen 
 font-size.

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang
___
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
___

Re: [NTG-context] Adjusting overbar for a special font

2014-04-01 Thread H. Özoguz

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang



Thanks Wolfgang, but this solution is not independent from the size of 
the font, and so had to be adjust for each size again (bad for my 
project, where the font-size changes on nearly every page).


Which unit has this offset?
\setupbars[overbar][offset=3]

I tried the font-independent unit em
\setupbars[overbar][offset=3em]

but that does not work.

Huseyin
___
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
___


Re: [NTG-context] Adjusting overbar for a special font

2014-04-01 Thread Hans Hagen

On 4/1/2014 12:12 PM, H. Özoguz wrote:

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang



Thanks Wolfgang, but this solution is not independent from the size of
the font, and so had to be adjust for each size again (bad for my
project, where the font-size changes on nearly every page).

Which unit has this offset?
\setupbars[overbar][offset=3]

I tried the font-independent unit em
\setupbars[overbar][offset=3em]

but that does not work.


as 'ex' is bad font that font, you can try 'em' :

\setupbars[overbar][offset=1.2,unit=em,rulethickness=.05]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] bug with overbar

2013-06-11 Thread Steffen Wolfrum

Am 10.06.2013 um 17:43 schrieb luigi scarso:

 
 
 
 On Sun, Jun 9, 2013 at 4:33 PM, luigi scarso luigi.sca...@gmail.com wrote:
 
 
 
 On Sun, Jun 9, 2013 at 4:27 PM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 ... no. it should look this (see below): $\overline{U_A}$
 
 it should be ok now with the latest standalone

well, the minimal example works ok (see below).
but the real piece of code doesn not (see below, too).

any idea why??

thanks, steffen
---



\usemodule[mathml] \starttext


\startbuffer
math xmlns=http://www.w3.org/1998/Math/MathML;
mrow
   mover accent=true
   mrow
   msub
   miU/mi
   miA/mi
   /msub
   /mrow
   moOverBar;/mo
   /mover
/mrow
/math
\stopbuffer{\processxmlbuffer}





\startbuffer mml:math xmlns:mml=http://www.w3.org/1998/Math/MathML;
msubsup xmlns=http://www.w3.org/1998/Math/MathML;
mrow
miU/mi
/mrow
mrow
miP/mi
/mrow
mrow
miF/mi
miV/mi
mim/mi
miM/mi
/mrow
/msubsup
mo xmlns=http://www.w3.org/1998/Math/MathML;=/mo
mfrac xmlns=http://www.w3.org/1998/Math/MathML;
mrow
mn1/mn
/mrow
mrow
mn2/mn
mik/mi
/mrow
/mfrac
mfenced xmlns=http://www.w3.org/1998/Math/MathML; open=[ close=] 
separators=|
mrow
mfenced separators=|
mrow
mii/mi
mo+/mo
mif/mi
/mrow
/mfenced
mfenced separators=|
mrow
mn2/mn
mip/mi
mo+/mo
mii/mi
mo+/mo
mif/mi
/mrow
/mfenced
mo-/mo
msup
mrow
mif/mi
/mrow
mrow
mn2/mn
/mrow
/msup
mik/mi
mir/mi
msup
mrow
miσ/mi
/mrow
mrow
mn2/mn
/mrow
/msup
/mrow
/mfenced
mo xmlns=http://www.w3.org/1998/Math/MathML;-/mo
mi xmlns=http://www.w3.org/1998/Math/MathML;c/mi
mo xmlns=http://www.w3.org/1998/Math/MathML;-/mo
mrow
   mover accent=true
   mrow
   msub
   miU/mi
   miA/mi
   /msub
   /mrow
   moOverBar;/mo
   /mover
/mrow
/mml:math\stopbuffer{\processxmlbuffer}



\stoptext


___
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
___

[NTG-context] Fwd: bug with overbar

2013-06-11 Thread luigi scarso
On Tue, Jun 11, 2013 at 6:31 PM, Steffen Wolfrum wolf...@st.estfiles.dewrote:


 Am 10.06.2013 um 17:43 schrieb luigi scarso:

 
 
 
  On Sun, Jun 9, 2013 at 4:33 PM, luigi scarso luigi.sca...@gmail.com
 wrote:
 
 
 
  On Sun, Jun 9, 2013 at 4:27 PM, Steffen Wolfrum cont...@st.estfiles.de
 wrote:
  ... no. it should look this (see below): $\overline{U_A}$
 
  it should be ok now with the latest standalone

 well, the minimal example works ok (see below).
 but the real piece of code doesn not (see below, too).

 any idea why??



 thanks, steffen
 ---



 \usemodule[mathml] \starttext


 \startbuffer
 math xmlns=http://www.w3.org/1998/Math/MathML;
 mrow
 mover accent=true
 mrow
 msub
 miU/mi
 miA/mi
 /msub
 /mrow
 moOverBar;/mo
 /mover
 /mrow
 /math
 \stopbuffer{\processxmlbuffer}

 This is ok: all the elements have MathML namespace

Now,  in the next example  you declare the mml name space
and the you use it  only for
mml:mathand /mml:math
--- all the other nodes that are not in the mml namespace are skipped.
But with
msubsup xmlns=http://www.w3.org/1998/Math/MathML;
you still declare the MathML namespace, so they are ok
and then  with
mrow
mover accent=true
mrow
msub
miU/mi
miA/mi
/msub
/mrow
moOverBar;/mo
/mover
/mrow
you are again *outside* the MathML namespace so they are your private markup
and context doesn't render as MathML --- after all they are your private
markup.





-- 
luigi
___
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
___

Re: [NTG-context] bug with overbar

2013-06-10 Thread luigi scarso
On Sun, Jun 9, 2013 at 4:33 PM, luigi scarso luigi.sca...@gmail.com wrote:




 On Sun, Jun 9, 2013 at 4:27 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:

 ... no. it should look this (see below): $\overline{U_A}$

  it should be ok now with the latest standalone


-- 
luigi
___
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
___

[NTG-context] bug with overbar

2013-06-09 Thread Steffen Wolfrum
Hi Hans,

this seems to be a bug: the overbar should not be set separately again over A



\usemodule[mathml] \starttext


\startbuffer 
math xmlns=http://www.w3.org/1998/Math/MathML;
mrow
mover accent=true
mrow
msub
miU/mi
miA/mi
/msub
/mrow
moOverBar;/mo
/mover
/mrow
/math
\stopbuffer{\processxmlbuffer} 

\stoptext



Is there a fix?

Steffen
___
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
___


Re: [NTG-context] bug with overbar

2013-06-09 Thread luigi scarso
On Sun, Jun 9, 2013 at 3:38 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:

 Hi Hans,

 this seems to be a bug: the overbar should not be set separately again
 over A



 \usemodule[mathml] \starttext


 \startbuffer
 math xmlns=http://www.w3.org/1998/Math/MathML;
 mrow
 mover accent=true
 mrow
 msub
 miU/mi
 miA/mi
 /msub
 /mrow
 moOverBar;/mo
 /mover
 /mrow
 /math
 \stopbuffer{\processxmlbuffer}

 \stoptext


 not a fix but should overbar be only over U ?

\usemodule[mathml] \starttext


\startbuffer
math xmlns=http://www.w3.org/1998/Math/MathML;
mrow
mover accent=true
mrow
msub
miU/mi
miA/mi
/msub
/mrow
moOverBar;/mo
/mover
/mrow
/math
\stopbuffer{\processxmlbuffer}

\startbuffer
math xmlns=http://www.w3.org/1998/Math/MathML;
mrow
msub
mover accent=true
mrow
miU/mi

/mrow
moOverBar;/mo
/mover
miA/mi
/msub
/mrow
/math
\stopbuffer{\processxmlbuffer}

\stoptext




 Is there a fix?

 Steffen

 ___
 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

 ___




-- 
luigi
___
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
___

Re: [NTG-context] bug with overbar

2013-06-09 Thread Steffen Wolfrum
... no. it should look this (see below): $\overline{U_A}$

but coded in MathML.

st.




Bildschirmfoto 2013-06-09 um 16.25.37.pdf
Description: Adobe PDF document


___
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
___

[NTG-context] \overbar setups

2012-12-26 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,
First: Here's wishing you all the most happy holidays and an early happy  
new years.


=
ConTeXt  ver: 2012.08.14 10:44 MKIV


\starttext

\overbar{test}

\setupbars[color=green,offset=7]
\overbar{test}

\setupbars[color=red,dy=7]
\overbar{test}

\stoptext
=

offset and dy don't seem to do anything. Also, I don't know the difference  
between the two params... Please advise.


Best wishes to all!
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___


Re: [NTG-context] \overbar setups

2012-12-26 Thread Wolfgang Schuster

Am 27.12.2012 um 02:17 schrieb Idris Samawi Hamid ادريس   سماوي حامد 
isha...@colostate.edu:

 Dear gang,
 First: Here's wishing you all the most happy holidays and an early happy new 
 years.
 
 =
 ConTeXt  ver: 2012.08.14 10:44 MKIV
 
 
 \starttext
 
 \overbar{test}
 
 \setupbars[color=green,offset=7]
 \overbar{test}
 
 \setupbars[color=red,dy=7]
 \overbar{test}
 
 \stoptext
 =
 
 offset and dy don't seem to do anything. Also, I don't know the difference 
 between the two params... Please advise.


1. Specify which command you want to change, e.g. “\overbar”.

2. The offset” key controls the distance between the text and the first rule 
while “dy” controls the distance between multiple rules.

\starttext

\overbar{left \overbar{middle} right}

\setupbars[overbar][offset=3]\blank[2*line]

\overbar{left \overbar{middle} right}

\setupbars[overbar][dy=3]\blank[2*line]

\overbar{left \overbar{middle} right}

\stoptext

Wolfgang
___
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
___

Re: [NTG-context] \overbar setups

2012-12-26 Thread Idris Samawi Hamid ادريس سماوي حامد
Thanks a million, Wolfgang, for your always invaluable and timely  
explanations!


Best wishes
Idris

On Wed, 26 Dec 2012 20:58:17 -0700, Wolfgang Schuster  
wolfgang.schus...@gmail.com wrote:





Am 27.12.2012 um 02:17 schrieb Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu:



Dear gang,
First: Here's wishing you all the most happy holidays and an early  
happy new years.


=
ConTeXt  ver: 2012.08.14 10:44 MKIV


\starttext

\overbar{test}

\setupbars[color=green,offset=7]
\overbar{test}

\setupbars[color=red,dy=7]
\overbar{test}

\stoptext
=

offset and dy don't seem to do anything. Also, I don't know the  
difference between the two params... Please advise.



1. Specify which command you want to change, e.g. “\overbar”.

2. The offset” key controls the distance between the text and the first  
rule while “dy” controls the distance between multiple rules.


\starttext

\overbar{left \overbar{middle} right}

\setupbars[overbar][offset=3]\blank[2*line]

\overbar{left \overbar{middle} right}

\setupbars[overbar][dy=3]\blank[2*line]

\overbar{left \overbar{middle} right}

\stoptext

Wolfgang



--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-07 Thread Paul Menzel
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


test.pdf
Description: Adobe PDF document


signature.asc
Description: This is a digitally signed message part
___
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
___


Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-07 Thread Aditya Mahajan

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___
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
___


[NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Paul Menzel
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
Description: Adobe PDF document
\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


signature.asc
Description: This is a digitally signed message part
___
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
___


Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Otared Kavian
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.pdftest.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
___


[NTG-context] underbar/overbar to long with one character in mkiv

2010-07-19 Thread Stefan Müller

Hi,

there was an earlier issue with \underbar{b}
  http://archive.contextgarden.net/message/20091109.094902.baf77ffc.en.html
which seems somewhat related to my problem. When providing only one 
character as argument to \underbar or \overbar and a following space (or 
paragraph ending) the line is also under/over that space. Is this 
intended? Example:


  \starttext
\underbar{b} \overbar{b} \underbar{b}

$\underbar{b} = \overbar{b} = \underbar{b}$
  \stoptext

A fix for this would be to use \underbars{b} or \overbars{b} instead, btw.

Best wishes,
Stefan
___
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
___


[NTG-context] \overbar in math mode

2009-08-16 Thread Xan

Hi,

Just a question: what's the equivalent of \overbar in math mode. 
\underbar works in math mode, but \overbar does not.


Thanks a lot,
Xan.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \overbar in math mode

2009-08-16 Thread Aditya Mahajan

On Sun, 16 Aug 2009, Xan wrote:


Hi,

Just a question: what's the equivalent of \overbar in math mode. \underbar 
works in math mode, but \overbar does not.


\bar or \overline

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] underbar and overbar

2005-12-20 Thread Renaud AUBIN





Hi all,

I don't understand differences between \underbar and \overbar

Someone can explain ?





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context