[NTG-context] \setupmathematics oddity

2022-11-18 Thread Alan Bowen via ntg-context
The following
\setupmathematics[autopunctuation={all,semicolon}]
%\setupmathematics[autopunctuation={all, semicolon}]
%\setupmathematics[autopunctuation={all,semicolon,colon}]

\starttext
\startformula
0,0;2,0,35,17,40,41\textdegree{} \cdot 365;15 \cdot 40 =
2,9;23,14\textdegree{}.
\stopformula
\stoptext

works as it should (no space after the “;” or the “,”).

With the second and third versions of \setupmathematics there is an
unwanted space after each punctuation mark.

Alan
___
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] annotated equations

2022-11-18 Thread Hans Hagen via ntg-context

On 11/18/2022 5:25 PM, Aditya Mahajan via ntg-context wrote:

On Thu, 17 Nov 2022, Henning Hraban Ramm via ntg-context wrote:


Here’s an interesting example for annotated equations, done with LaTeX/TikZ:
https://mastodon.social/@sibin/109349703357749846

I guess something similar is possible with node anchors in ConTeXt/MetaPost?


Yes, this is possible using node anchors and \hpos etc. The interface is 
slightly cumbersome, mainly because you have to make sure that anchors are 
unique.

I sometimes use such constructs in my presentations, but not often enough to 
build a nice interface as the latex package provides.
eventually there will be something as part of the math upsate (we also 
have some stuff for matrices already) but only documenting can make if 
final (as then we check consistency); the problem is not the interface 
but to *not* mess up the math spacing that we want to be 'perfect' if 
such features are used without the need to interfere


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
___


Re: [NTG-context] annotated equations

2022-11-18 Thread Aditya Mahajan via ntg-context
On Thu, 17 Nov 2022, Henning Hraban Ramm via ntg-context wrote:

> Here’s an interesting example for annotated equations, done with LaTeX/TikZ:
> https://mastodon.social/@sibin/109349703357749846
> 
> I guess something similar is possible with node anchors in ConTeXt/MetaPost?

Yes, this is possible using node anchors and \hpos etc. The interface is 
slightly cumbersome, mainly because you have to make sure that anchors are 
unique. 

I sometimes use such constructs in my presentations, but not often enough to 
build a nice interface as the latex package provides. 

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
___


Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Pablo Rodriguez via ntg-context
On 11/18/22 15:52, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 15.11.2022 um 16:06:
>> [...]
>> It looks like when --environment is used, ConTeXt assumes that the main
>> source only contains text. Which makes sense (at least, to me).
> 
> The reason why this does work has nothing to do with the environment
> file, the only  thing which is responsible to get a PDF with output
> is the \setupbodyfont line.

Many thanks for your explanation, Wolfgang.

Now it is perfectly clear to me why this worked.

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
___


Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 15.11.2022 um 16:06:

On 11/15/22 13:22, Denis Maier via ntg-context wrote:

Hi,

if I process an XML buffer, I’ve noticed I need to wrap the
\xmlprocessbuffer in a \starttext ... \stoptext pair.
[]
However, if I have the XML and the setups in dedicated files, there
seems to be no need for \starttext ... \stoptext.
[]
Therefore my question:

Does the use –environment automatically wrap the processed file in
\starttext ... stoptext ?

Hi Denis,

try a source file with this contents:

   \ConTeXt\ is great.

with the following environment:

   \setuppapersize[A6]
   \setupbodyfont[pagella]

It looks like when --environment is used, ConTeXt assumes that the main
source only contains text. Which makes sense (at least, to me).


The reason why this does work has nothing to do with the environment 
file, the only
thing which is responsible to get a PDF with output is the 
\setupbodyfont line.



Better examples are

 begin example 1
\CONTEXT\ is great.
 end example 1

and

 begin example 2
\setupbodyfont[modern]

\CONTEXT\ is great.
 begin example 2

where the output of the first example is broken.


To ensure the document exists in a proper manner ConTeXt inserts \stoptext
at the end of the document but there is never a \starttext inserted at 
any point

when you process a regular tex file.

You should also notice a message like

    system  > invalid \starttext ... \stoptext structure

on the terminal.

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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-11-18 Thread Cron Daemon via ntg-context
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 general/manuals/
 general/manuals/math-tweaks.pdf
 
 sent 101,435 bytes  received 20,386,821 bytes  3,152,039.38 bytes/sec
 total size is 449,010,176  speedup is 21.92


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14
172107841   
/var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14/current
18956262
/var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14/alpha
126707516   
/var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14/beta
444521032   
/var/www/aanhet.net/context//htdocs/archives/context-2022-11-18.14
444521032   total
___
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
___