Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Duncan Hothersall via ntg-context
You could try using \writebetweenlist hooked into \setuphead[chapter]?
Something like (untested):

\setuphead[chapter][before={\writebetweenlist[figure][location=here]{\blank}}]

(Sorry, can't currently test this.)

Duncan

On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> How can I set up \placelistoffigures and \placelistoftables that figures
> and tables are grouped by chapter, i.e. separated by a blank line between
> chapters (see example below)?
>
> Thanks in advance for your help!
>
> Best Werner
>
>
> (Default:)
> Figures
>
> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>
> (Wanted:)
> Figures
>
> 1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
>
> 2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
> 2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
>
> 3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
> 3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
> 3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
>
> ___
> 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] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Werner Schmidt via ntg-context
Hi,

How can I set up \placelistoffigures and \placelistoftables that figures and 
tables are grouped by chapter, i.e. separated by a blank line between chapters 
(see example below)?

Thanks in advance for your help!

Best Werner


(Default:)
Figures

1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2
2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3
3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4

(Wanted:)
Figures

1.1 Caption Chapter01-Section01-01 . . . . . . . . . . . . . . . . . 2

2.1 Caption Chapter02-Section01-01 . . . . . . . . . . . . . . . . . 3
2.2 Caption Chapter02-Section01-02 . . . . . . . . . . . . . . . . . 3

3.1 Caption Chapter03-Section01-01 . . . . . . . . . . . . . . . . . 4
3.2 Caption Chapter03-Section01-02 . . . . . . . . . . . . . . . . . 4
3.3 Caption Chapter03-Section02-03 . . . . . . . . . . . . . . . . . 4
___
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: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Hi Aditya,

Nevermind, I got it to work. Thanks!

Amine

On Thu, 31 Mar 2022 at 07:21, A A  wrote:

> Hi Aditya,
>
> Sorry, but I'm still getting an error:
>
> *runtime error : input file 'test/test.tex' is not found, quitting*
>
> Amine
>
> On Thu, 31 Mar 2022 at 00:46, Aditya Mahajan via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> On Wed, 30 Mar 2022, A A via ntg-context wrote:
>> > On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
>> > wolfgang.schuster.li...@gmail.com> wrote:
>> >
>> > > A A via ntg-context schrieb am 30.03.2022 um 18:24:
>> > > > Dear All,
>> > > >
>> > > > I would like to ask whether there exists a command line option to
>> the
>> > > > context executable which would allow me to specify the directory in
>> > > > which I would like my output to be dumped.
>> > > >
>> > > > I have noticed that if I call the executable outside the directory
>> in
>> > > > which the .tex file resides, my supporting files (and resulting pdf)
>> > > > are dumped outside the directory in which the .tex file is located.
>> > >
>> > > context --runpath=... filename
>> >
>> >- I tried the following *context --runpath=test test/test.tex * but
>> it
>> >still dumps all the output (.log, .pdf and .tuc) into my current
>> directory.
>> >I would like for it to get dumped inside the *test *directory...
>>
>> mtxrun --path=test --script context test.tex
>>
>> (note that filename has to be relative to the test/ directory not CWD)
>>
>> 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
>>
>> ___
>>
>
___
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: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Hi Aditya,

Sorry, but I'm still getting an error:

*runtime error : input file 'test/test.tex' is not found, quitting*

Amine

On Thu, 31 Mar 2022 at 00:46, Aditya Mahajan via ntg-context <
ntg-context@ntg.nl> wrote:

> On Wed, 30 Mar 2022, A A via ntg-context wrote:
> > On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
> > wolfgang.schuster.li...@gmail.com> wrote:
> >
> > > A A via ntg-context schrieb am 30.03.2022 um 18:24:
> > > > Dear All,
> > > >
> > > > I would like to ask whether there exists a command line option to the
> > > > context executable which would allow me to specify the directory in
> > > > which I would like my output to be dumped.
> > > >
> > > > I have noticed that if I call the executable outside the directory in
> > > > which the .tex file resides, my supporting files (and resulting pdf)
> > > > are dumped outside the directory in which the .tex file is located.
> > >
> > > context --runpath=... filename
> >
> >- I tried the following *context --runpath=test test/test.tex * but it
> >still dumps all the output (.log, .pdf and .tuc) into my current
> directory.
> >I would like for it to get dumped inside the *test *directory...
>
> mtxrun --path=test --script context test.tex
>
> (note that filename has to be relative to the test/ directory not CWD)
>
> 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
>
> ___
>
___
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] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
> Is there a simple way to accomplish this?

