[NTG-context] Re: expanded doif's

2024-06-16 Thread Wolfgang Schuster

Hans van der Meer via ntg-context schrieb am 16.06.2024 um 22:29:

I  remember there was an incantation to work with expanded doif's etc.
In this case I need \doifelsedefined{ARG} with ARG expanded.
I lost the exact spelling of the command and dldn't find it in the 
garden.

What was it?


Can you provide a example where you have problems with \doifdefined etc.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] expanded doif's

2024-06-16 Thread Hans van der Meer via ntg-context
I  remember there was an incantation to work with expanded doif's etc. 
In this case I need \doifelsedefined{ARG} with ARG expanded.
I lost the exact spelling of the command and dldn't find it in the garden. 
What was it?

yours sincerely
dr. Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: contextwiki what is going on?

2024-06-16 Thread Hans van der Meer via ntg-context
Mysterious: loading once explicitely of the full URL 
https://wiki.contextgarden.net/Main_Page remedied the bookmark. One of the 
riddles of computing, I fear.

yours sincerely
dr. Hans van der Meer



> On 16 Jun 2024, at 22:00, Hans van der Meer via ntg-context 
>  wrote:
> 
> Today I find on my Mac the following alert when browsing 
> wiki.contextgarden.net 
> 
>   Do you want to allow downloads on “wiki.contextgarden.net”?
> 
> instead of the home page.
> 
> Since I changed nothing in my system, no preferences changes, no system 
> update, no security settings, this behaviour deviates from the previously 
> prompt loading of the home page.
> 
> What is happening? Is the site hacked? Or was there a change on the server?
> I do not want to allow downloads just to lookup something in the garden.
> 
> yours sincerely
> dr. Hans van der Meer
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: contextwiki what is going on?

2024-06-16 Thread Henning Hraban Ramm

Am 16.06.24 um 22:00 schrieb Hans van der Meer via ntg-context:
Today I find on my Mac the following alert when browsing 
wiki.contextgarden.net 


Do you want to allow downloads on “wiki.contextgarden.net”?

instead of the home page.


I don't see any problems, the start page hasn’t been changed since April 
24th.


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] contextwiki what is going on?

2024-06-16 Thread Hans van der Meer via ntg-context
Today I find on my Mac the following alert when browsing wiki.contextgarden.net 


Do you want to allow downloads on “wiki.contextgarden.net”?

instead of the home page.

Since I changed nothing in my system, no preferences changes, no system update, 
no security settings, this behaviour deviates from the previously prompt 
loading of the home page.

What is happening? Is the site hacked? Or was there a change on the server?
I do not want to allow downloads just to lookup something in the garden.

yours sincerely
dr. Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-06-16 Thread Cron Daemon
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-lmt.zip
 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/mathincontext-paper.pdf
 general/manuals/mathincontext-screen.pdf
 
 sent 216,676 bytes  received 57,479,551 bytes  3,496,741.03 bytes/sec
 total size is 617,016,992  speedup is 10.69


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-06-16.20
271321198   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-16.20/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-16.20/current
398070611   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-16.20
398070611   total
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math manual

2024-06-16 Thread Wolfgang Schuster

skyhorse--- via ntg-context schrieb am 16.06.2024 um 18:59:

Mikael Sundqvist  wrote:

./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-screen.pdf
./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-paper.pdf



Sorry about my locational ignorance, but where can I view this document?

I only have  - math-mkiv.pdf
 - math-tweaks.pdf
 in my dir:
/opt/context-lmtx/tex/texmf-context/doc/context/documents/general/manuals


Can you please provide me with the URL to the directory?


You need at least version 2024.06.14 to get the manuals, if they are 
missing on your system the installed context version is tool old.


Another way to get the manuals is from the Pragma website:

- https://www.pragma-ade.com/general/manuals/mathincontext-paper.pdf
- https://www.pragma-ade.com/general/manuals/mathincontext-screen.pdf

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math manual

2024-06-16 Thread Jethro Djan
Hi,

On Sun, 16 Jun 2024 at 5:13 PM, skyhorse--- via ntg-context <
ntg-context@ntg.nl> wrote:

>
> Mikael Sundqvist  wrote:
> >
> >
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-screen.pdf
> >
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-paper.pdf
> >
>

> Sorry about my locational ignorance, but where can I view this document?
>

I think if you update to the latest using
sh install.sh
once you are in your ConTeXt directory, you should find it there where
Mikael says it is.

Jethro

