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

2023-03-06 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
 
 sent 101,711 bytes  received 20,296,534 bytes  3,708,771.82 bytes/sec
 total size is 449,532,338  speedup is 22.04


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-03-07.00
122331157   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-07.00/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-07.00/current
249080570   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-07.00
249080570   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
___


Re: [NTG-context] /CropBox overflows /MediaBox

2023-03-06 Thread Hans Hagen via ntg-context

On 3/6/2023 7:02 PM, Pablo Rodriguez via ntg-context wrote:


But I’m afraid that it is wrong to have a /TrimBox larger than the
/MediaBox for the same page.


Afaik the standard permits is to one gets what one asks. I will add some 
checks plus a warning and hopefully not break something.


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] cannot compile with MkIV

2023-03-06 Thread Hans Hagen via ntg-context

On 3/6/2023 7:46 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \starttext
   \null
   \stoptext

Trying to compile it with "context --luatex", I get the error message
copied bellow.

Could anyone confirm that the format file for MkIV (LuaTeX) cannot be
generated with current latest (from today [2023.03.06 14:48])?
hm, looks like we have an older luatex than context expects, i'll check 
it (we probably need to let the builders fetch from the new luatex 
source location)


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] cannot compile with MkIV

2023-03-06 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \starttext
  \null
  \stoptext

Trying to compile it with "context --luatex", I get the error message
copied bellow.

Could anyone confirm that the format file for MkIV (LuaTeX) cannot be
generated with current latest (from today [2023.03.06 14:48])?

Many thanks for your help,

Pablo


lua error   > lua error on line 21 in file
~/context/tex/texmf-context/tex/context/base/mkiv/back-pdf.mkiv:

...ext/tex/texmf-context/tex/context/base/mkiv/lpdf-nod.lua:72: creating
a whatsit requires the subtype number as a second argument
stack traceback:
[C]: in local 'new_node'
...ext/tex/texmf-context/tex/context/base/mkiv/lpdf-nod.lua:72: in
local 'code'
...ext/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:96: in
field 'loadedluacode'
...ext/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in
field 'luafilechunk'
...ext/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:73: in
function 'lua.registercode'
[ctxlua]:1: in main chunk

11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13
14 %D The less there is here, the better. After a decade it is time
to remove the \type
15 %D {\pdf*} ones completely. For the moment I keep them commented
but even that will
16 %D go away.
17
18 \writestatus{loading}{ConTeXt Backend Macros / PDF}
19
20 \registerctxluafile{lpdf-ini}{optimize}
21 >>  \registerctxluafile{lpdf-nod}{}
22 \registerctxluafile{lpdf-eng}{optimize}
23 \registerctxluafile{lpdf-col}{}
24 \registerctxluafile{lpdf-vfc}{}
25 \registerctxluafile{lpdf-xmp}{}
26 \registerctxluafile{lpdf-ano}{}
27 \registerctxluafile{lpdf-res}{}
28 \registerctxluafile{lpdf-mis}{}
29 \registerctxluafile{lpdf-ren}{}
30 \registerctxluafile{lpdf-grp}{}
31 \registerctxluafile{lpdf-wid}{}

resolvers   | formats |
resolvers   | formats | binary path  :
~/context/tex/texmf-linux-64/bin
resolvers   | formats | format path  :
~/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex
resolvers   | formats | luatex engine: luatex
resolvers   | formats | lua startup file :
~/context/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file :
~/context/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv
resolvers   | formats | run time : 1.497 seconds
resolvers   | formats | return value : error
resolvers   | formats |
mtx-context | error, no format found with name: cont-en, aborting
___
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] /CropBox overflows /MediaBox

2023-03-06 Thread Pablo Rodriguez via ntg-context
On 3/2/23 00:20, Hans Hagen wrote:
> On 2/28/2023 6:23 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
> I only see one size. Anyway, attached a fix for the different rounding.

Sorry, Hans, I copied the wrong sample (value for "width" in
"\setupinteractionscreen" should read "fit" instead of "max"):

  \nopdfcompression
  \setupinteractionscreen