Aside from the other solution using makeup, a simpler way might be to just use 
the 'page' option for positioning the float. The following MWE achieves the 
same result as that with the makeup:

  \setuppagenumbering[alternative=doublesided]
  \setupexternalfigures[location=default]

  \setupheadertexts[]
  \setupheadertexts[chapter][\date]
  \setupfootertexts[pagenumber]

  \starttext
  \startchapter [title={Chapter title}]
  \dorecurse{2}{\samplefile{knuth}}
  \placefigure[page]{a floating cow}{\externalfigure[cow]} 
  \dorecurse{4}{\samplefile{knuth}}
  \blank

  \dorecurse{2}{\samplefile{tufte}}
  \stopchapter
  \stoptext

  Sreeram


___
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] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
On Thursday, March 31, 2022 3:11 AM Michael Urban via ntg-context wrote:
> Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
> to the example, there is a blank page before the makeup page, and an 
> unnumbered blank page after.  If I add doublesided=no to the
> \setupmakeup options, the unnumbered blank page is not there, but there is 
> still a blank page before.  It is seemingly forcing
> a right-hand page for some reason I do not understand.

That is an easy fix: \setupmakeup, just like \setuphead, has a 'page' key which 
controls this. So, using the below setup for the 'FloatPage' makeup you can get 
rid of the unwanted page:

  \setupmakeup
[FloatPage]
[ headerstate=normal,
pagestate=start,
align=middle,
  footerstate=normal,
page=no,
  doublesided=no]

  Sreeram


___
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: command line arguments to specify output directory

2022-03-30 Thread Aditya Mahajan via ntg-context
On Wed, 30 Mar 2022, A A via ntg-context wrote:
> On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
> 
> > A A via ntg-context schrieb am 30.03.2022 um 18:24:
> > > Dear All,
> > >
> > > I would like to ask whether there exists a command line option to the
> > > context executable which would allow me to specify the directory in
> > > which I would like my output to be dumped.
> > >
> > > I have noticed that if I call the executable outside the directory in
> > > which the .tex file resides, my supporting files (and resulting pdf)
> > > are dumped outside the directory in which the .tex file is located.
> >
> > context --runpath=... filename
> 
>- I tried the following *context --runpath=test test/test.tex * but it
>still dumps all the output (.log, .pdf and .tuc) into my current directory.
>I would like for it to get dumped inside the *test *directory...

mtxrun --path=test --script context test.tex

(note that filename has to be relative to the test/ directory not CWD)

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
___


Re: [NTG-context] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

Mike


> On Mar 28, 2022, at 6:37 PM, śrīrāma via ntg-context  
> wrote:
> 
> On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
>> Is there a simple way to accomplish this?
> 
> I suppose you need 'postponing'. See
>  https://wiki.contextgarden.net/Command/startpostponing
> [One can specify a page explicitly, or, more conveniently, an offset]
> 
> First, we define a makeup and enable header, footer and page for it. Then we 
> can put the float inside the makeup and wrap it with 
> \start...\stoppostponing. Here is a MWE:
> 
> %%% start example
>  \setupexternalfigures[location=default]
>  \definemakeup
>[FloatPage]
>  \setupmakeup
>[FloatPage]
>[headerstate=normal,
>   pagestate=start,
>   align=middle,
> footerstate=normal]
> 
>  \setupheadertexts[]
>  \setupheadertexts[chapter][\date]
>  \setupfootertexts[pagenumber]
> 
>  \starttext
>  \startchapter [title={Chapter title}]
>\startpostponing[+1]
>  \startFloatPagemakeup
>  \placefigure{a floating cow}{\externalfigure[cow]}
>  \stopFloatPagemakeup
>\stoppostponing
>  \dorecurse{6}{\samplefile{knuth}}
>  \blank
> 
>  \dorecurse{2}{\samplefile{tufte}}
>  \stopchapter
>  \stoptext
> %%% stop example
> 
> Of course, I think some manual hand-tuning is required (in the final stages 
> of the document) in deciding the right place to put the postponing block and 
> in deciding what offset is best.
> 
> Sreeram
> 
> 
> ___
> 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] Breaking url into multiple lines results in broken link in rendered PDF