>
> I only have  - math-mkiv.pdf
>  - math-tweaks.pdf
> in my dir:
> /opt/context-lmtx/tex/texmf-context/doc/context/documents/general/manuals
>
>
> Can you please provide me with the URL to the directory?
>
> Thank you
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math manual

2024-06-16 Thread skyhorse--- via ntg-context


Mikael Sundqvist  wrote:
>
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-screen.pdf
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-paper.pdf
>


Sorry about my locational ignorance, but where can I view this document?

I only have  - math-mkiv.pdf
 - math-tweaks.pdf
in my dir:
/opt/context-lmtx/tex/texmf-context/doc/context/documents/general/manuals


Can you please provide me with the URL to the directory?

Thank you
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Faulty PDF output files after updating to version 2024.06.14

2024-06-16 Thread Ralph

Hi,


while trying out the new version of ConTeXt LMTX (2024.06.14 09:18) I 
encountered some problems related to the PDF output files.


First, I tried to print a single page of the excellent new math manual 
(many thanks to everyone involved in creating it, it’s great for 
beginners like me and surely for experienced users too), but I noticed 
that all of the extensibles in the formulas (like the bar in \frac, 
\sqrt, long integral signs, and probably more) have disappeared. 
Everything else was printed correctly.


After investigating, I found out that Okular on Linux converts the PDF 
file to PostScript before printing (at least on my system), and I was 
able to replicate this behavior by converting it manually to PostScript 
with Poppler (pdftops in.pdf out.ps) or Ghostscript (pdf2ps in.pdf out.ps).


Printing from Firefox was not affected for me as it did not convert to 
PostScript.


I was unable to reproduce this with my own documents (created with 
ConTeXt LMTX 2024.05.31 18:50), so I decided to try this with the new 
version. And with it, that was indeed reproducible.


To ensure that this is the PDF’s fault, I decided to try this on Windows 
with Adobe Acrobat Reader on a different Computer with another fresh 
installation of ConTeXt. But it wasn’t any better:


Adobe Acrobat Reader displayed two different error messages when trying 
to scroll through or zoom in on the math manual:
1. “An error exists on this page. Acrobat may not display the page 
correctly. Please contact the person who created the PDF document to 
correct the problem.”

2. “There was an error processing a page. A number is out of range.”
Sometimes the first one is shown, sometimes the second one.

Additionally, some parts of the manual were blank (they were displayed 
correctly in Okular, Firefox, and many more viewers), I suspect those 
who contain extensibles in formulas. Following example leads to the same 
behaviour:


\setuppapersize[S33]    % Just to make page smaller
\setupbodyfont[modern, 11pt]
\starttext
Hello.
\startformula
\frac{a^2 + b^2}{1} = c^2
\stopformula
\page
Hello.
\startformula
a^2 + b^2 = c^2
\stopformula
\stoptext

The first page is empty in Acrobat Reader, whereas it’s displayed 
correctly in all other PDF viewers I tried. But again, when converting 
to PostScript, the fraction bar vanishes. The second page is fine.


I attached the faulty example.pdf file and some screenshots of it opened 
in different PDF viewers, and of the math manual. The screenshot of the 
math manual opened in Acrobat Reader shows that the second half of the 
page is completely gone. example_pdftops-ps2pdf.pdf is example.pdf 
converted to PostScript with Poppler and then converted to PDF again 
with Ghostscript (attaching the PostScript file isn’t possible because 
of file size). Opened in Okular or other Poppler based viewers you’ll 
see a dot instead of the fraction bar (which gets infinitely smaller 
while zooming-in), and openend in Firefox, MuPDF or Acrobat Reader 
you’ll see a cut off bar.


One last thing, for some reason “\italiansqrt” on page 52 of the math 
manual is converted perfectly fine to PostScript (at least it looks right).


Please let me know if you would like me to provide more information.


Best,
Ralph


example.pdf
Description: Adobe PDF document


example_pdftops-ps2pdf.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-16 Thread Bruce Horrocks


> On 15 Jun 2024, at 22:20, Michael Guravage  wrote:
> 
> Bruce,
> 
> Yes, I remember encountering this problem. The two files you need are: 
> sun-MP.tex and moons-MP.tex. I don't recall where I found them so I've 
> attached them below. Drop them into their respective pocketdiary directories 
> Solar and Moonphase and run mtxrun --generate. 
> 
> Your suggestion of the Day key was the first thing I tried myself. 
> Unfortunately, it has no effect.
> 
> Thanks for thinking along.

The month table layout is hard-coded in line 515 of file t-pocketdiary.lua

The code that decides in which cell to put the '1' of the first day is 
calculated elsewhere and not passed as a parameter.