[width=fit]
  \setuplayout
[standard]
[backspace=.7\textwidth,
 cutspace=\cutspace,
 width=middle]
  \starttext
  \startmakeup[page]
  \null
  \stopmakeup
  \startmakeup[standard]
  \null
  \stopmakeup
  \stoptext

Here are the boxes (using current latest from today [2023.03.06 14:48]):

  3 0 obj
  [ 0 0 595.275590072 841.88975789 ]
  endobj

  7 0 obj
  [ 0 0 968.199847496 841.88975789 ]
  endobj

Page 1 (object 4) uses object 3 as /CropBox, /MediaBox and /TrimBox.

Page 2 (object 7) uses object 3 as /MediaBox and object 7 as /CropBox
and /TrimBox (I have just discovered it).

I think it is better to avoid having a page with a /CropBox larger than
its /MediaBox.

But I’m afraid that it is wrong to have a /TrimBox larger than the
/MediaBox for the same page.

I hope it is clear now. Sorry for the mistake in copying the wrong sample.

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

2023-03-06 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
 
 sent 101,644 bytes  received 21,301,419 bytes  3,292,778.92 bytes/sec
 total size is 449,530,062  speedup is 21.00


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-03-06.16
122330177   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-06.16/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-06.16/current
249079590   
/var/www/aanhet.net/context//htdocs/archives/context-2023-03-06.16
249079590   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
___


Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
Am Montag, 6. März 2023, 14:34:28 CET schrieb Aditya Mahajan via ntg-context:
> On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:
> 
> > Hi,
> > 
> > I'm trying to use a description environment in conjunction with an
> > itemize with the latest luametatex. Is this supposed to work?
> > 
> > Here is an MWE:
> > ```
> > \definedescription[desc][headstyle=bold]
> > 
> > \starttext
> > Foo
> > 
> > \desc{Some title} Some text
> > \startitemize
> > \item Some item
> > \stopitemize
> > 
> > \stoptext
> 
> Use \startdesc ... \stopdesc
> 
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \startdesc[title={Some title}]
>   Some text
> \startitemize
> \item Some item
> \stopitemize
> \stopdesc
> 
> \stoptext

That worked. Thank you!


signature.asc
Description: This is a digitally signed message part.
___
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] Description together with itemize, luametatex

2023-03-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:

> Hi,
> 
> I'm trying to use a description environment in conjunction with an
> itemize with the latest luametatex. Is this supposed to work?
> 
> Here is an MWE:
> ```
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \desc{Some title} Some text
>   \startitemize
>   \item Some item
>   \stopitemize
> 
> \stoptext

Use \startdesc ... \stopdesc

\definedescription[desc][headstyle=bold]

\starttext
Foo

\startdesc[title={Some title}]
  Some text
\startitemize
\item Some item
\stopitemize
\stopdesc

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


Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Mar 2023, Henning Hraban Ramm via ntg-context wrote:

> Am 06.03.23 um 12:19 schrieb Gerion Entrup via ntg-context:
> > I want to typeset a "Good to know" section that is visually highlighted
> > and can spawn across multiple pages.
> > 
> > In LaTeX this would be possible with the mdframed package. See the
> > attached screenshot for an example how it might look like (it is copied
> > out of page 4: Definition: Inhomogeneous linear of the mdframed
> > documentation:
> > http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf)
> > 
> > I have searched in the wiki and found \defineenumeration:
> > This is near of that what I need. However I explicitly does not need an
> > enumeration (so no number or counter). Also I am not sure if I can set a
> > background and so on.
> > 
> > The other possibility is \defineframedtext. For example this goes much
> > in the direction that I want:
> > \definecolor[gbackground][s=0.98]
> > \defineframedtext[gtk][frame=on,
> > offset=5pt,
> > background=color,
> > width=0.95\textwidth,
> > backgroundcolor=gbackground]
> > 
> > However, there does not seem a possibility to define a title and it
> > seems to not work on multiple pages.
> > 
> > Is there a mix of an enumeration and framedtext that can produce
> > something like in the attached picture?
> 
> If you don’t need an enumeration, then don’t use one.
> 
> Did you try text backgrounds?
> https://wiki.contextgarden.net/TextBackground