2022-03-30 Thread A A via ntg-context
I would like to be able to break up URLs into multiple lines in my
bibliography source file and still get the link to work. Here's what I have
so far:












*\setupinteraction  [state=start]\starttext\useURL  [myUrl]  [
"https://www.g oogle.com "
]\goto{link}[url(myUrl)]\stoptext*

Unfortunately the link does not work. When I *don't* split the URL into
multiple lines, the link works again.

In reality my link is very long and forces uncomfortable line continuation
in my `vim` editor. How can I break up long URLs in my source `.tex` file
and still get the link to work in the resulting pdf?

  [1]:
https://tex.stackexchange.com/questions/638541/line-continuation-in-bib-file-url-for-cleaner-bibliography-code
___
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] Fwd: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Thanks Wolfgang. I have two remarks:

   - That option is not documented and cannot be found when I type *context
   *into my command line and press enter. Do you know why this is?
   - I tried the following *context --runpath=test test/test.tex * but it
   still dumps all the output (.log, .pdf and .tuc) into my current directory.
   I would like for it to get dumped inside the *test *directory...


On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> A A via ntg-context schrieb am 30.03.2022 um 18:24:
> > Dear All,
> >
> > I would like to ask whether there exists a command line option to the
> > context executable which would allow me to specify the directory in
> > which I would like my output to be dumped.
> >
> > I have noticed that if I call the executable outside the directory in
> > which the .tex file resides, my supporting files (and resulting pdf)
> > are dumped outside the directory in which the .tex file is located.
>
> context --runpath=... filename
>
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] command line arguments to specify output directory

2022-03-30 Thread Wolfgang Schuster via ntg-context

A A via ntg-context schrieb am 30.03.2022 um 18:24:

Dear All,

I would like to ask whether there exists a command line option to the 
context executable which would allow me to specify the directory in 
which I would like my output to be dumped.


I have noticed that if I call the executable outside the directory in 
which the .tex file resides, my supporting files (and resulting pdf) 
are dumped outside the directory in which the .tex file is located.


context --runpath=... filename

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


[NTG-context] command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Dear All,

I would like to ask whether there exists a command line option to the
context executable which would allow me to specify the directory in which I
would like my output to be dumped.

I have noticed that if I call the executable outside the directory in which
the .tex file resides, my supporting files (and resulting pdf) are dumped
outside the directory in which the .tex file is located.

Any help would be most welcome. Thanks for your consideration.

Regards,

Amine
___
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] \figuresymbol with underlying hyperlink?

2022-03-30 Thread Hans Hagen via ntg-context

On 3/29/2022 10:48 AM, Steffen Wolfrum via ntg-context wrote:

Unfortunately I have to use it at a heading:
and this gives an error:


\starttext

