[NTG-context] Re: weekend update

2024-06-21 Thread Aditya Mahajan
On Fri, 21 Jun 2024, Hans Hagen via ntg-context wrote:

> Hi,
> 
> -- support for stacking at the tex end (maybe for presentations)
> 
> \starttext
> 
> \definestacking[one]
> \definestacking[two]
> 
> \startstackingsteps[one,two,{one,two}]
> \startTEXpage[offset=1ts]
> \getbuffer
> \stopTEXpage
> \stopstackingsteps

I have crude macros which provide this features (save stuff in boxes and then 
unbox) for showing stuff stepwise in presentation (without relying on fancy PDF 
features which are viewer dependent). So, this new feature is very interesting. 
Thanks!

I use stackers in the following ways:

Case 1: Show stuff step by step

\startstackingsteps[1,{1,2},{1,2,3},{1,2,3,4}]

\startstacking[1]
...
\stopstacking

\startstacking[2]
...
\stopstacking

\startstacking[3]
...
\stopstacking

\startstacking[4]
...
\stopstacking

\stopstackingsteps


Case 2: Show stuff step by step but some things are only shown once

\startstackingsteps[1,{1,2,2only},{1,2,3},{1,2,3,4}]



\startstacking[2] % Show always after 2nd step
...
\stopstacking

\startstacking[2only] % Show only during step 2
...
\stopstacking

...

\stopstackingsetps

Case 3: Show stuff step by step but some things are only for specific slides

\startstacking[2only,3only] % Show only during step 2 and 3:
...
\stopstacking

So, I have a few requests:

1. Can we add support for \startstacking[one,two]? 

2. For case 1, could we have a shortcut to easily write 
\startstackingsteps[1,{1,2},{1,2,3}...]. This gets really tedious when there 
are say 6 or 7 steps. 

   One option is:

   \startstackingsteps[criterium={1,2,3}, alternative=normal] % or sequential

for the current implementation

and 

   \startstackingsteps[criterium={1,2,3}, alternative=cumulative]

   for the cumulative option (1,{1,2},{1,2,3}...)

3. It will be nice to have a syntax to easily handle case 2 and 3. 

As a bonus, I found that tex stacking plays nicely with metapost stacking!

\starttext

\definestacking[1]
\definestacking[2]
\definestacking[3]

\startbuffer
\subject{How to draw a circle}
\startitemize
\startstacking[2] \startitem Pick a point \stopitem \stopstacking
\startstacking[3] \startitem Draw the circle \stopitem \stopstacking
\stopitemize

\startplacefigure[location={here,none}]
  \startMPcode[stacking={\namedstackingparameter\empty{criterium}}]
newpair A; A := origin;
newpath p; p := fullcircle scaled 3cm shifted A;

fill fullcircle scaled 3bp shifted A withstacking 2;

draw p withstacking 3;

setbounds currentpicture to bbox p ;
  \stopMPcode
\stopplacefigure
\stopbuffer

\startstackingsteps[1,{1,2},{1,2,3}]
 \startTEXpage[offset=1ts]
 \getbuffer
 \stopTEXpage
\stopstackingsteps
\stoptext

Thanks,
Aditya

___
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: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
I tried manually specifying this format file, but then get this error:

```
$ context 
--fmt=/opt/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 /tmp/test.tex
startup error : missing find_format_file callback
```

So I'm no longer convinced installation fully succeeded.

Sincerely,
Bryan Kaplan
___
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: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
On 2024-06-21 at 16:38:10-06:00, Bryan Kaplan via ntg-context set forth:
> But attempting that first command gives me, “startup error : no format file 
> given, quitting”. My web search isn't helping. Do I need to specify some 
> format file, and if so which?

To elaborate, I get the same error when attempting the test suggested in the 
installation instructions.

```
$ context /tmp/test.tex
startup error : no format file given, quitting
```

Sincerely,
Bryan Kaplan

