[NTG-context] Re: upgrade problem, more info

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

On 6/20/2024 2:39 AM, jbf wrote:

I should give a little more info on the upgrade problem.

My system is Linux (Mint).

Context installed at /home/jbf/context/tex/texmf-linux-64/bin/context

Current version after upgrade : 2024.06.18 22:04

I tried reinstalling, but same result: error, no format found with name: 
cont-en, aborting


And the simpler fact is that everything worked as normal before I upgraded.

I tried deleting texmf-cache, running mtxrun -- generate and context 
--make but problem still persists.


Don't know if it is relevant but after running context --make I see an 
error line:


lua error   > lua error on line 18 in file typo-lin.mkxl:

But that would seem to be a different error to the 'no format found' 
error. Or is it?

That line loads typo-ling.lmt so does something go wrong there?

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] upgrade problem, more info

2024-06-19 Thread jbf

I should give a little more info on the upgrade problem.

My system is Linux (Mint).

Context installed at /home/jbf/context/tex/texmf-linux-64/bin/context

Current version after upgrade : 2024.06.18 22:04

I tried reinstalling, but same result: error, no format found with name: 
cont-en, aborting


And the simpler fact is that everything worked as normal before I upgraded.

I tried deleting texmf-cache, running mtxrun -- generate and context 
--make but problem still persists.


Don't know if it is relevant but after running context --make I see an 
error line:


lua error   > lua error on line 18 in file typo-lin.mkxl:

But that would seem to be a different error to the 'no format found' 
error. Or is it?


Julian

___
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] upgrade problem

2024-06-19 Thread jbf

I have just upgraded Context to the latest, but am getting the message:

mtx-context | warning: no format found, forcing remake (commandline 
driven)


and at the end,

mtx-context | error, no format found with name: cont-en, aborting

Is there something that did not work properly in the upgrade or have I 
possibly created the problem somehow?


Julian
___
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] URL in footnote citation

2024-06-19 Thread Kip Warner
Hello list,

I am trying to get my references that have URLs to automatically set
the entry title to the URL and not print the URL after it.