\define[1]\Link{\goto{\symbol[wingdings 
3][barb1right]}[url(https://#1)]\autoinsertnextspace}

\chapter{a\Link}

text

\stoptext

shouldn't you pass some argument to your \Link macro?



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


Re: [NTG-context] upload

2022-03-30 Thread Otared Kavian via ntg-context
Hi Aditya and Mikael,

Indeed in some situations it is useful to number each equation appearing in 
formulas grouped with \startcases, and one can construct a structure allowing 
this, as in the example below which is not satisfactory. I am sure Hans can 
find a better solution…

Here is a working example:

% begin math-cases-numbered.tex
\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\definereferenceformat[informula]  [left=(,right=),text=]
\def\eqref#1{\informula[eq:#1]} 

\starttext

Using \type{\startmathfenced} and \type{\startalign} we can number each 
equation, but the left brace is too far from the formula:
\startplaceformula
\startformula
\startmathfenced[cases]
\startalign[n=3,align={1:right,2:left,3:left}]
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR[+]
\NC u \NC = 0 \NC \quad\text{on }\; [0,T]\times\partial\Omega \NR[eq:Dirichlet]
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR[+]
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR[+]
\stopalign
\stopmathfenced
\stopformula
\stopplaceformula
In some situations it is useful to number each equation, for example when we 
want to say:

Indeed we could study the above wave equation with Neumann boundary conditions, 
that is when \eqref{Dirichlet} is replaced with
\startplaceformula[eq:Neumann]
\startformula
{\partial u \over \partial {\bi n} } = 0 \quad \text{on }\; 
[0,T]\times\partial\Omega.
\stopformula
\stopplaceformula

Using \type{\startalignedcases} we cannot number each equation\dots
\startplaceformula
\startformula
\startalignedcases 
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR
\NC u \NC = 0 \NC \quad\text{in }\; [0,T]\times\partial\Omega \NR
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR
\stopalignedcases
\stopformula
\stopplaceformula
\stoptext
% end math-cases-numbered.tex

Best regards: Otared

> On 29 Mar 2022, at 18:08, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Tue, 29 Mar 2022, Mikael Sundqvist via ntg-context wrote:
> 
>> On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian  wrote:
>>> 
>>> Hi Mikael,
>> 
>> Hi Otared,
>> 
>>> 
>>> Thanks for your explanation and the example you sent about 
>>> \definemathsimplealign (I didn’t get immediately that « sesac » in the 
>>> command \startmathfenced[sesac] means « cases » in reverse or mirrored… I 
>>> guess this is a wise and humourous choice by Hans :-) ).
>> 
>> I guess so too :)
>> 
>>> 
>>> Regarding \startcases, it seems that it is still not possible to number 
>>> each equation, but I may be overlooking something. I’ll try a few examples 
>>> and will let you know, as well as Hans.
>> 
>> Hm, but a cases environment does not provide several formulas. This is
>> just one formula:
>> 
>> \startformula
>> |x|=
>> \startcases
>> \NC x \NC x>0\NR
>> \NC 0 \NC x=0\NR
>> \NC -x \NC x<0\NR
>> \stopcases
>> \stopformula
>> 
>> and as such should have (at most) one equation number, right?
> 
> However, some sub-disciplines like to number each case (for example, if you 
> want to refer to one of them in the future).
> 
>> Only Hans knows if it is (easily) doable to add the possibility to add
>> numbers to each three lines.
> 
> In the old implementation, this was tricky (the equation without the equation 
> number should be centered, and the equation number should be flush right). 
> But I think that this should be possible with the new low-level box alignment 
> macros. 
> 
> 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
> ___

___
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] Typesetting unicode characters

2022-03-30 Thread Arthur Rosendahl via ntg-context
On Wed, Mar 30, 2022 at 12:32:11AM -0700, Thangalin via ntg-context wrote:
> An XML document includes the  emoji, as shown in the following snippet:
> 
> 
>   
>   
> 
>   Thumbs up emoji: 

  Try the correct escape sequence :-)  That’s  -- or
equivalently 

Best,

Arthur
___
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] Typesetting unicode characters

2022-03-30 Thread Thangalin via ntg-context
Hi list,

An XML document includes the  emoji, as shown in the following snippet:


  
  

  Thumbs up emoji: 

  

The document is typeset using ConTeXt, but the thumbs up emoji isn't in the
PDF. Neither Noto Emoji nor Open Sans Emoji fonts will render.

Does anyone have a minimal example that shows how to typeset such escaped
entities?

When the emoji is added directly to a document, it works fine:

\definefont [TextFontEmoji] [opensansemoji]

\starttext
  \TextFontEmoji{Thumbs up emoji: }
\stoptext

Is there something special that needs to be set for ConTeXt to interpret
the escaped unicode values as an emoji?

Thank you!
___
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
___