___
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: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
On 2024-06-21 at 16:06:35-06:00, Bryan Kaplan via ntg-context set forth:
> On 2024-06-21 at 15:51:44-06:00, Hans Hagen set forth:
>> can you try again, use a new installer zip
>> (i need to remember to generate musl bins myself pending build bot fix)
> 
> Thank you so much, Hans. My initial impression is: that worked!
> 
> Don't forget to generate the musl bins yourself, pending the build bot fix.

…maybe, that is. The installer finished up by informing me:

> If you also want to run LuaTeX and MkIV you can provide --luatex but first 
> the file
> database has to be generated (this time with context and not mtxrun):
> 
>   context --luatex --generate
>   context --luatex --make

But attempting that first command gives me, “startup error : no format file 
given, quitting”. My web search isn't helping. Do I need to specify some format 
file, and if so which?

Sincerely,
Bryan Kaplan
___
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: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
On 2024-06-21 at 15:51:44-06:00, Hans Hagen set forth:
> can you try again, use a new installer zip
> (i need to remember to generate musl bins myself pending build bot fix)

Thank you so much, Hans. My initial impression is: that worked!

Don't forget to generate the musl bins yourself, pending the build bot fix.

Sincerely,
Bryan Kaplan
___
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-21 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
 
 sent 187,507 bytes  received 39,345,875 bytes  3,162,670.56 bytes/sec
 total size is 617,038,265  speedup is 15.61


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-06-22.00
271340686   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-22.00/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-22.00/current
398090099   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-22.00
398090099   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: Trouble installing on Alpine Linux

2024-06-21 Thread Hans Hagen via ntg-context

On 6/21/2024 8:19 PM, Bryan Kaplan wrote:

On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:

permissions?


For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the 
error is some odd side-effect of trying to run a glibc binary on a musl 
system.


But I realized that I was confused by the installation instructions in 
Attempt #1. The instructions should say, “2. `wget [URL]`” to indicate 
to the installing user that “[URL]” must be manually specified. Instead 
the instructions currently provide a URL which happens to be wrong for 
my system, thus leading to the above problem. I should have read more 
closely, to see that it says the URL is supposed to be replaced.


However, correcting for that oversight leads me to Attempt #2, which 
still fails as described in my first email.


Has anyone successfully installed ConTeXt on Alpine?

can you try again, use a new installer zip

(i need to remember to generate musl bins myself pending build bot fix)

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: Trouble installing on Alpine Linux

2024-06-21 Thread Hans Hagen via ntg-context

On 6/21/2024 8:19 PM, Bryan Kaplan wrote:

On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:

permissions?


For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the 
error is some odd side-effect of trying to run a glibc binary on a musl 
system.


But I realized that I was confused by the installation instructions in 
Attempt #1. The instructions should say, “2. `wget [URL]`” to indicate 
to the installing user that “[URL]” must be manually specified. Instead 
the instructions currently provide a URL which happens to be wrong for 
my system, thus leading to the above problem. I should have read more 
closely, to see that it says the URL is supposed to be replaced.


However, correcting for that oversight leads me to Attempt #2, which 
still fails as described in my first email.


Has anyone successfully installed ConTeXt on Alpine?

i installed an alpine on WSL to see what happens

- it looks like some 32/64 bit mixup ... this is a side effect of the 
fact that it take a bit of effort to see if we need musl


- the buildbot doesn't generate the binaries (i can't login to the 
machine to check if the client is running at all)


i'll see what i can do (will give some upload noise on the list)

btw, i can compile luametatex on WSL alpine so i can use that binary

you can do that as exercise:

- apk add build-base
- apk add cmake
- go to tex/texmf-context/source/luametatex
- chmod 755 build.sh
- ./build.sh
- copy bin from build/native

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: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:
> permissions?

For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the error 
is some odd side-effect of trying to run a glibc binary on a musl system.

But I realized that I was confused by the installation instructions in Attempt 
#1. The instructions should say, “2. `wget [URL]`” to indicate to the 
installing user that “[URL]” must be manually specified. Instead the 
instructions currently provide a URL which happens to be wrong for my system, 
thus leading to the above problem. I should have read more closely, to see that 
it says the URL is supposed to be replaced.

However, correcting for that oversight leads me to Attempt #2, which still 
fails as described in my first email.