That rules out a simple fix - you'd need to add a "weekstart" or similar 
parameter and track/act on it in various parts of the code.

—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math manual

2024-06-16 Thread Hans Hagen

On 6/16/2024 12:39 PM, Fabrice Couvreur wrote:

Hi,
Thank you for this document which will help many people, including me. 
Quick question : this document seems to have been written in the Pagella 
font : is this correct ? Why this choice : Personal ? The most complete 
and nice font ?

Indeed.

Cambria is the reference of course but Pagella is free and we like it. 
We could have gone Lucida but it's not free either (but rather cheap and 
we fixed some in the process). Euler is also nice. We also had Bonum for 
a while (a bit bolder). Of course most fonts share alphabets. The Xits 
font is quite complete but kind of standard boring. We definitely will 
never for a can-of-worms sans for a document like this.


That said: all fonts needed tweaks, some more than others, because there 
is the inconsistent curious mix of font parameters, traditional and 
opentype properties etc to deal with, much of which we published about 
in e.g. TB in the process (as well as in documents in the 
distribuition). There ars also math companion fonts in the distribition 
that fix consistency issues in fonts (we consider most to be frozen).


Concerning complete: many unicode math characters are dubious and we 
wonder what they're used for, if at all while some other handy math 
symbols are missing.


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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math manual

2024-06-16 Thread Fabrice Couvreur
Hi,
Thank you for this document which will help many people, including me.
Quick question : this document seems to have been written in the Pagella
font : is this correct ? Why this choice : Personal ? The most complete and
nice font ?
Fabrice

Le sam. 15 juin 2024 à 17:50, Jeong Dal via ntg-context 
a écrit :

> Dear Hans and Mikael,
>
> I appreciate for all the efforts to make a nicer math output and for the
> math manual.
> I hope that a few problems in math are gone away in this new version.
>
> The math writing in ConTeXt was getting better and better to this point.
> I’ll learn many things from this manual.
>
> Thanks again and have a nice weekend.
>
> Best regards,
>
> Dalyoung
>
>
>
> 2024. 6. 15. 오전 6:22, Otared Kavian  작성:
>
> Hi Hans and Mikael,
>
> I just could update to the latest ConTeXt (after afew hassles with xattr
> on MacOS…), and went straight to find mathincontext-screen.pdf.
> Thank you so much for this superbe manual! It is really wonderful in all
> aspects!
>
> As Aditya says, there is no excuse for mathematicians not to use ConTeXt
> (apart the usual laziness in many of my colleagues…).
>
> Best regards: Otared
>
> On 14 Jun 2024, at 09:46, Mikael Sundqvist  wrote:
>
> Hi!
>
> Hans just uploaded a new version. I am not writing about the news in
> that version (although there are some fun things!), but rather to
> announce that the math manual is finally included.
>
> We have been working on and off since 2021 on math and therefore also
> on this document, and we finally believe that both math and the
> document are now in a state that should be sufficiently useful and not
> too confusing. You can find a screen and a paper version:
>
>
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-screen.pdf
>
> ./tex/texmf-context/doc/context/documents/general/manuals/mathincontext-paper.pdf
>
> The versions are generated from the same tex files, so the content
> (except for some chapter pages only available in the screen version)
> should be the same.
>
> We hope that this will be useful for all of you who use math in your
> documents. If you have any questions, find any errors, or miss
> something, please let us know. We consider the document not to be
> finished, so there will be updates. Also, we will also at some point
> include the tex files, but that will have to wait a bit.
>
> /Hans and Mikael
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] \xmlinlineverbatim not inline

2024-06-16 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \startbuffer[demo]
  
text
  
  \stopbuffer

  \startxmlsetups xml:sample
\xmlsetsetup{#1}{text}{xml:*}
  \stopxmlsetups

  \xmlregistersetup{xml:sample}

  \startxmlsetups xml:text
block: a \xmlverbatim{#1} b\\
inline: a \xmlinlineverbatim{#1} b\\
block: a \xmlprettyprint{#1}{xml} b\\
inline: a \xmlinlineprettyprint{#1}{xml} b
  \stopxmlsetups

  \startxmlsetups xml:element
\tt\xmlatt{#1}{class}
  \stopxmlsetups

  \starttext
\xmlprocessbuffer{main}{demo}{}
  \stoptext

With latest from 2024.06.14 09:18, \xmlinlineverbatim doesn’t display
inline text, but only block text (both with LMTX and MkIV).

Could anyone confirm the issue?

Many thanks for your help in advance,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___