Re: [NTG-context] Overarc etc. symbols
Thanx Henri. This is very useful for me. Jaroslav Hajtmar Dne 02.07.17 23:38, ntg-context za uživatele Henri Menkenapsal(a): On Sun, 2017-07-02 at 08:38 +, Jaroslav Hajtmar wrote: > Thanx Henri, > that's exactly what I needed. Is there in any place on Wiki table of all ConTeXt math symbols? > Sometimes I look for something and I explore, that few LaTeX symbols not work in ConTeXt. Most (all?) delimiters are defined in these files. https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/math-stc.mkvi https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/math-fen.mkiv Otherwise I just look up the symbol in this file http://texdoc.net/texmf-dist/doc/latex/unicode-math/unimath-symbols.pdf and then search the ConTeXt source for the Unicode slot to get the name in ConTeXt. But in many cases the names from unimath-symbols also work in ConTeXt. > > Thanx again. > Jaroslav Hajtmar > > > Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke enrime...@gmail.com> napsal(a): > > $\overparent{AVB}$ > > > Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke enrime...@gmail.com> napsal(a): > > On 07/02/2017 07:18 PM, Jaroslav Hajtmar wrote: > > Hello ConTeXist. > > > > Can someone advise me how to lay an arc over three letters AVB. > > > > It's about the LaTeX equivalent of \overarc or \widearc macro. Is there any table of similar > ConTeXt symbols? > > Maybe like this? > > \starttext > > $\overparent{AVB}$ > > $\underparent{AVB}$ > > \stoptext > > > > > Thanks Jaroslav Hajtmar > > > > > > > > > > > > > > > > > > > > ___ > > 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 ___ ___ 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] Overarc etc. symbols
On Sun, 2017-07-02 at 08:38 +, Jaroslav Hajtmar wrote: > Thanx Henri, > that's exactly what I needed. Is there in any place on Wiki table of all > ConTeXt math symbols? > Sometimes I look for something and I explore, that few LaTeX symbols not work > in ConTeXt. Most (all?) delimiters are defined in these files. https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/math-stc.mkvi https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/math-fen.mkiv Otherwise I just look up the symbol in this file http://texdoc.net/texmf-dist/doc/latex/unicode-math/unimath-symbols.pdf and then search the ConTeXt source for the Unicode slot to get the name in ConTeXt. But in many cases the names from unimath-symbols also work in ConTeXt. > > Thanx again. > Jaroslav Hajtmar > > > Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke >enrime...@gmail.com> napsal(a): > > $\overparent{AVB}$ > > > Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke > enrime...@gmail.com> napsal(a): > > On 07/02/2017 07:18 PM, Jaroslav Hajtmar wrote: > > Hello ConTeXist. > > > > Can someone advise me how to lay an arc over three letters AVB. > > > > It's about the LaTeX equivalent of \overarc or \widearc macro. Is there > any table of similar > ConTeXt symbols? > > Maybe like this? > > \starttext > > $\overparent{AVB}$ > > $\underparent{AVB}$ > > \stoptext > > > > > Thanks Jaroslav Hajtmar > > > > > > > > > > > > > > > > > > > > > ___ > > 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] Overarc etc. symbols
Thanx Henri, that's exactly what I needed. Is there in any place on Wiki table of all ConTeXt math symbols? Sometimes I look for something and I explore, that few LaTeX symbols not work in ConTeXt. Thanx again. Jaroslav Hajtmar Dne 02.07.17 9:46, ntg-context za uživatele Henri Menkenapsal(a): $\overparent{AVB}$ Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke napsal(a): On 07/02/2017 07:18 PM, Jaroslav Hajtmar wrote: > Hello ConTeXist. > > Can someone advise me how to lay an arc over three letters AVB. > > It's about the LaTeX equivalent of \overarc or \widearc macro. Is there any table of similar ConTeXt symbols? Maybe like this? \starttext $\overparent{AVB}$ $\underparent{AVB}$ \stoptext > > Thanks Jaroslav Hajtmar > > > > > > > > > > ___ > 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] Overarc etc. symbols
Thanx Henri, that's exactly what I needed. Is there in any place on Wiki table of all ConTeXt math symbols? Sometimes I look for something and I explore, that few LaTeX symbols not work in ConTeXt. Thanx again. Jaroslav Hajtmar > On 02.07.17 9:46, ntg-context za uživatele Henri Menke >napsal(a): >$\overparent{AVB}$ Dne 02.07.17 9:46, ntg-context za uživatele Henri Menke napsal(a): On 07/02/2017 07:18 PM, Jaroslav Hajtmar wrote: > Hello ConTeXist. > > Can someone advise me how to lay an arc over three letters AVB. > > It's about the LaTeX equivalent of \overarc or \widearc macro. Is there any table of similar ConTeXt symbols? Maybe like this? \starttext $\overparent{AVB}$ $\underparent{AVB}$ \stoptext > > Thanks Jaroslav Hajtmar > > > > > > > > > > ___ > 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] Overarc etc. symbols
On 07/02/2017 07:18 PM, Jaroslav Hajtmar wrote: > Hello ConTeXist. > > Can someone advise me how to lay an arc over three letters AVB. > > It's about the LaTeX equivalent of \overarc or \widearc macro. Is there any > table of similar ConTeXt symbols? Maybe like this? \starttext $\overparent{AVB}$ $\underparent{AVB}$ \stoptext > > Thanks Jaroslav Hajtmar > > > > > > > > > > ___ > 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] overarc
On Wed, 4 Mar 2009, David Arnold wrote: All, How can I place an overarc over some text, such as in \overarc{AB}? Currently, there is no such feature. Are you looking at the functionality of the arcs package of latex? If so, it will be easy to add it to ConTeXt. The main trouble is that the glyph for \overarc is missing from the fonts. Arcs.sty takes the glyphs for \frown and \smile, and scales them appropriately. An ugly solution, but it looks ok if you are just placing it over one or two letters. I cannot translate the code to ConTeXt right now, so am posting it here incase someone wants to give it a shot. \newcommand{\overarc}[2][1]{\o...@under@arc{#1}{#2...@} \newcommand{\underarc}[2][1]{\o...@under@arc{#1}{#...@ne} \newcommand{\o...@under@arc}[3]{% \leavevmode \hbox {% \setbox\z@ = \hbox {#2}% \ifdim \ht\z@ = \z@ % arc over/under space \ifdim \dp\z@ = \z@ \ht\z@ = 1ex\relax \fi \fi \dimen@ = #1\wd\z@ \begingroup \let \...@size@warning = \...@gobbletwo \relsize{-10}% \...@ne = \z@ \...@whiledim \...@ne .95\dimen@ \do {% %AM: This loops keeps on increasing the fontsize %by 1 until the width of the glyph increases the width of %of box zero. \ifx \...@currsize \Huge \dimen@ = \z@ \else $%AM: Really? Load the font for each font size! \skip@ = \...@baselineskip \fontencoding{OML}\fontfamily{cmm}\fontseries{m}% \fontshape{it}\fontsize{\...@size}{\skip@}\selectfont \global \setb...@ne = \hbox {% \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}% \ifdim \...@ne \dimen@ \fontsize{...@size}{\skip@}\selectfont \global \setb...@ne = \hbox {% \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}% \ifdim \...@ne \dimen@ \fontsize{...@size}{\skip@}\selectfont \global \setb...@ne = \hbox {% \hss\symbol{5\ifnum #3=\z@ F\else E\fi}\hss}% \fi \fi $%AM: Normally one sets mathsurround to zero. Why is that not done here? \fi \ifdim \...@ne \dimen@ \relsize{+1}% \fi \global \di...@i = \fontdimen5\the\font }% \endgroup \ifnum #3 = \z@ \di...@ii = 1.067\ht\z@ \global \divide \di...@i by \tw@ \global \advance \di...@i by -\...@ne \advance \di...@ii by .6\di...@i \else \di...@ii = -1.05\...@ne \advance \di...@ii by -.75pt \ifdim \dp\z@ \z@ \advance \di...@ii by -\dp\z@ \fi \fi \copy\z@ \dimen@ = \wd\z@ \advance \dimen@ by \...@ne \kern -.5\dimen@ \raisebox {\di...@ii}[\z@]...@]{\copy\@ne}% \dimen@ = \wd\z@ \advance \dimen@ by -\...@ne \dimen@ = .5\dimen@ \kern \dimen@ }% } 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] overarc
On Mar 5, 2009, at 2:39 PM, Aditya Mahajan wrote: Currently, there is no such feature. Are you looking at the functionality of the arcs package of latex? If so, it will be easy to add it to ConTeXt. The main trouble is that the glyph for \overarc is missing from the fonts. Arcs.sty takes the glyphs for \frown and \smile, and scales them appropriately. An ugly solution, but it looks ok if you are just placing it over one or two letters. I had a similar wish a while ago and hacked something with a MPpositiongraphic. It is certainly not very elegant, but IMHO better than the LaTeX code you posted (scaling a glyph like that will look ugly when you want to span more than just two letters). Wolfgang Schuster supplied the neat trick with the counter. It is quite fast when run with mkiv, but I suspect would be slow with mkii (and leave quite a few .mp files behind). Maybe this can help: \newcount\arcnumber \startMPpositiongraphic{placeoverarc} StartPage ; begingroup ; initialize_box(\MPpos{\MPvar{self}}) ; numeric c ; c = ExHeight/6 ; z1 = llxy ; z2 = lrxy ; z7 = 1/2[z1,z2] ; z4 = ((x1 + 2*c), (y1 + 2*c)) ; z5 = (x7, (y7 + 4*c)) ; z6 = ((x2 - 2*c), (y2 + 2*c)) ; path syn ; syn := z4 .. z5 .. z6 ; pickup pencircle scaled (0.75*c) ; draw syn ; anchor_box(\MPanchor{\MPvar{self}}) ; endgroup ; save c ; StopPage ; \stopMPpositiongraphic% \define[1]\overarc {\advance\arcnumber\plusone% \setMPpositiongraphic{POS-\number\arcnumber}{placeoverarc}% \hpos{POS-\number\arcnumber}{#1}} Maybe that can be the starting point for some better code... Thomas ___ 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] overarc
David Arnold wrote: All, How can I place an overarc over some text, such as in \overarc{AB}? well, this does not show how it should look -) 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 - ___ 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 ___