Has anyone successfully installed ConTeXt on Alpine?

Sincerely,
Bryan Kaplan



___
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-21 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
 
 sent 187,464 bytes  received 40,628,655 bytes  3,549,227.74 bytes/sec
 total size is 617,039,035  speedup is 15.12


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-06-21.20
271340742   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-21.20/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-21.20/current
398090155   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-21.20
398090155   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: (off-topic) hovering over links in Acrobat Reader

2024-06-21 Thread Pablo Rodriguez via ntg-context
On 6/21/24 18:31, Hans Hagen wrote:
> [...]
> so that you can experiment a bit with it. We might at some point provide
> optional descriptions per link but the quesiton is how to cleanly
> interface this (easier if you use \define... instead of your own macros
> for urls).

Many thanks for the new options, Hans.

Sorry, but I don’t know how I would have to use \define here instead of
my macros.

BTW, I created them long time ago to avoid having two commands (one to
contain the address and another to typeset it), such as in (copied from
the wiki):

  \useURL[anotherurl] [http://xkcd.com/224/]

  \from[aurl] % typesets the URL

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://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: weekend update

2024-06-21 Thread Pablo Rodriguez via ntg-context
On 6/21/24 19:00, Hans Hagen via ntg-context wrote:
> [...]
> The last option can be handy when you don't want to make harvesting your
> documents too easy for these ai bots (as in cloud based pdf stuff). It's
> the first outcome of the multi-year, multi-stage, very scientific
> 'inacessible pdf' project that Mikael S. and I recently started.

Many thanks for the new upload, Hans.

I have just tested this feature and I really like it.

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
___


[NTG-context] weekend update

2024-06-21 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new version:

-- fix for hraban's svg image (one character patch)

-- more verbose link comments for pablo (for experimenting)

-- support for stacking at the tex end (maybe for presentations)

\starttext

\definestacking[one]
\definestacking[two]

\startbuffer
This is a test \stacking [one] {and a proof} of \stacking [two] 
{concept} indeed
\stacking [one] {\blackrule [width=4cm]} is it and the question is how 
\stacking

[two] {\scale [s=2] {fancy}} we can go

\startstacking[one]
\startformula
\sqrt{1+x}
\stopformula
\stopstacking

and how useful \stacking[two]{\inframed{it}} is.
\stopbuffer

\startstackingsteps[one,two,{one,two}]
\startTEXpage[offset=1ts]
\getbuffer
\stopTEXpage
\stopstackingsteps

\startTEXpage[offset=1ts] \setupstacking[criterium={one}] \getbuffer 
\stopTEXpage
\startTEXpage[offset=1ts] \setupstacking[criterium={two}] \getbuffer 
\stopTEXpage
\startTEXpage[offset=1ts] \setupstacking[criterium={one,two}] \getbuffer 
\stopTEXpage


\stoptext

-- support for more private pdf

\enabledirectives[backend.pdf.nounicode=noai]
\enabledirectives[backend.pdf.nounicode=nopilot]
\enabledirectives[backend.pdf.nounicode=justread]
\enabledirectives[backend.pdf.nounicode=✅]
\enabledirectives[backend.pdf.nounicode=✅❌]
\enabledirectives[backend.pdf.nounicode=❌]

\startTEXpage[offset=1ts]
\input tufte
\stopTEXpage

The last option can be handy when you don't want to make harvesting your 
documents too easy for these ai bots (as in cloud based pdf stuff). It's 
the first outcome of the multi-year, multi-stage, very scientific 
'inacessible pdf' project that Mikael S. and I recently started.


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: (off-topic) hovering over links in Acrobat Reader

2024-06-21 Thread Hans Hagen

On 6/20/2024 5:33 PM, Pablo Rodriguez via ntg-context wrote:

On 6/19/24 21:55, Henning Hraban Ramm wrote:

Am 19.06.24 um 19:16 schrieb Pablo Rodriguez via ntg-context:

Would you be so kind to test the attached document (and the one you may
generate from the sample source) hovering over the link frames in
Acrobat (ideally DC updated to latest)?

At least, I would like to be sure what is going on here.

Hovering over links is basic precaution before clicking them.

To explain that to others, I’d rather know how Acrobat (Reader) behaves
in these cases.


Build 24.2.20857.0 on MacOS 10.15.7:
1: no hover
2: https://contextgarden.net
3: https://contextgarden.net


Many thanks for your help, Hraban.

Thanks to your confirmation, I investigated the issue further (since
there had to be something different with my documents).

\setuptagging[state=start] is the culprit. "link" is the word displayed
when links are hovered over.
It's not that hard to get something less generic displayed but the 
question is what and in what detail. A lot of this stuff is not 
consistent over viewers and it being part of the user interface might 
also change over time (some viewers also interpret the page stream for 
urls).


Anyway, a next upload will have this:

% \disabledirectives[backends.references.descriptions]   % just link
% \enabledirectives [backends.references.descriptions]   % some 
detail (some todo) (default)
% \enabledirectives [backends.references.descriptions=reference] % a bit 
less


so that you can experiment a bit with it. We might at some point provide 
optional descriptions per link but the quesiton is how to cleanly 
interface this (easier if you use \define... instead of your own macros 
for urls).


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: Specify separator within setupbtx for custom bibliography rendering

2024-06-21 Thread Gerion Entrup
Am Samstag, 1. Juni 2024, 16:16:38 MESZ schrieb Gerion Entrup:
> Hi,
> 
> according to the section "Custom citation renderings" in the bibliography 
> manual, I have specified an own setup for citation rendering.
> However, this seems only to work for single citations (of one source). I want 
> to also specify the separator but did not get it to run.
> 
> Here is a minimal example:
> ```
> \setupinteraction[state=start]
> 
> \startbuffer[testdata]
> @Book{knuth1,
>   author = {Donald E. Knuth},
>   title = {TEX and METAFONT. New directions in typesetting},
>   year = {1979},
>   publisher = {Addison-Wesley},
> }
> @Article{someother,
>   author = {Some Person and Some Otherperson},
>   title = {Another title},
>   year = {1900},
> }
> \stopbuffer
> 
> % enable tracing
> \enabletrackers[publications, publications.crossref, publications.details, 
> publications.cite, publications.strings]
> 
> \usebtxdataset[main][testdata.buffer]
> \usebtxdefinitions[aps]
> \setupbtx[dataset=main]
> \definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
> \setupbtxlist[aps][
>   alternative=b,
>   distance=.5em,
> ]
> 
> \definebtx[aps:cite:special][aps:cite][
>   left={((},
>   right={))},
>   separator:2={sfd},
>   separator:3={sfd},
>   separator:4={sfd},
> ]
> 
> \startsetups btx:aps:cite:special
>   % just a dummy
>   \btxcitereference
>   \currentbtxtag
> \stopsetups
> 
> \setupbtx[aps:cite][
>   alternative=special,
> ]
> 
> \starttext
> 
> Both said something~\cite[knuth1, someother].
> 
> \placelistofpublications[bibrendering]
> 
> \stoptext
> ```
> 
> The output of this is:
> 
> > Both said something ((knuth1someother)).
> 
> How can I get the separator to work? My expectation would be:
> 
> > Both said something ((knuth1sfdsomeother)).
> 
> or
> 
> > Both said something ((knuth1sfd someother)).

I got some understanding of the underlying code now.
This setup solves the above issue:

```
\startsetups btx:aps:cite:special
% just a dummy
\fastsetup{btx:cite:concat}
\btxcitereference
\currentbtxtag
\stopsetups
```

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://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: \brokenpenalties query

2024-06-21 Thread Hans Hagen

On 6/21/2024 5:23 PM, Alan Bowen wrote:


 > and \clubpenalities is greatly appreciated and will solve a problem that

there is some in lowlevel-lines.tex

-
  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: \brokenpenalties query

2024-06-21 Thread Alan Bowen
I have found entries on \widowpenalty, \widowpenalties, \orphanpenalty,
\orphanpenalities and look forward to learning about vertical expansion.
Many thanks, Hans.

Alan

On Thu, Jun 20, 2024 at 4:56 PM Hans Hagen  wrote:

> On 6/20/2024 10:33 PM, Alan Bowen wrote:
> > Mikael and Hans—
> >
> > Thank you so much for your help.Your advice regarding \brokenpenalities
> > and \clubpenalities is greatly appreciated and will solve a problem that
> > I was having from time to time in paginating my journal.
> + \widowpenalties
>
> one works top down, the other bottom up and when they colide they add up
>
> there are some more new ones, like \orphanpenalty (and \orphanpenalties)
> as well as \todlerpenalty as well as multriple parpasses
>
> another new feature is vertical expansion
>
> some is documented alreaydy and more details will follow (probably after
> the ctx meeting)
>
> 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
>
> ___
>
___
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: Transparency in external PDFs does not work

2024-06-21 Thread Hans Hagen via ntg-context

On 6/21/2024 2:41 PM, Gerion Entrup wrote:

Am Mittwoch, 19. Juni 2024, 09:50:33 MESZ schrieb Hans Hagen:

On 6/18/2024 9:54 AM, Gerion Entrup wrote:

Am Montag, 17. Juni 2024, 23:50:16 MESZ schrieb Hans Hagen:

On 6/17/2024 5:07 PM, Gerion Entrup wrote:

Hi,

I'm using LaTeX-Beamer and TikZ for figure typesetting.

If you use that kind of simple graphics, you can avoid this transparency
hacking by using metafun:

\setupbodyfont[dejavu]

\starttext

\startuseMPgraphic{test}
  pickup pencircle scaled 2mm ;
  draw fullcircle scaled 3cm withcolor darkred  withstacking 1 ;
  draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ;
  draw textext("one")   withcolor darkgreen withstacking 11 ;
  draw textext("two")   withcolor darkgreen withstacking 12 ;
  draw textext("three") withcolor darkgreen withstacking 13 ;
\stopuseMPgraphic

\startTEXpage[offset=.25ts]
  \useMPgraphic{test}{stacking={1,11}}
\stopTEXpage

\startTEXpage[offset=.25ts]
  \useMPgraphic{test}{stacking={2,12}}
\stopTEXpage

\startTEXpage[offset=.25ts]
  \useMPgraphic{test}{stacking={1,2,13}}
\stopTEXpage

\stoptext

It's an already old feature but probably not that well known. If needed
I can make something similar at the tex end.

Hans


Thank you for the example, but learning metafun is another chapter and the
graphics are much more complicated than the minimal example given.

I saw that you pushed an updated version that fixes the bug [1]. Thank you!

Gerion

[1] 
https://github.com/contextgarden/context/commit/0bcdd3ce47a406ed7852724504e3efe28bc2d9e1#diff-603950e83d66ef32e79066259f4f456250f9f3ae795ade93db2df48d0da1034d
The next upload will have an example of something similar at the \TEX\ 
end (i made it a few days ago but no upload yet). An exmaple can (then) 
be found in:


  stacking-001.tex

in the test suite.

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: Transparency in external PDFs does not work

2024-06-21 Thread Gerion Entrup
Am Mittwoch, 19. Juni 2024, 09:50:33 MESZ schrieb Hans Hagen:
> On 6/18/2024 9:54 AM, Gerion Entrup wrote:
> > Am Montag, 17. Juni 2024, 23:50:16 MESZ schrieb Hans Hagen:
> >> On 6/17/2024 5:07 PM, Gerion Entrup wrote:
> >>> Hi,
> >>>
> >>> I'm using LaTeX-Beamer and TikZ for figure typesetting.
> If you use that kind of simple graphics, you can avoid this transparency 
> hacking by using metafun:
> 
> \setupbodyfont[dejavu]
> 
> \starttext
> 
> \startuseMPgraphic{test}
>  pickup pencircle scaled 2mm ;
>  draw fullcircle scaled 3cm withcolor darkred  withstacking 1 ;
>  draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ;
>  draw textext("one")   withcolor darkgreen withstacking 11 ;
>  draw textext("two")   withcolor darkgreen withstacking 12 ;
>  draw textext("three") withcolor darkgreen withstacking 13 ;
> \stopuseMPgraphic
> 
> \startTEXpage[offset=.25ts]
>  \useMPgraphic{test}{stacking={1,11}}
> \stopTEXpage
> 
> \startTEXpage[offset=.25ts]
>  \useMPgraphic{test}{stacking={2,12}}
> \stopTEXpage
> 
> \startTEXpage[offset=.25ts]
>  \useMPgraphic{test}{stacking={1,2,13}}
> \stopTEXpage
> 
> \stoptext
> 
> It's an already old feature but probably not that well known. If needed 
> I can make something similar at the tex end.
> 
> Hans

Thank you for the example, but learning metafun is another chapter and the
graphics are much more complicated than the minimal example given.

I saw that you pushed an updated version that fixes the bug [1]. Thank you!

Gerion

[1] 
https://github.com/contextgarden/context/commit/0bcdd3ce47a406ed7852724504e3efe28bc2d9e1#diff-603950e83d66ef32e79066259f4f456250f9f3ae795ade93db2df48d0da1034d


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://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: (off-topic) hovering over links in Acrobat Reader

2024-06-21 Thread Ulrike Fischer
Am Thu, 20 Jun 2024 17:33:56 +0200 schrieb Pablo Rodriguez via
ntg-context:

> \setuptagging[state=start] is the culprit. "link" is the word displayed
> when links are hovered over.

well it would imho be better not to use that at all. Sorry but what
context is doing here is cheating. It claims to add a structure (and
probably manage to pass automated tests) but all StructElem with the
exception of links are role mapped to NonStruct and so are non
functional. Links miss the OBJR reference. Annotations only all have
as /Content a generic text (link) (which creates your hover effect).  

When I let Adobe+NVDA read a PDF tagged with LaTeX it recognize and
announces structures:

headinglevel 2  A section
text
table  with 2 rows and 2 columns  
row 1  column 1  header A
   column 2  header B
row 2  header A  column 1  data A
   header B  column 2  data B
out of table
linkhttps://www.example.com

I can navigate from one heading to the next and inside tables (and
when I hover a link the pop up is correct as we are setting the
right Contents value.)

If you do the same with a document tagged with context you only get
a large blob of text

A section textHeader AHeader B data Adata B
https://contextgarden.net

and no navigation at all. All the tagging in the file is useless, it
even actually harms because it makes user believe they get an
accessible PDF. 

Tagged, accessible PDF has a lot of shortcomings, especially when it
comes to complex documents and math, but for standard documents it
can do much better then what context is making out of it. 

 
-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-21 Thread Hans Hagen

On 6/21/2024 2:13 AM, Kip Warner wrote:

On Tue, 2024-06-18 at 18:28 -0700, Kip Warner wrote:

On Tue, 2024-06-18 at 18:48 +0200, Hans Hagen wrote:

then use \alwayscite


Hey Hans. I note that command is not documented (yet) so thank you
for providing that.


Thank you Hans for documenting:

https://wiki.contextgarden.net/Command/alwayscite

You have to thank someone else for that effort.

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: Trouble installing on Alpine Linux

2024-06-21 Thread Hans Hagen via ntg-context

On 6/21/2024 4:39 AM, Bryan Kaplan via ntg-context wrote:

Hi all,

I'm a *TeX novice trying and failing to install ConTeXt on Alpine Linux.

*Attempt #1*: Following https://wiki.contextgarden.net/Installation 



  * Error:
  o install.sh: line 109: /opt/context/bin/mtxrun: not found
  * That file does exist, but attempting to execute it fails with that
error.
  * Full (2>&1) output: https://paste.rs/R3PK9 


*Attempt #2*: Following http://www.pragma-ade.nl/install.htm 



  * Explicitly grabbed “64 bit Linux Musl”.
  * Errors:
  o invalid database
'http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-linuxmusl.tma'
  o sh: /opt/context/tex/texmf-linuxmusl/bin/mtxrun: not found
  * That file actually does /not/ exist.
/opt/context/tex/texmf-linuxmusl is empty.
  * Full (2>&1) output: https://paste.rs/LjvkB 

Any suggestions on how I might proceed?

permissions?

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