[NTG-context] Re: Why overbar is so big
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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] update
Hi Hans, Thank you very much for the new update. Everything seem to work like a charm. In particular I played with the \underbrace and \overbrace when adding something under the \underbrace, or above the \overbrace, like in \startformula \overbrace{1+x^2+a}^{= -1} + \underbrace{ax^2 + bx + c}_{=2} = 1 \stopformula and it works great ! Best regards : Otared > On 23 Feb 2023, at 22:07, Hans Hagen via ntg-context > wrote: > > Hi, > > I uploaded a new version. We further improved Antykwa support, > > \switchtobodyfont[antykwa] > > \startTEXpage[offset=1dk] >\im{ >f' = f'' = f''' = f = > a + b + \ldots + c + >\overbar{x} + \overbar{S} + \bar{x} + \widebar{x} >} > >\im{ >\fenced[doublebar]{x} = >\fenced[doublebar][size=1]{x_1} = >\fenced[doublebar][size=2]{x_2} = >\fenced[doublebar][size=3]{x_3} = >\fenced[doublebar][size=4]{x_4} = >\fenced[doublebar]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\fenced[bar]{x} = >\fenced[bar][size=1]{x_1} = >\fenced[bar][size=2]{x_2} = >\fenced[bar][size=3]{x_3} = >\fenced[bar][size=4]{x_4} = >\fenced[bar]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\fenced[brace]{x} = >\fenced[brace][size=1]{x_1} = >\fenced[brace][size=2]{x_2} = >\fenced[brace][size=3]{x_3} = >\fenced[brace][size=4]{x_4} = >\fenced[brace]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\root[4]{1+x^2+a} + >\frac{1}{1+x^2+a} + >\overparent{1+x^2+a} + >\overbrace{1+x^2+a} + >\overparent{x} + >\overbrace{x} + >\overbrace{i} >} > > \stopTEXpage > > > This time with fancy radical bars, fraction bars, vertical bars, over and > underbars etc. > > 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 > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ 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] update
Hi, I uploaded a new version. We further improved Antykwa support, \switchtobodyfont[antykwa] \startTEXpage[offset=1dk] \im{ f' = f'' = f''' = f = a + b + \ldots + c + \overbar{x} + \overbar{S} + \bar{x} + \widebar{x} } \im{ \fenced[doublebar]{x} = \fenced[doublebar][size=1]{x_1} = \fenced[doublebar][size=2]{x_2} = \fenced[doublebar][size=3]{x_3} = \fenced[doublebar][size=4]{x_4} = \fenced[doublebar]{\blackrule[width=1cm,height=1cm]} } \im{ \fenced[bar]{x} = \fenced[bar][size=1]{x_1} = \fenced[bar][size=2]{x_2} = \fenced[bar][size=3]{x_3} = \fenced[bar][size=4]{x_4} = \fenced[bar]{\blackrule[width=1cm,height=1cm]} } \im{ \fenced[brace]{x} = \fenced[brace][size=1]{x_1} = \fenced[brace][size=2]{x_2} = \fenced[brace][size=3]{x_3} = \fenced[brace][size=4]{x_4} = \fenced[brace]{\blackrule[width=1cm,height=1cm]} } \im{ \root[4]{1+x^2+a} + \frac{1}{1+x^2+a} + \overparent{1+x^2+a} + \overbrace{1+x^2+a} + \overparent{x} + \overbrace{x} + \overbrace{i} } \stopTEXpage This time with fancy radical bars, fraction bars, vertical bars, over and underbars etc. 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] barring changes
Please consider the attached example – some of the “barring” macros are defunct already for a while, some more within a TABLE: \underbar works, but not in TABLE \underbarsworks \underdot doesn’t work \underdotsdoesn’t work \underdashdoesn’t work \underdashes doesn’t work \underrandom doesn’t work \underrandoms doesn’t work \overbar works, but not in TABLE \overbars works \overstrike works, but not in TABLE \overstrikes works \understrike works, but not in TABLE \understrikes works The nested example \overbar{Über} \underbar{Unterstrich \underbar{steigt \overbar{auf} den \underdot{Unterberg}}}. works only once, afterwards all the underbars are missing. Hraban bartest.tex Description: TeX 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
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
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 ___
Re: [NTG-context] Suggestions for more math classes?
On 1/27/2022 9:36 AM, Mikael Sundqvist via ntg-context wrote: Dear all, While discussing spacing in math with Hans, we have come to the conclusion that to have better control and cleaner code there might be a good idea to have more math classes than the usual ones in TeX (ord, op, bin, rel, open, close, punct, inner (and some that we need not to think about)). So far, Hans has implemented frac and rad for fractions and radicals. The fractions has been a funny construction, being put inside empty delimiters, and so surrounded by the \nulldelimiterspace (which has been set to 1.2pt, independent of font size). Now we have better control of the spacing around fractions. Hans has opened up (even in the code) for the addition of more classes. The overall aim is to have a more coherent and logical way of typing math, without manual adding of (arbitrary) spaces every now and then. For example, we have always written \int f(x)\, dx to have a thin space between the closing parenthesis and the d in integrals. There will (most likely) be a differential class. Since the d might occur in other places in a formula with integrals, one cannot just simply give the letter d the differential class, and we are currently discussing the correct way for the user to type it. If you have suggestions, please let us hear! Some further suggestions by Hans are (see below for two more) 13 imaginary 14 differential 15 exponential 16 function Q1: Do you have any further suggestions on new classes (or comments on these)? It might be good to think about situations where you have felt that you need to insert manual spaces such as \, or \! to obtain a better result. I give one contribution: I asked a colleague to look in his TeX files for manual spaces, and he came up with several \, (usually before the d in integrals) but also with \!. This \! occurred mostly in fencing situations to have the exponent come a bit closer to the closing parenthesis. \left( \frac{x}{2} \right)^{\! k+2n} I have seen this in many places before, so no originality is claimed. Two more classes that we thought of are under and over. Say that we have a\overbar{bc}d. Should the spacing between a and the \overbar{bc} and the spacing between \overbar{bc} and d always be tight? If so, these might just be ord, and no new class needed (although one could argue for adding the classes now, set them up as ord, and thus being able to configure them according to taste/need). Q2: Do you have any real examples of constructions with \overbar, \underbar, \overbrace, ... or if you have any strong opinion, please raise your voice! Here is a teaser: \starttext % in context we put digits in their own class, the next is the default: \letmathspacing \mathdigitcode \mathordinarycode \mathordinarycode \mathordinarycode \mathordinarycode % but we can adapt the inter digit spacing (\mathdigitcode == 20 in context, \mathordinarycode is one fo the traditional class codes): \setmathspacing \mathdigitcode \mathdigitcode \allmathstyles = 2mu % and also change it when needed \startTEXpage[offset=10pt] $ x = 1234 = z $\par \begingroup \setmathspacing \mathdigitcode \mathdigitcode \allmathstyles = 4mu $ x = 1234 = z $\par \endgroup $ x = 1234 = z $\par \stopTEXpage \stoptext The result is attached. So maybe Mikaels explanation above and this example will trigger demand. One of the possibilities is that users define their own classes and put characters in it. (this can be domain specific and domains is something that has been on the todo for quite a while.) For that reason we might bump the current number of classes (we have 32 classes compared to the 8 that regular tex has) to 64 (which is possible when we bring down the number of families to 64 (currently 128 compared to 256 in luatex and 16 in regular tex) which is still plenty and way more than we ever need (so if needed we can borrow bits for the math unicode range which is now limited to 0xF; it was already limited anyway). This move also makes it possible to remove some other hacks (with the usual 'a pity to throw nice code away syndrome' side effect) and can have some 'initialization of old school ascii' side effects (neglectable because we can set it up via the emacro package). For the record: the \Umathspacing primitives have been dropped but can be emulated easily (in the end it saves hundreds of primitives). 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 - math.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] Suggestions for more math classes?
Dear all, While discussing spacing in math with Hans, we have come to the conclusion that to have better control and cleaner code there might be a good idea to have more math classes than the usual ones in TeX (ord, op, bin, rel, open, close, punct, inner (and some that we need not to think about)). So far, Hans has implemented frac and rad for fractions and radicals. The fractions has been a funny construction, being put inside empty delimiters, and so surrounded by the \nulldelimiterspace (which has been set to 1.2pt, independent of font size). Now we have better control of the spacing around fractions. Hans has opened up (even in the code) for the addition of more classes. The overall aim is to have a more coherent and logical way of typing math, without manual adding of (arbitrary) spaces every now and then. For example, we have always written \int f(x)\, dx to have a thin space between the closing parenthesis and the d in integrals. There will (most likely) be a differential class. Since the d might occur in other places in a formula with integrals, one cannot just simply give the letter d the differential class, and we are currently discussing the correct way for the user to type it. If you have suggestions, please let us hear! Some further suggestions by Hans are (see below for two more) 13 imaginary 14 differential 15 exponential 16 function Q1: Do you have any further suggestions on new classes (or comments on these)? It might be good to think about situations where you have felt that you need to insert manual spaces such as \, or \! to obtain a better result. I give one contribution: I asked a colleague to look in his TeX files for manual spaces, and he came up with several \, (usually before the d in integrals) but also with \!. This \! occurred mostly in fencing situations to have the exponent come a bit closer to the closing parenthesis. \left( \frac{x}{2} \right)^{\! k+2n} I have seen this in many places before, so no originality is claimed. Two more classes that we thought of are under and over. Say that we have a\overbar{bc}d. Should the spacing between a and the \overbar{bc} and the spacing between \overbar{bc} and d always be tight? If so, these might just be ord, and no new class needed (although one could argue for adding the classes now, set them up as ord, and thus being able to configure them according to taste/need). Q2: Do you have any real examples of constructions with \overbar, \underbar, \overbrace, ... or if you have any strong opinion, please raise your voice! /Mikael ___ 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] double underbars
Am 30.11.21 um 16:17 schrieb Hans Hagen via ntg-context: Another question: what do you mean with a dy-shift version? Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to make sure that they do not overlap. Text backgrounds do not have that option at all. i've added that so one can nest the mp driven ones but still within the same category ... i'll look into a mix (more complex management wise so typically a rainy weekend thing; i know how to do it but ...) If I use \overbar within \underbar, the same dy is used, i.e. in the example, the first \overbar is in the right location, while the second is too high: \starttext \overbar{Über} \underbar{Unterstrich \underbar{steigt \overbar{auf} den \underbar{Unterberg}}}. \stoptext Hraban ___ 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] add more blank space when using \starteffect[hidden]
On 3/12/2021 10:08 PM, Jeong Dal wrote: Hi, Sometimes, I need to hide the solution of a problem. So I use \doifmode{} and \starteffect[hidden] as in the following sample file. Since I want to set more blank space if it is hidden, I add \blank[5cm] when it is in the \enablemode[hideSolution]. It works well except the figures and bars are not hidden. Only texts, even in the mp part, are hidden. It is OK for me. However, it would be much better to set the height of blank space depends on the height of hidden texts. Is there a way to set the variable height using “overlay” stuff instead of \blank[5cm]? Thank for reading. Best regards, Dalyoung \startbuffer[circles] draw fullcircle scaled 1cm; draw fullcircle scaled 1cm shifted (2cm,0); dotlabel.top(“O”,origin); \stopbuffer \def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}} \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[5cm]}} %\enablemode[hideSolution] \starttext \framed[]{This is what I want:} \framedtext[]{ \StartHide \samplefile{knuth} Overbar is not \overbar{hidden}. {\processMPbuffer[circles]} \StopHide } \stoptext In your case it's easier than you mightt think: \framedtext[empty=yes] - 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 / 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] add more blank space when using \starteffect[hidden]
Hi, Sometimes, I need to hide the solution of a problem. So I use \doifmode{} and \starteffect[hidden] as in the following sample file. Since I want to set more blank space if it is hidden, I add \blank[5cm] when it is in the \enablemode[hideSolution]. It works well except the figures and bars are not hidden. Only texts, even in the mp part, are hidden. It is OK for me. However, it would be much better to set the height of blank space depends on the height of hidden texts. Is there a way to set the variable height using “overlay” stuff instead of \blank[5cm]? Thank for reading. Best regards, Dalyoung \startbuffer[circles] draw fullcircle scaled 1cm; draw fullcircle scaled 1cm shifted (2cm,0); dotlabel.top(“O”,origin); \stopbuffer \def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}} \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[5cm]}} %\enablemode[hideSolution] \starttext \framed[]{This is what I want:} \framedtext[]{ \StartHide \samplefile{knuth} Overbar is not \overbar{hidden}. {\processMPbuffer[circles]} \StopHide } \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \underbar and co. not working properly in MkIV
On 3/10/2021 2:06 PM, Jairo A. del Rio wrote: Hi, list. The following works well in LMTX, but it applies underlining to the next dash sign when compiled with MkIV: \starttext %\overbar{foo}-bar \underbar{foo}-bar \stoptext I've found a workaround for it, but I want to know about the reason for such a strange behavior. Thanks beforehand. i'll look into it - 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 / 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 co. not working properly in MkIV
Hi, list. The following works well in LMTX, but it applies underlining to the next dash sign when compiled with MkIV: \starttext %\overbar{foo}-bar \underbar{foo}-bar \stoptext I've found a workaround for it, but I want to know about the reason for such a strange behavior. Thanks beforehand. Best regards, Jairo ___ 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] MathML (mkiv) accent shifted to the left
Hi all. I am reasonably sure that in mkii this overbar accent was placed correctly, but in mkiv it is shifted to the left. Any ideas on how to fix it? MWE: \usemodule[mathml] \starttext This \xmlprocessdata{}{p}{} isn't right. \stoptext Many thanks, Duncan ___ 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"
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 ___
[NTG-context] mathring circle above a letter
Hi all, The \mathring command puts a small circle above a letter, but in some fonts (namely Lucida OT) that circle is too small. So thanks to a hint by Hans and Wolfgang some years ago I use the following definition which works fine when used alone. But in maths, one needs sometimes to use it with the command \overline (or \overbar) and the result is not nice. Can someone tell me please whether it is possible to modify the \mathring command so that th ecircle is a little bit larger, or the one I define below as \interior in order to have a correct result (more clearly said: I would like the small circle to be put above the bar which is itself above the A in $\interior{\overline{A}}$). Thanks for any help: OK %%% begin mathring-interior.tex \setuppapersize[A5][A5] \definemathstackers[MySymbol] [voffset=-1.2\mathexheight, hoffset=\zeropoint, mathclass=ord, topoffset=.3\mathemwidth, % poor man's italic correction middlecommand=\mathematics] %\define[1]\interior{\mathover[MySymbol]{"2218}{#1}} %2218 U+00B0 \define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0 \starttext The interior of a set $A$ is denoted by $\interior{A}$. The interior of a set $A$ is denoted by $\mathring{A}$. The closure of the interior is $\overline{\interior{A}}$. Beware $\overline{\interior{A}} \neq \interior{\overline{A}}$. (This is not nice\dots). Beware $\overline{\mathring{A}} \neq \mathring{\overline{A}}$ \stoptext %%% end mathring-interior.tex mathring-interior.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 ___
[NTG-context] Macro to write a vector with Metafun (again)
Hello Hans,The macro to draw a vector does not work even with the latest version of context standalone. Thank you Fabrice \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) withcolor OverlayLineColor ; setbounds currentpicture to boundingbox currentpicture bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; ) enddef ; vardef math_stacker_leftarrow_shape = math_stacker_arrow_shape enddef ; vardef math_stacker_rightarrow_shape = math_stacker_arrow_shape rotated 180 enddef ; \stopMPextensions \startuniqueMPgraphic{math:stacker:\number"2190} math_stacker_draw(math_stacker_leftarrow_shape) ; \stopuniqueMPgraphic \startuniqueMPgraphic{math:stacker:\number"2192} math_stacker_draw(math_stacker_rightarrow_shape) ; \stopuniqueMPgraphic % so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad \doublebracket{a+b+c+d}$ \blank $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad \doubleparent {a+b+c+d}$ \blank $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad \doublebrace {a+b+c+d}$ \blank $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad \doublebar{a+b+c+d}$ \blank $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: Macro to write a vector (Metafun) is broken
Hi Hans, No, I did not check this file but only update context Standalone. I guess this is not enough since the compilation does not work. Thank you Fabrice Running `ConTeXt Full' on `ntg80' with ``context --purgeall --nonstop ntg80.tex'' resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --interaction="nonstopmode" --jobname="ntg80" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg80.tex" --c:input="./ntg80.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode --c:purgeall "cont-yes.mkiv" This is LuaTeX, Version 1.07.0 (TeX Live 2018) system commands enabled. resolvers > trees > analyzing 'home:texmf' open source > level 1, order 1, name '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2018.03.16 22:20 MKIV beta fmt: 2018.3.20 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' close source> level 2, order 2, name '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'ntg80', input './ntg80', result 'ntg80' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/fab/ntg80.tex' metapost> library 'mat' is loaded open source > level 3, order 4, name '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/meta-imp-mat.mkiv' close source> level 3, order 4, name '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/meta-imp-mat.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun' as '/home/fab/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost> initializing number mode 'scaled' tex error > mp error on line 61 in file /home/fab/ntg80.tex: >> math_stacker_draw ! Isolated expression. ( <*> math_stacker_draw( math_stacker_leftarrow_shape) ; ; I couldn't find an `=' or `:=' after the expression that is shown above this error message, so I guess I'll just ignore it and carry on. ! Extra tokens will be flushed. ( <*> math_stacker_draw( math_stacker_leftarrow_shape) ; ; I've just read as much of that statement as I could fathom, so a semicolon should have been next. It's very puzzling... but I'll try to get myself back together, by ignoring everything up to the next `;'. Please insert a semicolon now in front of anything that you don't want me to delete. (See Chapter 27 of The METAFONTbook for an example.) [1] 51 52 $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad 53 \doublebracket{a+b+c+d}$ \blank 54 $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad 55 \doubleparent {a+b+c+d}$ \blank 56 $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad 57 \doublebrace {a+b+c+d}$ \blank 58 $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad 59 \doublebar{a+b+c+d}$ \blank 60 61 >> $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank 62 $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank 63 64 \stoptext metapost> error: unknown, no error, terminal or log messages tex error > mp error on line 3 in file /home/fab/ntg80.tex: >> math_stacker_draw ! Isolated expression. ( <*> math_stacker_draw( math_stacker_leftarrow_shape) ; ; I couldn't find an `=' or `:=' after the expression that is shown above this error message, so I guess I'll just ignore it and carry on. ! Extra tokens will be flushed. ( <*> math_stacker_draw( math_stacker_leftarrow_shape) ; ; I've just read as much of that statement as I could fathom, so a semicolon should have been next. It's very puzzling... but I'll try to get myself back together, by ignoring everything up to the next `;'. Please insert a semicolon now in front of anything that you don't want me to delete. (See Chapter 27 of The METAFONTbook for an example.) [1] 1 2 \useMPlibrary[mat] 3 >> 4 % will be in meta-imp-mat.mkiv 5 6 \startMPextensions 7 vardef math_stacker_arrow_shape = 8 image ( 9 drawarrow 10 (OverlayWidth,OverlayOffset) -- (0,Over
Re: [NTG-context] Fwd: Macro to write a vector (Metafun) is broken
-- Forwarded message -- From: Fabrice Couvreur <fabrice1.couvr...@gmail.com> Date: Tue, Mar 20, 2018 at 4:29 PM Subject: [NTG-context] Macro to write a vector (Metafun) is broken To: mailing list for ConTeXt users <ntg-context@ntg.nl> Hello Hans, The macro you wrote to draw the arrows of the vectors does not seem to work anymore. Thank you Fabrice Did you check ou tthe latest meta-imp file? Alan and I added more and also changed the interface a little which might have consequences. \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) withcolor OverlayLineColor ; setbounds currentpicture to boundingbox currentpicture bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; ) enddef ; vardef math_stacker_leftarrow_shape = math_stacker_arrow_shape enddef ; vardef math_stacker_rightarrow_shape = math_stacker_arrow_shape rotated 180 enddef ; \stopMPextensions \startuniqueMPgraphic{math:stacker:\number"2190} math_stacker_draw(math_stacker_leftarrow_shape) ; \stopuniqueMPgraphic \startuniqueMPgraphic{math:stacker:\number"2192} math_stacker_draw(math_stacker_rightarrow_shape) ; \stopuniqueMPgraphic % so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad \doublebracket{a+b+c+d}$ \blank $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad \doubleparent {a+b+c+d}$ \blank $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad \doublebrace {a+b+c+d}$ \blank $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad \doublebar{a+b+c+d}$ \blank $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ -- - 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 / 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] Macro to write a vector (Metafun) is broken
Hello Hans, The macro you wrote to draw the arrows of the vectors does not seem to work anymore. Thank you Fabrice \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) withcolor OverlayLineColor ; setbounds currentpicture to boundingbox currentpicture bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; ) enddef ; vardef math_stacker_leftarrow_shape = math_stacker_arrow_shape enddef ; vardef math_stacker_rightarrow_shape = math_stacker_arrow_shape rotated 180 enddef ; \stopMPextensions \startuniqueMPgraphic{math:stacker:\number"2190} math_stacker_draw(math_stacker_leftarrow_shape) ; \stopuniqueMPgraphic \startuniqueMPgraphic{math:stacker:\number"2192} math_stacker_draw(math_stacker_rightarrow_shape) ; \stopuniqueMPgraphic % so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad \doublebracket{a+b+c+d}$ \blank $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad \doubleparent {a+b+c+d}$ \blank $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad \doublebrace {a+b+c+d}$ \blank $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad \doublebar{a+b+c+d}$ \blank $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Behaviour of \overbar in math mode
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
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
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
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
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
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
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
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
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
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
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 ___
Re: [NTG-context] Package esvect and Context
It's ok. Thanks, Fabrice 2016-06-15 14:58 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 15. Juni 2016 um 14:48 > Hi Wolfgang, > what directory I put this file knowing that I installed the standalone > version in /home/fab/context > Fabrice > > The commend was meant for Hans, all *you* have to do is update your TeX > installation, afterwards you can try the following example: > > \useMPlibrary[mat] > > \setupmathstackers > [both] > [color=darkred, >alternative=mp] > > \setupmathstackers > [top] > [color=darkred, >alternative=mp] > > \setupmathstackers > [bottom] > [color=darkred, >alternative=mp] > > \starttext > > $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad > \doublebracket{a+b+c+d}$ \blank > $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad > \doubleparent {a+b+c+d}$ \blank > $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad > \doublebrace {a+b+c+d}$ \blank > $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad > \doublebar{a+b+c+d}$ \blank > > $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank > $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank > > \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 > > ___ > ___ 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] Package esvect and Context
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 15. Juni 2016 um 14:48 Hi Wolfgang, what directory I put this file knowing that I installed the standalone version in /home/fab/context Fabrice The commend was meant for Hans, all *you* have to do is update your TeX installation, afterwards you can try the following example: \useMPlibrary[mat] \setupmathstackers [both] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad \doublebracket{a+b+c+d}$ \blank $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad \doubleparent {a+b+c+d}$ \blank $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad \doublebrace {a+b+c+d}$ \blank $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad \doublebar{a+b+c+d}$ \blank $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank \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] Package esvect and Context
lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.022, afm 1.512, tfm 1.000, 4 instances, load time 0.149 seconds mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live 2016) mkiv lua stats > control sequences: 43841 of 65536 + 10 mkiv lua stats > lua properties: engine: lua, used memory: 59 MB (ctx: 58 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.551 seconds, 1 processed pages, 1 shipped pages, 1.815 pages/second system | total runtime: 0.784 seconds Thanks, Fabrice 2016-06-06 22:50 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 6/6/2016 9:39 PM, Fabrice Couvreur wrote: > >> Hi Joseph, >> This is already the command I used, but I think the point of the too >> small arrow. >> > > If you really want to go over the top: > > \useMPlibrary[mat] > > % will be in meta-imp-mat.mkiv > > \startMPextensions > vardef math_stacker_arrow_shape = > image ( > drawarrow > (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) > withcolor > OverlayLineColor ; > setbounds currentpicture to boundingbox currentpicture > bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; > ) > enddef ; > vardef math_stacker_leftarrow_shape = > math_stacker_arrow_shape > enddef ; > vardef math_stacker_rightarrow_shape = > math_stacker_arrow_shape rotated 180 > enddef ; > \stopMPextensions > > \startuniqueMPgraphic{math:stacker:\number"2190} > math_stacker_draw(math_stacker_leftarrow_shape) ; > \stopuniqueMPgraphic > > \startuniqueMPgraphic{math:stacker:\number"2192} > math_stacker_draw(math_stacker_rightarrow_shape) ; > \stopuniqueMPgraphic > > % so far > > \setupmathstackers > [both] % vfenced] > [color=darkred, >alternative=mp] > > \setupmathstackers > [top] > [color=darkred, >alternative=mp] > > \setupmathstackers > [bottom] > [color=darkred, >alternative=mp] > > \starttext > > $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad > \doublebracket{a+b+c+d}$ \blank > $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad > \doubleparent {a+b+c+d}$ \blank > $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad > \doublebrace {a+b+c+d}$ \blank > $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad > \doublebar{a+b+c+d}$ \blank > > $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank > $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank > > \stoptext > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | 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 > > ___ > ___ 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] Package esvect and Context
On 6/6/2016 9:39 PM, Fabrice Couvreur wrote: Hi Joseph, This is already the command I used, but I think the point of the too small arrow. If you really want to go over the top: \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) withcolor OverlayLineColor ; setbounds currentpicture to boundingbox currentpicture bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; ) enddef ; vardef math_stacker_leftarrow_shape = math_stacker_arrow_shape enddef ; vardef math_stacker_rightarrow_shape = math_stacker_arrow_shape rotated 180 enddef ; \stopMPextensions \startuniqueMPgraphic{math:stacker:\number"2190} math_stacker_draw(math_stacker_leftarrow_shape) ; \stopuniqueMPgraphic \startuniqueMPgraphic{math:stacker:\number"2192} math_stacker_draw(math_stacker_rightarrow_shape) ; \stopuniqueMPgraphic % so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad \doublebracket{a+b+c+d}$ \blank $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad \doubleparent {a+b+c+d}$ \blank $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad \doublebrace {a+b+c+d}$ \blank $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad \doublebar{a+b+c+d}$ \blank $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | 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 ___
[NTG-context] Prime and overbar
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
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
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
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
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
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
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
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
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] underbraces slightly too narrow (with MkIV 2013.05.28)
On 7/10/2013 2:02 PM, Sanjoy Mahajan wrote: In certain cases, display-mathunderbraces are not quite wide enough. Here's a minimal example: === \starttext \placeformula\startformula \underbrace{15\,\tf cm}_{L} \stopformula \stoptext === Using 2013.05.28 00:36 MKIV (from vanilla TL2013), the left brace tip starts under the vertical bar of the 1, instead of enclosing the serif as well. The right brace tip ends between the last two tines of the m, instead of enclosing the whole m and its serifs. With 2013.04.09 10:38 MKII, the brace tips extend just slightly beyond the 15 cm, which is better. However, they seem slightly too close. As a test, I ran the comparable plain-TeX file through LuaTeX and PDFTeX. == $$ \underbrace{15\,\rm cm}_{L} $$ \bye == The gap between the right brace tip and the text is slightly greater (with either LuaTeX or PDFTeX), and it looks right. (With the 2012.05.30 MKIV on live.contextgarden.net, the result is similar to the Lua/PDFTeX versions, though not identical, and also looks reasonable.) it has to do with the fact that we have opentype math fonts now and these are not compatible what you observe is the fact that we have a discrete number of sizes till we run out of them and go stretchable anyhow, i've now defined then in a different way (ok, some more trickery had to be applied as it's one of these aspects of open type math that still inherits old stuff) so in a next version you can do this: \setupmathstackers[vfenced][hoffset=10pt] is it looks like these commands have built-in \limits, these are now set for \overbrace \overparent \overbracket \overbar \underbrace \underparent \underbracket \underbar \doublebrace \doubleparent \doublebracket \doublebar Hans - 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
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
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
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
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
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
... 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
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
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
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] underbar/margin text
On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper daniel.schop...@aon.at: Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext -- 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] underbar/margin text
Am 21.11.2012 um 09:42 schrieb luigi scarso luigi.sca...@gmail.com: On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper daniel.schop...@aon.at: Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \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] underbar/margin text
On Wed, Nov 21, 2012 at 9:52 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 21.11.2012 um 09:42 schrieb luigi scarso luigi.sca...@gmail.com: On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper daniel.schop...@aon.at: Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \stoptext exactly, that's the meaning of my prev. line \inleft{\resetallattributes \color[red]{\overbar{marginal}}} reset all attributes and turn on some of them. Can help in some situations. ___ 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] underbar/margin text
Thank you very much, Wolfgang and Luigi, that was exactly what I was looking for! Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. Maybe there could be parameter like \setupmarginframed[resetfeatures=(yes|no|underbar|color|…)] … (I know that underbar is controversial feature, unfortunately in this special case it's a requirement which I can't change…) Best, Daniel Am 21.11.12 10:02, schrieb luigi scarso: On Wed, Nov 21, 2012 at 9:52 AM, Wolfgang Schuster wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote: Am 21.11.2012 um 09:42 schrieb luigi scarso luigi.sca...@gmail.com mailto:luigi.sca...@gmail.com: On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper daniel.schop...@aon.at mailto:daniel.schop...@aon.at: Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \stoptext exactly, that's the meaning of my prev. line \inleft{\resetallattributes \color[red]{\overbar{marginal}}} reset all attributes and turn on some of them. Can help in some situations. ___ 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 ___
Re: [NTG-context] overscored or overlined text … (or whatever it should be called)
On 25-1-2012 13:14, Robert Blackstone wrote: Dear all, I am trying to reproduce with ConTeXt an old french text that contains numerous abbreviations, mostly of two types: - words cut off by means of a period, with the last letter of the complete word as a superscript above the period. - overscores --either for single characters, for instance in words with double consonances, like comme. One of these is sometimes omitted and replaced by an overscore on the previous vowel -- or on an entire abbreviation, such as coe for comme and nre for notre; they become coe and nre overscored. \overbar{test} btw, never do a \setupframed globally as it will infect many derived frames components ... best do a \defineframed ... then Hans - 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 ___
[NTG-context] How to achieve a LaTeX-center-like thing
Hi, I'd like to have something like this: Let $X$ be a~real Banach space, $D$~an open subset of~$X$ containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$ to~$X$. We say that $T$ satisfies the {\em Mönch condition} if the following implication holds: \blank[small] \startalignment[middle] If $C\subset\overbar{D}$ is countable and $C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then $\overbar{C}$ is compact. \stopalignment \blank[small] Is there any option for alignment which would enable me not to put the blanks manually? TIA, -- Marcin Borkowski http://mbork.pl ___ 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] How to achieve a LaTeX-center-like thing
Am 06.09.2011 um 12:19 schrieb Marcin Borkowski: Hi, I'd like to have something like this: Let $X$ be a~real Banach space, $D$~an open subset of~$X$ containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$ to~$X$. We say that $T$ satisfies the {\em Mönch condition} if the following implication holds: \blank[small] \startalignment[middle] If $C\subset\overbar{D}$ is countable and $C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then $\overbar{C}$ is compact. \stopalignment \blank[small] Is there any option for alignment which would enable me not to put the blanks manually? \definestartstop [centered] [before={\blank[small]}, after={\blank[small]}, commands={\setupalign[middle]}] \starttext … \startcentered … \stopcentered … \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] math: `\overbar` with fractions and subscripts
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
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
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
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 ___
Re: [NTG-context] math mode underbar broken ?
On 26-1-2011 11:54, Steffen Wolfrum wrote: I just came across this discrepancy: \starttext \startformula H_1 + H_A = f(\underbar{α}) \stopformula $ H_1 + H_A = f(\underbar{α}) $ \startformula H_1 + H_A = f(\overbar{α}) \stopformula $ H_1 + H_A = f(\overbar{α}) $ \stoptext Is this known or is under/overbar broken in display math mode? it's a side effect of a buglet in luatex, the next beta works around it for pre 0.70 versions Hans - 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 ___
[NTG-context] math mode underbar broken ?
Hi, I just came across this discrepancy: \starttext \startformula H_1 + H_A = f(\underbar{α}) \stopformula $ H_1 + H_A = f(\underbar{α}) $ \startformula H_1 + H_A = f(\overbar{α}) \stopformula $ H_1 + H_A = f(\overbar{α}) $ \stoptext Is this known or is under/overbar broken in display math mode? Steffen (2011.01.14 14:44 MKIV) ___ 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 mode underbar broken ?
2011/1/26 Steffen Wolfrum cont...@st.estfiles.de Hi, I just came across this discrepancy: \starttext \startformula H_1 + H_A = f(\underbar{α}) \stopformula $ H_1 + H_A = f(\underbar{α}) $ \startformula H_1 + H_A = f(\overbar{α}) \stopformula $ H_1 + H_A = f(\overbar{α}) $ \stoptext Is this known or is under/overbar broken in display math mode? Steffen (2011.01.14 14:44 MKIV) IIRC, this has been broken for a while. Regards, Vedran Miletić ___ 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] Labels in MetaPost (MetaObj)
On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. \startMPinclusions path a ; \stopMPinclusions \startMPinclusions a := (0,0) -- (1cm,0) ; \stopMPinclusions will fail, because the second inclusions overwrites the first. If you use [+], then the second inclusions in appended after the first. Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. The trick is to ensure that the offending code (assignObj) is not run twice. \startMPinclusions[+] input metaobj; boolean flag; flag := false; \stopMPinclusions \startMPdefinitions vardef newSegment@\#= if not flag : assignObj(@\#,Segment); ObjPoint a,b; ObjCode @\#b-@\#a=(1cm,2cm); fi ; enddef; def drawSegment(suffix n)= draw n.a--n.b; draw btex \tt \overbar{E} etex shifted n.a; % 1 enddef; \stopMPdefinitions \starttext \startMPpage newSegment.s; ObjLabel.s(btex hello! etex) labpoint(a); % 2 s.a=origin; drawObj(s); flag := true ; \stopMPpage \stoptext @Hans, can we have a `trialtypesetting` for MP code? 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] Labels in MetaPost (MetaObj)
Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. I hope someone on this list can assist me here. I'm trying to run the appended ConTeXt file with a quite simple object Segment (from the manual [1], section 2.1). This script works fine as it is. I wanted to add a simple TeX label (\tt \overbar{E}) to the drawing macro, but failed. When including the line marked with % 1 the TeX run fails. I don't understand why. The line with % 2 is taken frome the metaobj manual (section 5.8) [1], but including this doesn't work either. It would be great if someone could tell me what's wrong with the mp-code below and explain how to place a (TeX) label inside a metaobj object. Thanks in advance, Stefan. [1] http://tex.loria.fr/prod-graph/momanual.pdf PS: Both variants fail with mp error messages like this: mplibmp terminal: ! Inconsistent equation (off by 1). to be read again ; assignObj-(SUFFIX0)=incr(nObj_); iname_[(SUFFIX0)]=str(SUFFIX0);addclass_((S... newSegment-...roup.assignObj((SUFFIX2),Segment) ;ObjPoint.a,b;ObjCode@##b... to be read again ; * ...ar {E}) shifted n.a; enddef; newSegment.s; s.a=origin; drawObj(s); ; ! Redundant equation. to be read again ; assignObj-...bj_);iname_[(SUFFIX0)]=str(SUFFIX0); addclass_((SUFFIX0),(EXPR1... newSegment-...roup.assignObj((SUFFIX2),Segment) ;ObjPoint.a,b;ObjCode@##b... === \startMPinclusions input metaobj; \stopMPinclusions \startMPpage vardef newSegment@#= assignObj(@#,Segment); ObjPoint a,b; ObjCode @#b-@#a=(1cm,2cm); enddef; def drawSegment(suffix n)= draw n.a--n.b; % draw btex \tt \overbar{E} etex shifted n.a; % 1 enddef; newSegment.s; % ObjLabel.s(btex hello! etex) labpoint(a); % 2 s.a=origin; drawObj(s); \stopMPpage === ___ 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
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
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
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 ___
Re: [NTG-context] ConTeXt-ifying Kile
] \definetabulate[name][name][text] \definetext[name][position][text][text][text] # \definetextbackground \definetextposition[name][settings] # \definetextvariable[settings][???][???] \definetype[name][settings] # \definetypeface \definetyping[file|typing|name][settings] \defineversion[name][numbers] # \defineXMLargument # \defineXMLcommand # \defineXMLenvironment # \defineXMLenvironmentsave # \defineXMLgrouped # \defineXMLgsave # \defineXMLgstore # \defineXMLignore # \defineXMLnested # \defineXMLpickup # \defineXMLprocess # \defineXMLsave # \defineXMLsavecontent # \defineXMLsingular # \defineXMLstore # \defXMLstring \description{text}text \determineheadnumber[section] \determinelistcharacteristics[names][settings] # \digits \disableinteractionmenu[position|name][references] # \disablemode # \doglobal # \dogotopar # \doif # \doifcommon # \doifcommonelse # \doifdefined # \doifdefinedelse # \doifelse # \doifelsenothing # \doifelsevalue # \doiffieldelse # \doifflagged # \doifinset # \doifinsetelse # \doifmode # \doifmodeelse # \doifnextcharelse # \doifnot # \doifnotcommon # \doifnotflagged # \doifnothing # \doifnotinsetelse # \doifnotmode # \doifnotvalue # \doifsomething # \doiftext # \doiftextelse # \doifundefined # \doifundefinedelse # \doifvalue # \doifXMLdata # \doifXMLdataelse # \doifXMLop # \doifXMLparelse # \doloop # \donothing # \dontleavehmode \donttest # \dorecurse # \dostepwiserecurse # \dowithnextbox # \dowithnextboxcontent # \empty \emptylines[number] # \emptytoks # \enablemode # \endstrut \enumeration # \environment # \EQ # \eTABLE # \eTABLEbody # \eTABLEfoot # \eTABLEhead # \eTABLEnext # \eTD # \eTH # \eTR # \exitloop # \expanded \externalfigure[file][settings] \field[name] \fieldstack[name][names][settings] \fillinfield[text]{text} \fillinline[settings] \fillinrules[settings]{text}{text} \fillintext[settings]{text}{text} \fitfield[name] \fixedspaces # \FLOWchart # \flushcollector # \flushlayer # \flushXMLelement \followprofile{text}[text] \followprofileversion{text}[text][text] \followversion{text}[text] \footnote[reference]{text} \footnotetext[reference]{text} \forceblocks[names][names] # \forgetall # \FR \fraction{text}{text} \framed[settings]{text} \framedtext[settings] \from[reference] \getbuffer[name] # \getfiguredimensionsonly # \getmarking[name][options] # \getvalue # \getvariable # \globalletvalue \godown[dimension] \goto{text}{text}[references] \gotobox{text}[references] \graycolor[text] \grid[options] # \gsaveXMLasdata \hairline \head[references] \headnumber[section] \headtext{text} # \hfilll \hideblocks[names][names] \high{text} # \HL \hl[number] # \hpos # \hspace # \ifconditional # \ifdefined # \iftrialtypesetting # \ifundefined \in{text}{text}[reference] # \includeFLOWchart # \includemenu # \increment \indentation \indenting[options] \inframed[settings]{text} \ininner[+|-|low][reference]{text} \inleft[+|-|low][reference]{text} \inline[reference] \inmargin[+|-|low][reference]{text} \inothermargin[+|-|low][reference]{text} \inouter[+|-|low][reference]{text} \inright[+|-|low][reference]{text} \installlanguage[name][options] \interactionbar[settings] \interactionbuttons[settings][names] \item[references] \items[settings]{text} \its[references] \keepblocks[names][all|names] \labeling[reference] \labels[name] \labeltext{text} \language[language code] \leftaligned{text} # \letgvalue # \letvalue \listsymbol[name]{text} # \loadmapfile \loadsorts \loadsynonyms # \localhsize \logfields \lohi[low]{text}{text} \low{text} # \LR \mainlanguage[language code] \mar[references]{text} \marginrule[number]{text} \margintext[+|-|low][reference]{text} \marking[name]{text} \markversion \mathematics{text} \mediaeval{text} \midaligned{text} \mirror{text} \MONTH{text} \month{text} \moveongrid[options] # \MR \name{text} # \NC # \newcounter # \nextbox \nextsection \nocap{text} \noheaderandfooterlines \noindenting \nolist{text} \nomarking{text} \nomoreblocks \nomorefiles \nop \nospace \note[reference] \notopandbottomlines \nowhitespace # \NR \numbers{text} \overbar{text} \overbars{text text} # \overlaybutton # \overlayfigure \overstrike{text} \overstrikes{text text} \packed \page[options] \pagereference[reference] \pagetype[name] \paragraph \part[references]{text} \periods[number] \placebookmarks[names][names|all] \placecombinedlist[name][settings] \placecombinedlist[name][settings] # \placefigure \placefloat[options][references]{text}{text} \placefootnotes[settings] \placeformula[references]{text}$$ $$ # \placelayer \placelegend{text}{text} \placelist[names][settings] \placelistoffloats \placelistofsorts \placelistofsynonyms \placelocalfootnotes[settings] \placelogos[names] \placeongrid[settings{text} \placeontopofeachother{text}{text} \placereferencelist[names] \placeregister[name][settings] \placeregister[settings] \placerule[name] \placesidebyside{text}{text} \placesubformula[references]{text}$$ $$ \placetextvariable[name] # \plusone # \plustwo \position(numbers){text} \positiontext[name]{text} # \prependtoks
Re: [NTG-context] mml
Hi nico/Hans, Hans Hagen wrote: mo #x000AF; /mo The MathML spec specifically suggests the use of OverBar; instead of a literal accent character in situations like this. For the macron, accent=false should only influence the vertical placement, not its stretchiness. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mml
On Thu, 30 Mar 2006 10:18:32 +0200, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi nico/Hans, Hans Hagen wrote: mo #x000AF; /mo The MathML spec specifically suggests the use of OverBar; instead of a literal accent character in situations like this. The problem is that it is also specified to which unicode character is mapped the entity (http://www.w3.org/TR/MathML2/isodia.html). Actually OverBar; is U00AF. So, the behaviour should not be different when using an entity name and the corresponding unicode value. Imagine some XML tool processing an original XML mathml code containing an entity name, and simply expanding the entity according the MathML DTD. I think that processing the original and the expanded code should give the same result. Of course, using entity names instead of unicode values is better for readibility and maintanability, but IMHO it is not a solution to the question. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mml
nico wrote: On Thu, 30 Mar 2006 10:18:32 +0200, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi nico/Hans, Hans Hagen wrote: mo #x000AF; /mo The MathML spec specifically suggests the use of OverBar; instead of a literal accent character in situations like this. The problem is that it is also specified to which unicode character is mapped the entity (http://www.w3.org/TR/MathML2/isodia.html). Actually OverBar; is U00AF. the messy part is that - a macron has no stretch - an overbar has stretch so, while there is a lot math stuf (now) in unicode, the macron is used for an overbar which is rather strange; do they also 'misuse' the underscore for underbar etc? now an implementation needs to adapt to math or text (or just gamble since it may be that i want a non stretchable macron over x+y+z); my guess is that as a result, many implementations are more complex than needed (btw, in pure text, it's still not clear if the macro glyph sould be chosen or a stretchable hrule) (i think that one problem of unicode/xml/mathml is that it is used in typesetting systems but not in all aspects is designed (or used) to facilitate high end results; therefore a 24/32 bit tex still needs to provide much detailed control) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mml
On Thu, 30 Mar 2006 23:02:10 +0200, Hans Hagen [EMAIL PROTECTED] wrote: nico wrote: On Thu, 30 Mar 2006 10:18:32 +0200, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi nico/Hans, Hans Hagen wrote: mo #x000AF; /mo The MathML spec specifically suggests the use of OverBar; instead of a literal accent character in situations like this. The problem is that it is also specified to which unicode character is mapped the entity (http://www.w3.org/TR/MathML2/isodia.html). Actually OverBar; is U00AF. the messy part is that - a macron has no stretch - an overbar has stretch so, while there is a lot math stuf (now) in unicode, the macron is used for an overbar which is rather strange; do they also 'misuse' the underscore for underbar etc? I guess that in MathML stretchiness is more systematic and should apply to most characters, provided that they can stretch (http://www.w3.org/TR/REC-MathML/chap3_2.html). In this doc it is said: By default, most horizontal arrows and some accents stretch horizontally. now an implementation needs to adapt to math or text (or just gamble since it may be that i want a non stretchable macron over x+y+z); my guess is that as a result, many implementations are more complex than needed From my little window (since I don't know how it works internally) I would say that in mathml stretchiness is required in things like mover or munder, if the character allows it, and depending on stretch attribute. But it's sure that it does not make things easier. (btw, in pure text, it's still not clear if the macro glyph sould be chosen or a stretchable hrule) What is not clear to me is if unicode explicitely allows a combination of a non spacing mark (accent) and a *group* of characters. In the specification I've only seen that it can apply to a base character. If it can apply only to one character, a glyph seems enough. (i think that one problem of unicode/xml/mathml is that it is used in typesetting systems but not in all aspects is designed (or used) to facilitate high end results; therefore a 24/32 bit tex still needs to provide much detailed control) Yep! Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mml
nico wrote: - The bar above x+y+z does not cover the formula, and it still small (mover2): math mrow mover accent=true mrow mi x /mi mo + /mo mi y /mi mo + /mo mi z /mi /mrow mo #x000AF; /mo /mover mtext vs /mtext mover accent=false mrow mi x /mi mo + /mo mi y /mi mo + /mo mi z /mi /mrow mo #x000AF; /mo /mover /mrow /math The problem with this kind of situations is that the unicode spec permits / or is vague / or is messy with regards to things like bars over whatever; in this case you use a macron for something overline one way to deal with it is to define additional entities (we already have \defineXMLentity [OverBar]{\normalorfiller\hrule\hrulefill} etc for math) \usemodule[newmml] \defineXMLentity[x000AF]{\normalorfiller\macron\hrulefill} \startXMLdata math mrow mover accent=true mrow mi x /mi mo + /mo mi y /mi mo + /mo mi z /mi /mrow mo #x000AF; /mo /mover /mrow /math \stopXMLdata but then we miss the utf 8 encoded ones, so we then need to hook it into the utf handler i.e. redefine the macron there; yet another option is to 'normalize the file' by preprocessing this is something that needs discussion Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] underbar and overbar
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
Re: Re[4]: [NTG-context] Insufficient symbol fonts error
Giuseppe— Thanks for the tip about \high. That works (and looks cleaner in the source file too). But \grk{\overbar{\grk{kj}} Kull'hnhc d\high{\tfx\grk{ou}} med'eonta ka`i Arkad'ihc polum'hlou} still chokes on \overbar and returns the “insufficient symbol fonts” error. Alan On Oct 30, 2005, at 12:31 PM, Giuseppe Bilotta wrote: Sunday, October 30, 2005 Alan Bowen wrote: Giuseppe— Actually, it can happen with a very short document too: \starttext \grk{\overbar{\grk{kj}} Kull'hnhc d$^{\hbox{\tfx\grk{ou}}}$ med'eonta ka`i Arkad'ihc polum'hlou} \stoptext will produce the ! Math formula deleted: Insufficient symbol fonts error. To generalize: all my attempts to enter mathmode when the bodyfont is Greek (using one of the fonts in Thomas Schmitz’ Greek module) fail because of insufficient symbol fonts. I wonder if this bears of the fact that in this module the fonts have to be defined at every size used in the document. The relevant line in type-tasgreek is \definebodyfont [30pt,25pt,20pt,18pt,17.3pt,14.4pt,14pt,12pt,11pt,10.5pt,10.1pt,10pt, 9pt,8pt,7pt,6pt,5pt,4pt] [rm] My environment file sets the body font size to 10.1 pt. I'm not the font expert, but the problem seems to be that math small text isn't being set (if I see it correctly, you're using math mode to enter a superscript). I would suggest you try \text instead of \hbox in the math part, and even better try \hi{superscript text} or \super{superscript text} for the superscript. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[6]: [NTG-context] Insufficient symbol fonts error
Monday, October 31, 2005 Alan Bowen wrote: Giuseppe Thanks for the tip about \high. That works (and looks cleaner in the source file too). But \grk{\overbar{\grk{kj}} Kull'hnhc d\high{\tfx\grk{ou}} med'eonta ka`i Arkad'ihc polum'hlou} still chokes on \overbar and returns the insufficient symbol fonts error. First of all, I notice you are having quite a few \grk in there, unless that's a typo for $...$. Have you tried \overline instead of \overbar? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[6]: [NTG-context] Insufficient symbol fonts error
I removed some of the \grk. ( I had inserted them because I was uncertain of the effect entering math mode would have on my body font choice. In Plain TeX, I think it was necessary to specify the font.) \grk{\overline{kj}} still fails because of insufficient symbol fonts (just as \grk{\overbar{kj}}). Alan On Oct 31, 2005, at 6:05 AM, Giuseppe Bilotta wrote: Monday, October 31, 2005 Alan Bowen wrote: Giuseppe— Thanks for the tip about \high. That works (and looks cleaner in the source file too). But \grk{\overbar{\grk{kj}} Kull'hnhc d\high{\tfx\grk{ou}} med'eonta ka`i Arkad'ihc polum'hlou} still chokes on \overbar and returns the “insufficient symbol fonts” error. First of all, I notice you are having quite a few \grk in there, unless that's a typo for $...$. Have you tried \overline instead of \overbar? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[8]: [NTG-context] Insufficient symbol fonts error
Giuseppe, Many thanks for your help: it is very much appreciated. \overbar{{\grk{kj}}} \grk{Kull'hnhc d\high{\tfx{ou}} med'eonta ka`i Arkad'ihc polum'hlou} works, but it really is more a work-around than a good solution. Ideally, one would like to be able to do math when the body font is Greek. But we both need some font wizards to help with this. All best, Alan On Oct 31, 2005, at 8:06 AM, Giuseppe Bilotta wrote: Monday, October 31, 2005 Alan Bowen wrote: I removed some of the \grk. ( I had inserted them because I was uncertain of the effect entering math mode would have on my body font choice. In Plain TeX, I think it was necessary to specify the font.) \grk{\overline{kj}} still fails because of insufficient symbol fonts (just as \grk{\overbar{kj}}). Shouldn't these be \overline{\grk{kj}}? Anyway, I'm afraid I can't help you any further :( -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[8]: [NTG-context] Insufficient symbol fonts error
Alan, I know next to nothing about math, but I know that the Greek typescripts do not define a math font. So you will get errors doing math when the body font is Greek. I wish I could help, but defining a math font is beyond my abilities. If anyone is interested in doing it, however, I will be happy to provide the specs for the Greek fonts. Best Thomas On Oct 31, 2005, at 2:36 PM, Alan Bowen wrote: Giuseppe, Many thanks for your help: it is very much appreciated. \overbar{{\grk{kj}}} \grk{Kull'hnhc d\high{\tfx{ou}} med'eonta ka`i Arkad'ihc polum'hlou} works, but it really is more a work-around than a good solution. Ideally, one would like to be able to do math when the body font is Greek. But we both need some font wizards to help with this. All best, Alan On Oct 31, 2005, at 8:06 AM, Giuseppe Bilotta wrote: Monday, October 31, 2005 Alan Bowen wrote: I removed some of the \grk. ( I had inserted them because I was uncertain of the effect entering math mode would have on my body font choice. In Plain TeX, I think it was necessary to specify the font.) \grk{\overline{kj}} still fails because of insufficient symbol fonts (just as \grk{\overbar{kj}}). Shouldn't these be \overline{\grk{kj}}? Anyway, I'm afraid I can't help you any further :( -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Insufficient symbol fonts error
I am getting some puzzling errors when I try to use the Greek fonts in math formulae (to represent Greek numerals as written in mss.) In a short file, both \overbar{\grk{kj}} and $\overline{\hbox{\grk{kj}}}$ work as expected, even when they occur in Greek text. But in a long, complicated file with lots of Greek etc. and the same environment file, I get ! Math formula deleted: Insufficient symbol fonts. \stopmathmode -$ \dodounderbar ...nderbar {-\dimen 0}{\dimen 2}{#1} \egroup \processisolatedwords ...dwordsfalse #2{\unhbox 0} \else \isolatedwordstrue \... \redounderbar ...sisolatedwords {#2}\dodounderbar \egroup l.1 ...-n'o\-menoc hmer\-~wn \overbar {\grk {kj}} ka`i pr'wtwn exhkost~wn ... \rescanwithsetup ...\scantokens {#2\ignorespaces } \egroup l.81 ...wn embol'imwn hmer~wn d/ ep'ages\-jai.} [8.44] \grk {'ojen ou de... I am note really sure what this error message means or how to deal with it. Any suggestions will be gratefully received. I am running the latest ConTeXT on the latest teTeX distribution. Best, Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context