[NTG-context] Re: An announcement of my new book.

2024-02-13 Thread Shiv Shankar Dayal
Please write one. More documentation is needed.

On Wed, Feb 14, 2024 at 3:55 AM Sir Coleman via ntg-context <
ntg-context@ntg.nl> wrote:

> I'm glad to know there's a demand for this book.
>
> Hopefully soon I'll upload a draft of it to GitLab, so if there's anything
> that you learned that you would like to contribute to this book, you would
> be able to do so. I personally would be very happy if someone would give me
> examples of things a user would like to do, because my own use cases can
> only go that far.
>
> I'll make sure to make finding information in this book as direct as
> possible. If you find that some information in this book isn't clear or
> easy to learn from (or locate in the first place), then I'll expect a
> complaint about it.
>
> I'll post here a link to the GitLab repository when part of the book has
> been written and ready for feedback. Should take some time, but not too
> long.
>
> ___
> 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
>
> ___
>


-- 
Respect,
Shiv Shankar Dayal
___
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: An announcement of my new book.

2024-02-13 Thread Sir Coleman via ntg-context
I'm glad to know there's a demand for this book.

Hopefully soon I'll upload a draft of it to GitLab, so if there's anything that 
you learned that you would like to contribute to this book, you would be able 
to do so. I personally would be very happy if someone would give me examples of 
things a user would like to do, because my own use cases can only go that far.

I'll make sure to make finding information in this book as direct as possible. 
If you find that some information in this book isn't clear or easy to learn 
from (or locate in the first place), then I'll expect a complaint about it.

I'll post here a link to the GitLab repository when part of the book has been 
written and ready for feedback. Should take some time, but not too long.
___
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: Two bugs with descriptions in ConTeXt.

2024-02-13 Thread Sir Coleman via ntg-context
Oh dear...

The serried alternative does indeed solve the second "bug". And to answer your 
question, I literally encountered this problem in one of my own documents, so 
yes, it's a real world problem...

And also good to know the explanation of why the counter acts weird. I'll also 
check out enumerations, thanks.

Also, I'll be more careful about what I call bugs, because apparently it's very 
possible that it's not a bug that I have to complain about.

Thanks for your time.
___
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: Two bugs with descriptions in ConTeXt.

2024-02-13 Thread Wolfgang Schuster

SirColeman via ntg-context schrieb am 13.02.2024 um 22:04:
The first bug is that descriptions interfere with the counters, 
resulting in the peculiar behavior demonstrated in the resulting PDF.


Still no bug and there is no need to create your own counter because 
enumerations exist which are descriptions with a counter.


Unless I'm mistaken, I think it happens because the head of the 
description is evaluated twice, thus incrementing the counter 
twice---at least, that's the only explanation for how the number is 
incremented by 2 each time. Further, this issue seems to persist 
whether we're using macros or writing \incrementcounter directly.


The solution is to either make sure that the head of descriptions is 
evaluated only once, or document that text placed as the head of 
descriptions is meant to be evaluated twice, if there's a good reason 
for doing so. Of course, this silly example of incrementing counters 
can be subdued by placing the \incrementcounter directly in the after 
option when customizing descriptions. But it demonstrates the issue.


What you're supposed to do here is to increment the counter *before* you 
use the counter value.


As you guessed the content of the title is evaluated multiple times to 
get the width of the description title, in cases where a counter is 
incremented in such a case (very common when you have counters in a 
table cell) you use the trialtypesetting mode to increment only once.


I've tried to make the examples given be as varied as possible, 
demonstrating the different ways in which descriptions interact with 
the counter.


The second bug is that descriptions, or at least that's my intuitive 
expectation, shouldn't interfere with the bullets of items. I expect 
that the bullet stays where it is, and the description is placed next 
to it. But what happens is that the bullet is shifted to the right, 
making it overlap with the description's head, which isn't pretty.


Is this even a real world example?

The reason why the bullet points are at the wrong position is that 
descriptions and items use the same mechanism to set the text offset on 
the left and right sides and when you combine both mechanism the values 
are added. In case you you have a document where a descriptions appear 
as part of an item I suggest to use a different alternative (e.g. 
serried) for the description layout.


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: An announcement of my new book.