As an example, see this article that I had written years ago:

https://www.tug.org/pracjourn/2006-4/mahajan/

The solution environment there is similar to what you want. Most of the code 
there should still work with minor changes.

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] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context

Am 06.03.23 um 12:19 schrieb Gerion Entrup via ntg-context:

I want to typeset a "Good to know" section that is visually highlighted
and can spawn across multiple pages.

In LaTeX this would be possible with the mdframed package. See the
attached screenshot for an example how it might look like (it is copied
out of page 4: Definition: Inhomogeneous linear of the mdframed
documentation:
http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf)

I have searched in the wiki and found \defineenumeration:
This is near of that what I need. However I explicitly does not need an
enumeration (so no number or counter). Also I am not sure if I can set a
background and so on.

The other possibility is \defineframedtext. For example this goes much
in the direction that I want:
\definecolor[gbackground][s=0.98]
\defineframedtext[gtk][frame=on,
offset=5pt,
background=color,
width=0.95\textwidth,
backgroundcolor=gbackground]

However, there does not seem a possibility to define a title and it
seems to not work on multiple pages.

Is there a mix of an enumeration and framedtext that can produce
something like in the attached picture?


If you don’t need an enumeration, then don’t use one.

Did you try text backgrounds?
https://wiki.contextgarden.net/TextBackground

And then use the plethora of \framed options.

Hraban
___
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] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Gerion Entrup via ntg-context
Hi,

I want to typeset a "Good to know" section that is visually highlighted
and can spawn across multiple pages.

In LaTeX this would be possible with the mdframed package. See the
attached screenshot for an example how it might look like (it is copied
out of page 4: Definition: Inhomogeneous linear of the mdframed
documentation:
http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf)

I have searched in the wiki and found \defineenumeration:
This is near of that what I need. However I explicitly does not need an
enumeration (so no number or counter). Also I am not sure if I can set a
background and so on.

The other possibility is \defineframedtext. For example this goes much
in the direction that I want:
\definecolor[gbackground][s=0.98]
\defineframedtext[gtk][frame=on,
   offset=5pt,
   background=color,
   width=0.95\textwidth,
   backgroundcolor=gbackground]

However, there does not seem a possibility to define a title and it
seems to not work on multiple pages.

Is there a mix of an enumeration and framedtext that can produce
something like in the attached picture?

Best,
Gerion


signature.asc
Description: This is a digitally signed message part.
___
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] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
Hi,

I'm trying to use a description environment in conjunction with an
itemize with the latest luametatex. Is this supposed to work?

Here is an MWE:
```
\definedescription[desc][headstyle=bold]

\starttext
Foo

\desc{Some title} Some text
\startitemize
\item Some item
\stopitemize

\stoptext
```

This currently fails with:
```
resolvers   | formats | executing runner 'run luametatex format': 
/home/gerion/context/tex/texmf-linux-64/bin/luametatex --jobname="./test.tex" 
--fmt=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/gerion/context/tex/texmf-linux-64/bin"
system  >
system  > ConTeXt  ver: 2023.02.23 21:26 LMTX  fmt: 2023.3.4  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern rm 12pt' is loaded
lua error   > lua error on line 8 in file ./test.tex:

registered function call [809]: 
...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: attempt to 
index a nil value (local 'd')
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: in 
function <...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:442>
(...tail calls...)
 1 \definedescription[desc][headstyle=bold]
 2
 3 \starttext
 4 Foo
 5
 6 \desc{Some title} Some text
 7  \startitemize
 8 >>   \item Some item
 9  \stopitemize
10
11 \stoptext
12
mtx-context | fatal error: return code: 1
```

Best,
Gerion


signature.asc
Description: This is a digitally signed message part.
___
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
___