Here is a minimal:

   \startbuffer[testdata]
   @Article{wikipedia2024_depeche_mode_sounds_of_the_universe,
 author= {{Wikipedia contributors}},
 title = {Sounds of the Universe},
 year  = {2024},
 url   = 
{https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid=1224785220},
 note  = "[Online; accessed 20-May-2024]"
   }
   \stopbuffer
   
   % Setup bibliography...
   
  % Select References.bib and name it the main database...
  \usebtxdataset[main][testdata.buffer]
   
  % Citation style...
  \usebtxdefinitions[apa]
   
  % Use our main dataset for citations...
  \setupbtx[dataset=main]
   
  \definebtxrendering[main][apa][dataset=main]
   
  \setupbtxrendering[main][
  pagestate=start,
  continue=yes,
  numbering=yes]
   
  % Macro to put the citations as footnotes...
  \unexpanded\def\footnotecite{\dodoubleempty\domycite}
  \def\domycite[#1][#2]%
  {\ifsecondargument
  \footnote{\alwayscite[alternative=entry,#1][main::#2]}%
  \else
  \footnote{\alwayscite[alternative=entry][main::#1]}%
  \fi}
   
   \starttext
   Some 
footnote.\footnotecite[wikipedia2024_depeche_mode_sounds_of_the_universe]
   \stoptext

The footnote renders like so:

   Wikipedia contributors (2024). Sounds of the Universe. Retrieved from
   https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid
   =1224785220 ([Online; accessed 20-May-2024])

It would look much better if it looked like so:

   Wikipedia contributors (2024). Sounds of the Universe. ([Online;
   accessed 20-May-2024])

...where "Sounds of the Universe" is linked to the URL in the BibTeX
database. Is this possible to do?

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


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-19 Thread Henning Hraban Ramm

Am 19.06.24 um 22:10 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 19.06.2024 um 21:55:

Am 19.06.24 um 19:16 schrieb Pablo Rodriguez via ntg-context:
Trying to compile your code, I get:


This should be \protected\def

\protect\def\myhref#1#2%
   {...}


Oops, didn’t find that. Thank you!
Now I get the same behavior as with the original PDF, BTW also in Apple 
Preview.


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

2024-06-19 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 19.06.2024 um 21:55:

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


Trying to compile your code, I get:

"""
...
fonts   > otf loading > math data wiped from 'DejaVu Sans'

Fatal error: catcode push/pop mismatch. Fix this! (restore level: 0)

system  > don't use \end to finish a document
system  > invalid \starttext ... \stoptext structure
close source    > level 1, order 3, name './hover1.tex'
(\end occurred when \ifcase on line 6 was incomplete)
...
"""


This should be \protected\def

\protect\def\myhref#1#2%
  {...}

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

2024-06-19 Thread Henning Hraban Ramm

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


Trying to compile your code, I get:

"""
...
fonts   > otf loading > math data wiped from 'DejaVu Sans'

Fatal error: catcode push/pop mismatch. Fix this! (restore level: 0)

system  > don't use \end to finish a document
system  > invalid \starttext ... \stoptext structure
close source> level 1, order 3, name './hover1.tex'
(\end occurred when \ifcase on line 6 was incomplete)
...
"""

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

2024-06-19 Thread Kip Warner
On Wed, 2024-06-19 at 09:24 +0200, Hans Hagen wrote:
> so best update then ... a while ago we had some addition for
> references and that involved an extra argument someplace which is
> what you see ... seems to be solved in the meantime, if not i'll look
> at it
> 
> (i assume you use the installer)

I use the Debian packages that ship with Ubuntu Noble (24.04). I'm a
bit reluctant to install outside of the package manager's stewardship
of the FHS, but might have to.

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


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: Arranging bullets within tabulate and itemize

2024-06-19 Thread Wolfgang Schuster

Lukas via ntg-context schrieb am 19.06.2024 um 17:19:

Hello,

here is a simple code:


[...]

I cannot find out how to arrange the tabulate bullets straight above 
those of itemize, so how to supress the left indeting, to get:


Foo
• Aaa Aa
• Bbb Bb

Foo
• Ttt
Tt
• Uuu
Uu

How do I achieve this?


You have to set the width for the item symbol/counter to 0pt to get rid 
of the space before the table.


 begin example
\showframe[text][text]

\starttext

\startitemize
\starttabulate[|||]
\NI First item  \NC\NR
\NI Second item \NC\NR
\stoptabulate
\stopitemize

\startitemize[width=0pt]
\starttabulate[|||]
\NI First item  \NC\NR
\NI Second item \NC\NR
\stoptabulate
\stopitemize

\stoptext
 end example

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

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

I have the following source:

\setupbodyfont[dejavu, sans, 24pt]
\setupinteraction[state=start, style=, color=,
contrastcolor=, display=new]
\enabledirectives[references.border=darkgreen]
\def\myurl#1%
  {{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}}
\protect\def\myhref#1#2%
  {\goto{\hyphenatedurl{#1}}[url(#2)]}
\starttext
\startTEXpage[pagestate=start, offset=1em, align=center]
{\bfa Hovering Over Links}
\blank[1st]
\attachment[method=hidden, file={signed-a.pdf}]
\goto{An embedded PDF document}[signed-a::]
\blank[.5st]
\myurl{https://contextgarden.net}
\blank[.5st]
\myhref{A link to the Garden}{https://contextgarden.net}
\stopTEXpage
\stoptext

I also attach my output, since the first link is a link to an embedded
document and not the expected link to an external document (I modified
ConTeXt to get that kind of link).

The issue I’m experiencing with Acrobat Reader DC on Windows
(automatically updated to latest version) is that when hovering over
links, I get different results.

The three links are (in order from top to bottom):

1. A link to the embedded document.
2. An external link with its address as text.
3. Another external link without its address as text.

Some days (as today [sorry, I don’t have access to Windows now]),
hovering over the three links displayed the word "link" (even with
Acrobat set to Spanish).

Other days, hovering over the first link displays nothing and hovering
over the two other links show their actual destination address.

This behavior seems so random to me that I‘m not sure I’m not missing
anything.

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.

Sorry the off-topic issue and many thanks for your help in advance,

Pablo


hover.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: digital signing in ConTeXt

2024-06-19 Thread Pablo Rodriguez via ntg-context
On 6/19/24 09:28, Hans Hagen via ntg-context wrote:
>> [...]
>> I‘m afraid I don’t know what I’m missing.
> probably a couple of libraries ...
>
> local libfiles   = os.name == "windows"
> and { "libcrypto-3-x64", "libssl-3-x64" }

On MSYS2 (Win10), I have both libs even on the bin directory.

>  or { "libcrypto",   "libssl" }

On Linux, I have both (from openssl-libs.x86_64 and openssl-libs.i686):

/usr/lib64/libcrypto.so.3
/usr/lib64/libcrypto.so.3.2.1
/usr/lib64/libssl.so.3
/usr/lib64/libssl.so.3.2.1

/usr/lib/libcrypto.so.3
/usr/lib/libcrypto.so.3.2.1
/usr/lib/libssl.so.3
/usr/lib/libssl.so.3.2.1

This might be causing the issue, but I’m afraid Wine needs 32bit libs.

I need to check this further.

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: new upload

2024-06-19 Thread Pablo Rodriguez via ntg-context
On 6/18/24 22:15, Hans Hagen wrote:
> [...]
> - for pablo to test signing

Many thanks for this, Hans.

It might take a while, since I would like to test this for some time.

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] Arranging bullets within tabulate and itemize

2024-06-19 Thread Lukas via ntg-context

Hello,

here is a simple code:


\definedescription[Mat]
  [headstyle=bi,
   
text={Foo},alternative=serried,width_=fit,indenting_={yes,medium},indenting_=no,align_=left,indentnext_=no,hang_=none,

  ]

\starttext

  \startMat
\startitemize[packed,][]
  \starttabulate[|l|l|l|]
\NI Aaa \NC Aa \NC\AR
\NI Bbb \NC Bb \NC\AR
  \stoptabulate
\stopitemize
  \stopMat

  \startMat
\startitemize[packed_,joinedup_][afterhead=,]
  \head Ttt \par
Tt

  \head Uuu \par
Uu
\stopitemize
  \stopMat

\stoptext


which produces something like:

Foo
  • Aaa Aa
  • Bbb Bb

Foo
• Ttt
Tt
• Uuu
Uu


I cannot find out how to arrange the tabulate bullets straight above 
those of itemize, so how to supress the left indeting, to get:


Foo
• Aaa Aa
• Bbb Bb

Foo
• Ttt
Tt
• Uuu
Uu

How do I achieve this?

TIA.

Best regards,

Lukas
\definedescription[Mat]
  [headstyle=bi,
   
text={Foo},alternative=serried,width_=fit,indenting_={yes,medium},indenting_=no,align_=left,indentnext_=no,hang_=none,
  ]

\starttext

  \startMat
\startitemize[packed,][]
  \starttabulate[|l|l|l|]
\NI Aaa \NC Aa \NC\AR
\NI Bbb \NC Bb \NC\AR
  \stoptabulate
\stopitemize
  \stopMat

  \startMat
\startitemize[packed_,joinedup_][afterhead=,]
  \head Ttt \par
Tt

  \head Uuu \par
Uu
\stopitemize
  \stopMat

\stoptext
___
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-19 Thread Hans Hagen via ntg-context

On 6/19/2024 4:06 PM, Mikael Sundqvist wrote:

Hi,

On Wed, Jun 19, 2024 at 3:40 PM Alan Bowen > wrote:


I have in the past relied on
     \setpenalties\brokenpenalties{1}{1}\
to set the penalty for a page break after a hyphen. But with the
latest LMTX, when I run the file, I get the error message
Error   count has to be 1 for \brokenpenalties

Any advice on how to fix the file would be most welcome.

Alan


Probably only Hans (or Wolfgang) can give a complete answer here. But

\startsetups [*default]
   \directsetup{*reset}
   \frozen\brokenpenalties 1 1\relax
\stopsetups

works here.

/Mikael

currently \brokenpenalties only takes one setting

\permanent\protected\def\setpenalties#1#2#3%
  {\ifdefined#1%
 \frozen#1\ifx#1\brokenpenalties
   \plusone#3\relax
 \else
   \numexpr#2+\plusone\relax\space\expandedrepeat\numexpr#2\relax
 { #3}\zerocount\relax
 \fi
   \fi}


PS

An interesting new feature is the possibility to set penalties depending 
on left and right page, by using options. For example


\startsetups [*default]
   \directsetup{*reset}
   \frozen\clubpenalties   3 options 4 1500 3000 250 500 0 0 \relax
\stopsetups

sets club club penalties 1500 for first line and 250 for second for 
going from left page to right page (and then 0 for the rest) and 3000 
for first line and 500 for second (and rest 0) for going from right page 
to left page.


I hope this helps a bit.

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


--

-
  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-19 Thread Mikael Sundqvist
Hi,

On Wed, Jun 19, 2024 at 3:40 PM Alan Bowen  wrote:

> I have in the past relied on
> \setpenalties\brokenpenalties{1}{1}\
> to set the penalty for a page break after a hyphen. But with the latest
> LMTX, when I run the file, I get the error message
> Errorcount has to be 1 for \brokenpenalties
> Any advice on how to fix the file would be most welcome.
>
> Alan
>

Probably only Hans (or Wolfgang) can give a complete answer here. But

\startsetups [*default]
  \directsetup{*reset}
  \frozen\brokenpenalties 1 1\relax
\stopsetups

works here.

/Mikael

PS

An interesting new feature is the possibility to set penalties depending on
left and right page, by using options. For example

\startsetups [*default]
  \directsetup{*reset}
  \frozen\clubpenalties   3 options 4 1500 3000 250 500 0 0 \relax
\stopsetups

sets club club penalties 1500 for first line and 250 for second for going
from left page to right page (and then 0 for the rest) and 3000 for first
line and 500 for second (and rest 0) for going from right page to left page.

I hope this helps a bit.
___
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: extensibles not rendered

2024-06-19 Thread ralph . 2718
Hi,

after some testing (including the examples you provided) I can confirm that 
this and each of the issues described in my post
https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/BNIZY3XJWP574DW6K6GFX7KRXVSKZTVL/
have been fixed with update 2024.06.18 22:04.

Best,
Ralph
___
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: context / auctex problem?

2024-06-19 Thread Jim
Hi Jürgen (and other auctex users)...

On Tue, Jun 18, 2024 at 11:23 (+0200), Jürgen Hanneder via ntg-context wrote:


> 1. This sounded like a good solution:

> Despite the contextgarden wiki page, which says:

>>  ;; AUCTeX defaults to mkii; change to iv for iv and lmtx
>>  (ConTeXt-Mark-version "IV")

> this seemed like a good idea,

I think the contextgarden wiki page is very out of date on that point.  I
was using auctex 13.x.y and updated to 14.0.4 a while back, and never had
to customize (or otherwise set) any variables to use the executable
"context", as opposed to the (I assume) Mk II "texexec".

>> (custom-set-variables
>>    '(ConTeXt-Mark-version "lmtx")
>>    '(ConTeXt-engine "lmtx"))

> but on my system the error just changes:

> Running `ConTeXt Full' on `context-test' with ``texexec  --engine=lmtx
> --nonstop context-test.tex''
> /usr/bin/texexec: Zeile 2: mtxrun: Kommando nicht gefunden.

> auctex apparently stops using the command "context" directly, but via texexec.

Not on my system.  Are you by any chance running an "ancient" version of
auctex?


> 2.

>> Apparently, your Emacs doesn’t use the same PATH as your terminal.
>> The error message is from /bin/sh, I guess you usually run bash, zsh or
>> the like, and that gets its PATH from .bashrc or something like that.
>> Check how Emacs calls that script, and if you can define a PATH.

> I tried the method from https://www.emacswiki.org/emacs/ExecPath
> and set explicitly a path as

> (setq exec-path (append exec-path '("-Path as in Bashrc-")))

> Does not work.

I've been using emacs for over thirty years, and have managed to never need
to explicitly setq exec-path.  How are you starting emacs?  If you start it
from a terminal session, it should inherit the PATH from your shell, which
presumably has the directory where your context executable is found.

If you are starting emacs by clicking on some window manager (or desktop
environment) button / icon / widget / ...  (or 'accelerator key') then
evidently your window manager doesn't have the same PATH as your shell.
Without knowing what window manager / desktop environment you use, and how
you are starting emacs, I can't suggest a specific solution.

In my opinion, the Right Thing to do is to ensure your window manager is
started with the correct PATH.  But depending on your system that could be
easy or tricky.

More pragmatically, if you created a .desktop file to run emacs, and have a
line in that file like
Exec=emacs
you might replace it with
Exec=env PATH= emacs
where  is what you have when you
echo $PATH
from a terminal session.

> 3.
>> And the information in AucTeX on how to change that is frankly deficient.

> Exactly. It is a little absurd that it should be so difficult to tell auctex
> anything.

I recently filed an auctex bug report and one of the auctex developers
updated the context.el file (to be put in the next release).  I was told
that none of the auctex developers use ConTeXt (imagine!!) and that they
were happy to have some reports from ConTeXt users.  But before you
consider contacting them, I strongly advise you to upgrade to the newest
auctex release.


>> To the point that I, who
>> am an Emacs user for almost everything, when I write in ConTeXt I prefer
>> to use Vim.

"The horror, the horror."
- Marlon Brando


On Tue, Jun 18, 2024 at 16:12 (+0200), Jürgen Hanneder via ntg-context wrote:



> Here just an inelegant half-solution:

> I added the whole program path to the 'TeX-command-list and it works, but
> this is hardly satisfying.
> At least it suggests that nothing else is wrong except that emacs 29.3 and
> auctex 14.0.5 together decide
> not to find a path, which is in .bashrc and works fine when called from a
> shell (not from eshell though).

Again, I suspect your window manager is not started with the complete PATH
that you have set up in your shell init file(s).

If you wish to dig into this further, I'd be happy to try to help you with
it.

Cheers
Jim
___
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] \brokenpenalties query

2024-06-19 Thread Alan Bowen
I have in the past relied on
\setpenalties\brokenpenalties{1}{1}\
to set the penalty for a page break after a hyphen. But with the latest
LMTX, when I run the file, I get the error message
Errorcount has to be 1 for \brokenpenalties
Any advice on how to fix the file would be most welcome.

Alan
___
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-19 Thread 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

-
  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: digital signing in ConTeXt

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

On 6/18/2024 7:42 PM, Pablo Rodriguez via ntg-context wrote:

On 6/18/24 19:28, Pablo Rodriguez via ntg-context wrote:

[...]
I have just discovered that verify didn’t work with the binary.

Figuring out now how to do the testing with the library.


For some strange reason, I cannot get --library verification.

I only get:

sign pdf| verifying with the binary is not yet implemented
sign pdf| signature in file 'a.pdf' doesn't match the content

I‘m afraid I don’t know what I’m missing.

probably a couple of libraries ...

local libfiles   = os.name == "windows"
   and { "libcrypto-3-x64", "libssl-3-x64" }
or { "libcrypto",   "libssl" }

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

2024-06-19 Thread Hans Hagen

On 6/19/2024 3:28 AM, Kip Warner wrote:


But on my machine which has ConTeXt 2023.05.05, I see the following:


so best update then ... a while ago we had some addition for references 
and that involved an extra argument someplace which is what you see ... 
seems to be solved in the meantime, if not i'll look at it


(i assume you use the installer)

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
___