2024-02-13 Thread Peter Hopcroft via ntg-context
Thank you Sir Coleman. I’m a Context beginner and I’d love a good book 
introducing me to Context. I’ve wasted many hours trying to figure out how to 
do things that turned out to be simple.

The answer is often/sometimes buried in the documentation, and what would 
really help me is a book that is more of an index to the existing documentation 
that is not out of date, with perhaps some simple examples. One case that comes 
to mind is to pass a couple of numbers to Lua, have it do a calculation and use 
the result in Context.

Regards,
Peter

> On 14/02/2024, at 9:03 AM, Sir Coleman via ntg-context  
> wrote:
> 
> Acknowledged.
> 
> However, this does reinforce my point, that the documentation needs to be 
> updated. The examples on the wiki still use \getcounter, and naturally they 
> all fail to compile. Hence, my ambition to create a book to serve as the 
> documentation, which I find is a better medium for communication rather than 
> wikis.
> 
> Now, as to my question, to understand the low level TeX programming language, 
> will the manuals "Low Level TeX" be enough?
> 
> Thanks.
> ___
> 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] Two bugs with descriptions in ConTeXt.

2024-02-13 Thread SirColeman via ntg-context
The first bug is that descriptions interfere with the counters, resulting in 
the peculiar behavior demonstrated in the resulting PDF.

Unless I'm mistaken, I think it happens because the head of the description is 
evaluated twice, thus incrementing the counter twice---at least, that's the 
only explanation for how the number is incremented by 2 each time. Further, 
this issue seems to persist whether we're using macros or writing 
\incrementcounter directly.

The solution is to either make sure that the head of descriptions is evaluated 
only once, or document that text placed as the head of descriptions is meant to 
be evaluated twice, if there's a good reason for doing so. Of course, this 
silly example of incrementing counters can be subdued by placing the 
\incrementcounter directly in the after option when customizing descriptions. 
But it demonstrates the issue.

I've tried to make the examples given be as varied as possible, demonstrating 
the different ways in which descriptions interact with the counter. 

The second bug is that descriptions, or at least that's my intuitive 
expectation, shouldn't interfere with the bullets of items. I expect that the 
bullet stays where it is, and the description is placed next to it. But what 
happens is that the bullet is shifted to the right, making it overlap with the 
description's head, which isn't pretty.

ConTeXt version 2024.1.24


descriptions.lmtx
Description: Binary data


descriptions.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] Fwd: Re: Context lmtx for 32bit under LUBUNTU 18.04

2024-02-13 Thread Alain Delmotte

I answered only for Hraban!! Sorry8

Alain


 Message transféré 
Sujet : 	Re: [NTG-context] Re: Context lmtx for 32bit under 
LUBUNTU 18.04

Date :  Tue, 13 Feb 2024 19:47:09 +0100
De :Alain Delmotte 
Pour :  Henning Hraban Ramm 




Le 13-02-24 à 18:21, Henning Hraban Ramm a écrit :

Am 13.02.24 um 17:29 schrieb Alain Delmotte:

Hi,

A month or so ago Hans provided a new upload (thanks I 
managed to get and install it on my Windows 10 64b). At 
that time I was struggling for having my computers back 
in order (that appends sometimes).


Now I'd like to have LMTX on an old but still used (when 
travelling) portable under lubuntu 18.04 32Bits.


There is no more executable available on pragma and I am 
using Context from TeX Live, but it is the 2017 version.


I can do with it, but it would be better to have Context 
lmtx latest.


Is it possible to have it? But if this a too complicate 
problem, I'll stand with the TeX Live Context.


Just compile it yourself.


In your installation root (where install.sh is):

PWD=`pwd`
cd tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-linux/bin/"
cd "$PWD"


Hraban


OK I'll try

Alain


___ 

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: An announcement of my new book.

2024-02-13 Thread Sir Coleman via ntg-context
Acknowledged.

However, this does reinforce my point, that the documentation needs to be 
updated. The examples on the wiki still use \getcounter, and naturally they all 
fail to compile. Hence, my ambition to create a book to serve as the 
documentation, which I find is a better medium for communication rather than 
wikis.

Now, as to my question, to understand the low level TeX programming language, 
will the manuals "Low Level TeX" be enough?

Thanks.
___
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: An announcement of my new book.

2024-02-13 Thread Wolfgang Schuster

