[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris


-- Original Message --
From "Hans Hagen" mailto:j.ha...@xs4all.nl>>
To "Hamid,Idris" mailto:idris.ha...@colostate.edu>>; 
"mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>>
Date 9/21/2023 3:29:22 PM
Subject Re: [NTG-context] Re: Toggling the symbol for the zero-width joiner and 
related Unicode control characters
  Many thanks, Hans. The method appears to work only for nbsp, not zwj etc. 
Here is the updated MWE:

===
\startTEXpage[offset=1em]
\disabletrackers[typesetters.directions]
\disabletrackers[typesetters.zwj]
\disabletrackers[typesetters.zwnj]
\disabletrackers[typesetters.nbsp]
\definedfont[almfixed at 14pt]
ZWJ: ‌
ZWNJ: ‍
NBSP:
\stopTEXpage
===

See attached, please advise.
joiners are part of replacement etc and can come and go ... they are
characters (we could visualize them but one never knows for sure if one
sees them)

nbsp are spaces and become glue that we can trace reliable in the node list

Many thanks. Ok, here is another MWE featuring a workaround using fallbacks:

==
\definefontfallback[nosymbols] [file:lmmono10-regular] [200C,200D] [force=yes]
\starttypescript [serif] [alm] [name]
\definefontsynonym [Serif] [ArabicLatinSerif]
\stoptypescript
\starttypescript [mono] [alm] [name]
\definefontsynonym [Mono]  [ArabicLatinMono]
\stoptypescript
\starttypescript [serif] [alm]
\definefontsynonym [ArabicLatinSerif] [file:almfixed] % 
[fallbacks=nosymbols]
\stoptypescript
\starttypescript [mono] [alm]
\definefontsynonym [ArabicLatinMono] [file:almfixed] [fallbacks=nosymbols]
\stoptypescript
\starttypescript [almfixed-nosymbols]
\definetypeface [\typescriptone] [rm] [serif] [alm] [default]
\definetypeface [\typescriptone] [tt] [mono] [alm] [default]
\stoptypescript
\usetypescript[almfixed-nosymbols]
\setupbodyfont[almfixed-nosymbols,12pt]
\startTEXpage[offset=1em]
\rm
ZWJ: ‌
ZWNJ: ‍
NBSP:
\tt
ZWJ: ‌
ZWNJ: ‍
NBSP:
\stopTEXpage
==

Under \rm we get the symbols, and under \tt they are suppressed. Of course it 
doesn't matter what fallback font one uses, as long as it has no 
control-character symbols.

1. Can this approach be generalized to get what we want, viz., a way to toggle 
the symbols?

2. \enabletrackers[typesetters.nbsp] gives a colored box, which is at least 
something.. But how can we get the NBSP symbol that's alerady in the font?

3. Ideally:
a. we want all Unicode control symbols to show up in verbatim or in \typebuffer 
(as in a text editor);
b. we want all Unicode control symbols to be suppressed in final pdf output 
(for, e.g., printing).

But some fonts meant for printing have symbols for Unicode control chars -- 
that poses a challenge.

And some fonts meant for verbatim/editing do not have symbols for the control 
chars -- that also poses a challenge.  AlmFixed, of course, has them.

Most minimally decent Arabic fonts have symbols for the Unicode control chars 
as default, including Scheherazade, Amiri, Uthmanic, and Noto Naskh Arabic -- 
all free fonts.

Industry workhorses like Linotype Lotus (Arabic) also have them.

Uniscribe applications like Notepad/Word allow for toggling in a WYSIWYG 
context -- can't speak for HarfBuzz -- so there is no harm in having explicit 
symbols in the font.

The upshot is that, for non-Latin scripts, some toggling capability in ConTeXt 
is important to have -- even inescapable for Arabic-script piblishing.

Perhaps others who use Arabic-script or Indic, etc., can chime in.. Am hopeful 
that we can figure something out!

Best wishes
Idris
--
Idris Samawi Hamid, Professor
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 / 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: \underbar in head

2023-09-21 Thread jbf
So clearly I would need to upgrade my version. It does not work with 
what I have at the moment. Thank you.


Julian

On 22/9/23 02:04, Wolfgang Schuster wrote:
I get a line below the chapter title with LMTX and LuaTeX with the 
current ConTeXt version. 

___
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: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hans Hagen

On 9/21/2023 10:53 PM, Hamid,Idris wrote:


-- Original Message --
 From "Hans Hagen" mailto:j.ha...@xs4all.nl>>
To "ntg-context@ntg.nl" 
mailto:ntg-context@ntg.nl>>
Date 9/21/2023 8:52:45 AM
Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner and 
related Unicode control characters

** Caution: EXTERNAL Sender **

On 9/21/2023 3:31 PM, Hamid,Idris wrote:
Dear gang,

Within a font, relevant Unicode control characters such as the zero-width 
joiner usually have symbolic representation, but in printing the symbols are 
usually suppressed, while the effect of each character is maintained.

In some text editors, such as Windows Notepad (Uniscribe), there is the option

"Show Unicode control characters"

which toggles the symbols and keeps the effects.

I seem to recall that ConTeXt has/had a similar mechanism for toggling the 
symbols for Unicode control characters but cannot find it.

Does anyone know or recall where the symbol-toggling mechanism is?
If not, what would be the simplest way to implement it?

Here is a MWE (note that the three control chars might be invisible in your 
email client):

==
\startTEXpage[offset=1em]
\definedfont[almfixed at 14pt]
ZWJ: ‌

ZWNJ: ‍

NBSP:
\stopTEXpage
==

In Notepad, all three control characters can be turned on or off at once.
In Scintilla, only the NBSP appears and there is no option to toggle.
In ConTeXt, ZWJ and ZWJ appear as symbols, but NBSP does not.

Thank you in advance for your guidance.
\enabletrackers[typesetters.nbsp]

Many thanks, Hans. The method appears to work only for nbsp, not zwj etc. Here 
is the updated MWE:

===
\startTEXpage[offset=1em]
\disabletrackers[typesetters.directions]
\disabletrackers[typesetters.zwj]
\disabletrackers[typesetters.zwnj]
\disabletrackers[typesetters.nbsp]
\definedfont[almfixed at 14pt]
ZWJ: ‌
ZWNJ: ‍
NBSP:
\stopTEXpage
===

See attached, please advise.
joiners are part of replacement etc and can come and go ... they are 
characters (we could visualize them but one never knows for sure if one 
sees them)


nbsp are spaces and become glue that we can trace reliable in the node list

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: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris

-- Original Message --
From "Hans Hagen" mailto:j.ha...@xs4all.nl>>
To "ntg-context@ntg.nl" 
mailto:ntg-context@ntg.nl>>
Date 9/21/2023 8:52:45 AM
Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner and 
related Unicode control characters

** Caution: EXTERNAL Sender **

On 9/21/2023 3:31 PM, Hamid,Idris wrote:
Dear gang,

Within a font, relevant Unicode control characters such as the zero-width 
joiner usually have symbolic representation, but in printing the symbols are 
usually suppressed, while the effect of each character is maintained.

In some text editors, such as Windows Notepad (Uniscribe), there is the option

"Show Unicode control characters"

which toggles the symbols and keeps the effects.

I seem to recall that ConTeXt has/had a similar mechanism for toggling the 
symbols for Unicode control characters but cannot find it.

Does anyone know or recall where the symbol-toggling mechanism is?
If not, what would be the simplest way to implement it?

Here is a MWE (note that the three control chars might be invisible in your 
email client):

==
\startTEXpage[offset=1em]
\definedfont[almfixed at 14pt]
ZWJ: ‌

ZWNJ: ‍

NBSP:
\stopTEXpage
==

In Notepad, all three control characters can be turned on or off at once.
In Scintilla, only the NBSP appears and there is no option to toggle.
In ConTeXt, ZWJ and ZWJ appear as symbols, but NBSP does not.

Thank you in advance for your guidance.
\enabletrackers[typesetters.nbsp]

Many thanks, Hans. The method appears to work only for nbsp, not zwj etc. Here 
is the updated MWE:

===
\startTEXpage[offset=1em]
\disabletrackers[typesetters.directions]
\disabletrackers[typesetters.zwj]
\disabletrackers[typesetters.zwnj]
\disabletrackers[typesetters.nbsp]
\definedfont[almfixed at 14pt]
ZWJ: ‌
ZWNJ: ‍
NBSP:
\stopTEXpage
===

See attached, please advise.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523


test-zwj.pdf
Description: test-zwj.pdf
___
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: stackrel in context?

2023-09-21 Thread Hans Hagen

On 9/21/2023 10:26 PM, Aditya Mahajan wrote:

On Thu, 21 Sep 2023, Mikael Sundqvist wrote:


Nice with offset=auto. It is not clear to me what the intent/meaning
is of the original example, but one can also try the 23DC (can extend
as \overparent):


https://tex.stackexchange.com/questions/128625/how-to-put-smallsmile-or-smallfrown-on-top-of-a-letter

I guess, some book/paper somewhere introduced it as an accent, and now others 
follow the same style.
and then someone (likely non-math-aware) able to make a case for getting 
it into unicode where it disappears in the avelange of weird symbols


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: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Mikael Sundqvist wrote:

> Nice with offset=auto. It is not clear to me what the intent/meaning
> is of the original example, but one can also try the 23DC (can extend
> as \overparent):

https://tex.stackexchange.com/questions/128625/how-to-put-smallsmile-or-smallfrown-on-top-of-a-letter

I guess, some book/paper somewhere introduced it as an accent, and now others 
follow the same style.

Aditya
___
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: stackrel in context?

2023-09-21 Thread Mikael Sundqvist
Hi,

On Thu, Sep 21, 2023 at 4:34 PM Hans Hagen  wrote:
>
> On 9/21/2023 2:40 PM, Aditya Mahajan wrote:
> > On Thu, 21 Sep 2023, Hans Hagen wrote:
> >
> >> a teaser for Aditya:
> >>
> >> \definemathstackers[toprel][top][mathclass=\mathrelationcode]
> >> \definemathstackers[topbin][top][mathclass=\mathbinarycode]
> >>
> >> \definemathextensible[toprel][frownedupon]["2322]
> >> \definemathextensible[topbin][frowned]["2322]
> >>
> >> \starttext
> >>  $x \frownedupon{4} y + \frowned{!} z = 10$
> >> \stoptext
> >
> > Interesting, but I think that the OP wanted to use \frown as an accent,
> \definemathaccent[topfake][top][offset=auto]
>
> \definemathtopaccent[topfake][frowned]["2322]
>
> \starttext
>  $ x + \frowned{4} = 10$
> \stoptext
>
> when you add in math-acc the offset option after the alignsymbol option
>
> \ifcstok{\mathaccentparameter\c!alignsymbol}\v!yes
>   \s!nooverflow\space
> \fi
> \ifcstok{\mathaccentparameter\c!offset}\v!auto
>   \s!base\space
> \fi
>
> and someplace
>
> \definesystemconstant {base}
>
> (a patching exercise)
>
> Hans

Nice with offset=auto. It is not clear to me what the intent/meaning
is of the original example, but one can also try the 23DC (can extend
as \overparent):

\definemathtopaccent[topfake][frowned]["2322]
\definemathtopaccent[topfake][Frowned]["23DC]

\starttext
 $ x + \frowned{4} = 10$

 $ x + \Frowned{4} = 10$

 $ x + \Frowned{} = 10$

 $ x + \overparent{4} = 10$

 $ x + \overparent{} = 10$
\stoptext

/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] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual 
they should work.


Hraban


\setuppapersize[A5,landscape]
\useMPlibrary[dum]
\definecolumnset[Two][n=2]

\starttext
\startcolumnset[Two]

\dorecurse{5}{1\recurselevel\samplefile{lorem}\par}

\startplacefigure[location=page,title={my caption}]%
\externalfigure[dummy][width=2\textwidth,height=.95\textheight]%
\stopplacefigure

\dorecurse{5}{2\recurselevel\samplefile{lorem}\par}
\stopcolumnset

\stoptext
___
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] problems with comments

2023-09-21 Thread Henning Hraban Ramm

Hi,
I wanted to use PDF comments to leave questions to the author/editor in 
the correction PDF. Unfortunately, the comment is always empty, 
regardless if \comment{} or \startcomment.


Also, the comment always inserts space into the text, I’d like to avoid 
that; the option "space=no" doesn’t help.


The "author" setting is shown, but as soon as I click on the comment, it 
changes to my user name. (Might depend on the viewer, but I get the same 
behavior from Adobe and Apple.) "title" and "subtitle" settings are 
handled differently by viewers, that doesn’t matter.


"location=inmargin": the symbol is at the edge of the text, but not in 
the margin.


Hraban


\setupinteraction[
  state=start,
]
\setupcomment[
  author=Don,
  location=inmargin,
]
\starttext
\samplefile{knuth}
\comment[author=Me]{Here’s a comment.}
\samplefile{knuth}

\stoptext
___
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: \underbar in head

2023-09-21 Thread Wolfgang Schuster

jbf schrieb am 21.09.2023 um 07:01:

However, Wolfgang, if I do, e.g.

\setuphead[chapter][textcommand={\setbar[underbar]}]

\starttext

\startchapter[title={My title}]

\input ward

\stopchapter

\stoptext

Then I do not get My Title with underline, which is what I want, and nor 
is anything else underlined in 'Ward'.



I get a line below the chapter title with LMTX and LuaTeX with the 
current ConTeXt version.


 begin example
\setuphead
  [chapter]
  [textcommand={\setbar[underbar]}]

\starttext

\startchapter[title={My title}]

\input ward

\stopchapter

\stoptext
 end example

The line is limited to the title because the textcommand key is used to 
set \underbar, when you want a line below the whole chapter content you 
can use the insidesection and aftersection keys.


 begin example
\setuphead
  [chapter]
  [insidesection={\startbar[underbar]},
aftersection={\stopbar}]

\starttext

\startchapter[title={My title}]

\input ward

\stopchapter

\stoptext
 end example

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] units related to paper size

2023-09-21 Thread Pablo Rodriguez
Dear Hans,

I wonder whether it would be possible to have both units for page width
and page height (I guess, pw and ph would be fine).

This would be similar to tw and th.

Many thanks for your help,

Pablo
___
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: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hans Hagen

On 9/21/2023 3:31 PM, Hamid,Idris wrote:

Dear gang,

Within a font, relevant Unicode control characters such as the zero-width 
joiner usually have symbolic representation, but in printing the symbols are 
usually suppressed, while the effect of each character is maintained.

In some text editors, such as Windows Notepad (Uniscribe), there is the option

"Show Unicode control characters"

which toggles the symbols and keeps the effects.

I seem to recall that ConTeXt has/had a similar mechanism for toggling the 
symbols for Unicode control characters but cannot find it.

Does anyone know or recall where the symbol-toggling mechanism is?
If not, what would be the simplest way to implement it?

Here is a MWE (note that the three control chars might be invisible in your 
email client):

==
\startTEXpage[offset=1em]
\definedfont[almfixed at 14pt]
ZWJ: ‌

ZWNJ: ‍

NBSP:
\stopTEXpage
==

In Notepad, all three control characters can be turned on or off at once.
In Scintilla, only the NBSP appears and there is no option to toggle.
In ConTeXt, ZWJ and ZWJ appear as symbols, but NBSP does not.

Thank you in advance for your guidance.

\enabletrackers[typesetters.nbsp]


-
  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: stackrel in context?

2023-09-21 Thread Hans Hagen

On 9/21/2023 2:40 PM, Aditya Mahajan wrote:

On Thu, 21 Sep 2023, Hans Hagen wrote:


a teaser for Aditya:

\definemathstackers[toprel][top][mathclass=\mathrelationcode]
\definemathstackers[topbin][top][mathclass=\mathbinarycode]

\definemathextensible[toprel][frownedupon]["2322]
\definemathextensible[topbin][frowned]["2322]

\starttext
 $x \frownedupon{4} y + \frowned{!} z = 10$
\stoptext


Interesting, but I think that the OP wanted to use \frown as an accent,

\definemathaccent[topfake][top][offset=auto]

\definemathtopaccent[topfake][frowned]["2322]

\starttext
$ x + \frowned{4} = 10$
\stoptext

when you add in math-acc the offset option after the alignsymbol option

   \ifcstok{\mathaccentparameter\c!alignsymbol}\v!yes
 \s!nooverflow\space
   \fi
   \ifcstok{\mathaccentparameter\c!offset}\v!auto
 \s!base\space
   \fi

and someplace

\definesystemconstant {base}

(a patching exercise)

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] Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
Dear gang,

Within a font, relevant Unicode control characters such as the zero-width 
joiner usually have symbolic representation, but in printing the symbols are 
usually suppressed, while the effect of each character is maintained.

In some text editors, such as Windows Notepad (Uniscribe), there is the option

"Show Unicode control characters"

which toggles the symbols and keeps the effects.

I seem to recall that ConTeXt has/had a similar mechanism for toggling the 
symbols for Unicode control characters but cannot find it.

Does anyone know or recall where the symbol-toggling mechanism is?
If not, what would be the simplest way to implement it?

Here is a MWE (note that the three control chars might be invisible in your 
email client):

==
\startTEXpage[offset=1em]
\definedfont[almfixed at 14pt]
ZWJ: ‌

ZWNJ: ‍

NBSP:
\stopTEXpage
==

In Notepad, all three control characters can be turned on or off at once.
In Scintilla, only the NBSP appears and there is no option to toggle.
In ConTeXt, ZWJ and ZWJ appear as symbols, but NBSP does not.

Thank you in advance for your guidance.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
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 / 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: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Hans Hagen wrote:

> a teaser for Aditya:
> 
> \definemathstackers[toprel][top][mathclass=\mathrelationcode]
> \definemathstackers[topbin][top][mathclass=\mathbinarycode]
> 
> \definemathextensible[toprel][frownedupon]["2322]
> \definemathextensible[topbin][frowned]["2322]
> 
> \starttext
> $x \frownedupon{4} y + \frowned{!} z = 10$
> \stoptext

Interesting, but I think that the OP wanted to use \frown as an accent, 

Aditya
___
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: stackrel in context?

2023-09-21 Thread Hans Hagen via ntg-context

On 9/21/2023 11:21 AM, Aditya Mahajan wrote:

On Thu, 21 Sep 2023, Xavier B. wrote:


Hi,

I want to write:

$0,00\stackrel{\smallfrown}{4}$

like latex 
[https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin]

but context LMTX does not recognize stackrel

What can I do?


\stackrel is defined in context (with almost the same definition as latex). You 
get an error because \smallfrown is not defined.

a teaser for Aditya:

\definemathstackers[toprel][top][mathclass=\mathrelationcode]
\definemathstackers[topbin][top][mathclass=\mathbinarycode]

\definemathextensible[toprel][frownedupon]["2322]
\definemathextensible[topbin][frowned]["2322]

\starttext
$x \frownedupon{4} y + \frowned{!} z = 10$
\stoptext


-
  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: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Xavier B. wrote:

> Hi,
> 
> I want to write:
> 
> $0,00\stackrel{\smallfrown}{4}$
> 
> like latex 
> [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin]
> 
> but context LMTX does not recognize stackrel
> 
> What can I do?

\stackrel is defined in context (with almost the same definition as latex). You 
get an error because \smallfrown is not defined. 

Aditya
___
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] stackrel in context?

2023-09-21 Thread Xavier B.
Hi,

I want to write:

$0,00\stackrel{\smallfrown}{4}$

like latex 
[https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin]

but context LMTX does not recognize stackrel

What can I do?

Thanks in advance,
Xavier

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