SirColeman via ntg-context schrieb am 13.02.2024 um 20:44:
>> This is wrong, the counter commands are official and the number 
variants are kept for backwards compatibility with old styles.


I do recall reading on the ConTeXt wiki that \definenumber is 
maintained for backwards compatibility reasons. However, why then does 
ConTeXt fail to compile with \getcounter, if that's how it's supposed 
to work? I was confused, don't get me wrong, but what I wrote was my 
own conclusion on the matter.


Clearly, we have a bug that needs to be reported. I wish my email 
hadn't included such misinformation. But now, this is a bug that needs 
to be resolved.


I'm running ConTeXt version 2024.01.24, and the given attachment fails 
to compile, even with MkIV.


I don't want to pester those subscribed to this mailing list with bug 
reports, so I thought it would be more sensible to post such reports 
on the context developers mailing list. I ask for confirmation that I 
can post there instead of here.


There is no command named \getcounter, only \convertedcounter exists. 
The two older commands \getnumber and \convertednumber are aliases for 
the new \convertedcounter command.


You can report bugs on this list (no need to use the more or less dead 
dev list) but in this case there is no bug, just different names.


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: An announcement of my new book.

2024-02-13 Thread SirColeman via ntg-context
>> This is wrong, the counter commands are official and the number variants are 
>> kept for backwards compatibility with old styles.

I do recall reading on the ConTeXt wiki that \definenumber is maintained for 
backwards compatibility reasons. However, why then does ConTeXt fail to compile 
with \getcounter, if that's how it's supposed to work? I was confused, don't 
get me wrong, but what I wrote was my own conclusion on the matter.

Clearly, we have a bug that needs to be reported. I wish my email hadn't 
included such misinformation. But now, this is a bug that needs to be resolved.

I'm running ConTeXt  version 2024.01.24, and the given attachment fails to 
compile, even with MkIV.

I don't want to pester those subscribed to this mailing list with bug reports, 
so I thought it would be more sensible to post such reports on the context 
developers mailing list. I ask for confirmation that I can post there instead 
of here.

Thanks.


example.lmtx
Description: Binary data
___
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: An announcement of my new book.

2024-02-13 Thread Wolfgang Schuster

SirColeman via ntg-context schrieb am 12.02.2024 um 08:49:
Greetings all. I have a passion for typesetting. I found that 
currently the best typesetting systems are those that are based on 
TeX. Of them, there are LaTeX, and ConTeXt.
LaTeX is very well documented and popular; ConTeXt, on the other hand, 
is apparently very powerful and capable, but is not as well documented.


There are things that are spectacularly well documented, others that 
only show hints, and leave it up to the user to figure things out on 
their own, and others still that won't even compile on a more recent 
version of ConTeXt (apparently the proper way to access a counter's 
value in ConTeXt is to use \getnumber or \convertednumber, and not 
\getcounter. That's just an example).


This is wrong, the counter commands are official and the number variants 
are kept for backwards compatibility with old styles.


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: Context lmtx for 32bit under LUBUNTU 18.04

2024-02-13 Thread Henning Hraban Ramm

Am 13.02.24 um 17:29 schrieb Alain Delmotte:

Hi,

A month or so ago Hans provided a new upload (thanks I managed to get 
and install it on my Windows 10 64b). At that time I was struggling for 
having my computers back in order (that appends sometimes).


Now I'd like to have LMTX on an old but still used (when travelling) 
portable under lubuntu 18.04 32Bits.


There is no more executable available on pragma and I am using Context 
from TeX Live, but it is the 2017 version.


I can do with it, but it would be better to have Context lmtx latest.

Is it possible to have it? But if this a too complicate problem, I'll 
stand with the TeX Live Context.


Just compile it yourself.


In your installation root (where install.sh is):

PWD=`pwd`
cd tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-linux/bin/"
cd "$PWD"


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] Context lmtx for 32bit under LUBUNTU 18.04

2024-02-13 Thread Alain Delmotte

Hi,

A month or so ago Hans provided a new upload (thanks I 
managed to get and install it on my Windows 10 64b). At that 
time I was struggling for having my computers back in order 
(that appends sometimes).


Now I'd like to have LMTX on an old but still used (when 
travelling) portable under lubuntu 18.04 32Bits.


There is no more executable available on pragma and I am 
using Context from TeX Live, but it is the 2017 version.


I can do with it, but it would be better to have Context 
lmtx latest.


Is it possible to have it? But if this a too complicate 
problem, I'll stand with the TeX Live Context.


Thanks for the system anyway.

Regards,

Alain Delmotte
Montpellier, France

___
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: Section numbering does not work

2024-02-13 Thread Oliver Marugg



> Am 13.02.2024 um 16:54 schrieb Wolfgang Schuster 
> :
> 
> Oliver Marugg schrieb am 13.02.2024 um 00:17:
>> Hi
>> Section numbering does not work until I remove \startbackmatter 
>> \stopbackmatter. I had a longer text file and I stripped it down until I 
>> found this?
>> Greets Oliver
>> Running freshly installed context ARM64 on m1 and updated it via sh 
>> install.sh on ARM64 macos 14.3.1:
>> 
>> context --version
>> mtx-context | ConTeXt Process Management 1.05
>> mtx-context |
>> mtx-context | main context file: 
>> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2024.01.24 22:39
>> mtx-context | main context file: 
>> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
>> mtx-context | current version: 2024.01.24 22:39
>> --
>> Stripped down MWE:
>> \setuppapersize[A4] [A4]
>> \starttext
>> \completecontent[criterium=all]
>> % ToC
>> \page
>> \chapter{CHAP 1}
>> TEXT
>> \startbackmatter
>> \startchapter[title=Literature]
>> \placelistofpublications
>> \stopchapter
>> \stopbackmatter
>> \stoptext
> 
> Besides enabling numbering for the backpart you can use the appendix block 
> which has numbering by default.
> 
> %\defineconversionset[appendix:default][n]
> 
> \starttext
> 
> \startfrontmatter
>  \completecontent[criterium=all]
> \stopfrontmatter
> 
> \startbodymatter
>  \startchapter[title=CHAP 1]
>  TEXT
>  \stopchapter
> \stopbodymatter
> 
> \startappendices
>  \startchapter[title=Literature]
>  \placelistofpublications
>  \stopchapter
> \stopappendices
> 
> \stoptext
> 
> Wolfgang



Thanks Wolfgang for your practical hint. 

___
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: Section numbering does not work

2024-02-13 Thread Wolfgang Schuster

Oliver Marugg schrieb am 13.02.2024 um 00:17:

Hi

Section numbering does not work until I remove \startbackmatter 
\stopbackmatter. I had a longer text file and I stripped it down until I found 
this?

Greets Oliver


Running freshly installed context ARM64 on m1 and updated it via sh install.sh 
on ARM64 macos 14.3.1:

context --version
mtx-context | ConTeXt Process Management 1.05
mtx-context |
mtx-context | main context file: 
/Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2024.01.24 22:39
mtx-context | main context file: 
/Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2024.01.24 22:39
--

Stripped down MWE:

\setuppapersize[A4] [A4]
\starttext
\completecontent[criterium=all]
% ToC
\page
\chapter{CHAP 1}
TEXT
\startbackmatter
\startchapter[title=Literature]
\placelistofpublications
\stopchapter
\stopbackmatter
\stoptext


Besides enabling numbering for the backpart you can use the appendix 
block which has numbering by default.


%\defineconversionset[appendix:default][n]

\starttext

\startfrontmatter
  \completecontent[criterium=all]
\stopfrontmatter

\startbodymatter
  \startchapter[title=CHAP 1]
  TEXT
  \stopchapter
\stopbodymatter

\startappendices
  \startchapter[title=Literature]
  \placelistofpublications
  \stopchapter
\stopappendices

\stoptext

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: removing whitespace

2024-02-13 Thread Wolfgang Schuster

Michael Guravage schrieb am 13.02.2024 um 14:01:
While reading the documentation I spotted something similar from which I 
derived this solution:


\setupinteraction[state=start]
\def\squeeze#1%
   {
     \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})]
   }



ConTeXt has a Lua function to remove spaces.

\starttext
\cldcontext{string.nospaces("01234 56789")}
\stoptext

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: Section numbering does not work

2024-02-13 Thread Oliver Marugg
Many thanks Taco, that works indeed;-)


> Am 13.02.2024 um 09:29 schrieb Taco Hoekwater :
> 
> 
> 
>> On 13 Feb 2024, at 00:17, Oliver Marugg  wrote:
>> 
>> Hi 
>> 
>> Section numbering does not work until I remove \startbackmatter 
>> \stopbackmatter. I had a longer text file and I stripped it down until I 
>> found this?
> 
> IIRC :
> 
> \setupsectionblock[backpart][number=yes]
> 
> Best wishes,
> Taco
> 
>> Greets Oliver
>> 
>> 
>> Running freshly installed context ARM64 on m1 and updated it via sh 
>> install.sh on ARM64 macos 14.3.1:
>> 
>> context --version
>> mtx-context | ConTeXt Process Management 1.05
>> mtx-context |
>> mtx-context | main context file: 
>> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2024.01.24 22:39
>> mtx-context | main context file: 
>> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
>> mtx-context | current version: 2024.01.24 22:39
>> --
>> 
>> Stripped down MWE:
>> 
>> \setuppapersize[A4] [A4] 
>> \starttext
>> \completecontent[criterium=all]
>> % ToC
>> \page
>> \chapter{CHAP 1}
>> TEXT
>> \startbackmatter
>> \startchapter[title=Literature]
>> \placelistofpublications
>> \stopchapter
>> \stopbackmatter
>> \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
>> ___
> 
> — 
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
> 
> 
> ___
> 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: removing whitespace

2024-02-13 Thread Michael Guravage
While reading the documentation I spotted something similar from which I
derived this solution:

\setupinteraction[state=start]
\def\squeeze#1%
  {
\goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})]
  }

\starttext
  Call \squeeze{01234 56789}
\stoptext

With kind regards,

Michael




On Tue, Feb 13, 2024 at 2:54 AM Michael Guravage <
gurav...@literatesolutions.com> wrote:

> In the example below I pass the macro a string with a space, but the space
> should not appear in the url.
>
> I've tried using \ctxlua to invoke string substitution, but without
> success. What is the proper way to remove this space, and to perform string
> manipulation more generally?
>
> \setupinteraction[state=start]
>
> \def\squeeze#1%
>   {\goto{#1}[url(tel:#1)]}
>
> \starttext
>   Call \squeeze{01234 56789}
> \stoptext
>
> --
> With kind regards,
>
> Michael
>
> ___
> 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: Section numbering does not work

2024-02-13 Thread Taco Hoekwater


> On 13 Feb 2024, at 00:17, Oliver Marugg  wrote:
> 
> Hi 
> 
> Section numbering does not work until I remove \startbackmatter 
> \stopbackmatter. I had a longer text file and I stripped it down until I 
> found this?

IIRC :

\setupsectionblock[backpart][number=yes]

Best wishes,
Taco

> Greets Oliver
> 
> 
> Running freshly installed context ARM64 on m1 and updated it via sh 
> install.sh on ARM64 macos 14.3.1:
> 
> context --version
> mtx-context | ConTeXt Process Management 1.05
> mtx-context |
> mtx-context | main context file: 
> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2024.01.24 22:39
> mtx-context | main context file: 
> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2024.01.24 22:39
> --
> 
> Stripped down MWE:
> 
> \setuppapersize[A4] [A4] 
> \starttext
> \completecontent[criterium=all]
> % ToC
> \page
> \chapter{CHAP 1}
> TEXT
> \startbackmatter
> \startchapter[title=Literature]
> \placelistofpublications
> \stopchapter
> \stopbackmatter
> \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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


___
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: regular online meet-up

2024-02-13 Thread Henning Hraban Ramm

Hi Willi,

I guess you already saw the other message that I really meant Wednesday, 
14th, regardless of Valentine and Ash Wednesday.


In Germany, this is a day when political parties have a very unfriendly 
conference with extra polemic speeches. We can do better ;)

https://de.wikipedia.org/wiki/Politischer_Aschermittwoch

Hraban

Am 12.02.24 um 19:48 schrieb Willi Egger:

Hi Hraban,

hm there is a incongruence of the date. Either it is Wednesday the 14th of 
February or Tuesday the 13th of February… Which correct?

Cheers
Willi


On 10 Feb 2024, at 23:01, Henning Hraban Ramm  wrote:

You’re invited to our regular online meet-up, this upcoming
Wednesday, February 13th, 19:00 CET (UTC+1)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Do you have a subject that you’d like to talk about?
(I hope I’ll manage to show a poster draft…)

Looking forward to seeing you,
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
___