[NTG-context] makeups with local setups

2021-06-29 Thread Jan U. Hasecke


Dear all,

how can I use setups in makeups locally? Or do I miss something.

In this sample the interlinespace of the coverpage makeup is also used 
after stopmakeup.


Is there a way to define the setups values only locally inside the 
makeup? Or is it better to use something else?


\setupinterlinespace [line=2ex]

\startsetups[setups:cover]
  \setupinterlinespace [line=6ex]
\stopsetups

\definemakeup
   [coverpage]
   [pagestate=start]

\setuplayout
   [coverpage]
   [setups=setups:cover]

\starttext

\startmakeup
  [coverpage]

  \input lorem

\stopmakeup

% from here I expect the interlinespace of line=2ex.

\input lorem

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] log: use \thinspace instead of \,

2021-06-29 Thread Alan Braslau
On Tue, 29 Jun 2021 14:06:02 +0200
Henning Hraban Ramm  wrote:

> Maybe, but in running text I use \, all the time e.\,g. in
> abbreviations or for numbers (10\,000). At least in German typography
> these “spatiums” are necessary.

In French typography as well.

Indeed,
American: 10,000.00
French:   10\,000,00
(and other languages).

This is quite readable, and much preferred to the use of any kind of
macro that might format numbers according to language.

I find that students often need such helpers when deciphering many
digits.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] makeups with local setups

2021-06-29 Thread Hans Hagen

On 6/29/2021 2:47 PM, Jan U. Hasecke wrote:


Dear all,

how can I use setups in makeups locally? Or do I miss something.

In this sample the interlinespace of the coverpage makeup is also used 
after stopmakeup.


Is there a way to define the setups values only locally inside the 
makeup? Or is it better to use something else?


\setupinterlinespace [line=2ex]

\startsetups[setups:cover]
   \setupinterlinespace [line=6ex]
\stopsetups

\definemakeup
    [coverpage]
    [pagestate=start]

\setuplayout
    [coverpage]
    [setups=setups:cover]

\starttext

\startmakeup
   [coverpage]

   \input lorem

\stopmakeup

% from here I expect the interlinespace of line=2ex.

\input lorem

TIA
juh

\setuplocalinterlinespace


-
  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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-29 Thread Hans Hagen

On 6/29/2021 12:53 PM, denis.ma...@unibe.ch wrote:

Hi,

may I reask the question from below? Would be really great if something 
grouped endnotes were possible...


i need some lines to the code base for that (everything is actually 
already in place to support that)



\setuphead[part][placehead=yes]

\setupnotes
  [endnote]
  [way=bypart]

\setupnotes
  [endnote]
  [location=list]

\starttext

\part{First Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\part{Second Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\page

\setuplist
  [part]
  [after={\blank[samepage,big]\placelist[endnote][criterium=part]}]

\placelist
  [part]
  [criterium=all]

% \placelist
%   [endnote]
%   [criterium=text]

\stoptext

You can always ask for alist of notes but in this case there have not 
yet notes been flushed so that's what i need to add.


Hans



Best

Denis

*Von:*ntg-context  *Im Auftrag von 
*denis.ma...@unibe.ch

*Gesendet:* Donnerstag, 24. Juni 2021 13:05
*An:* ntg-context@ntg.nl
*Betreff:* [NTG-context] Heading for endnotes / grouped by chapter endnotes

Hi,

I have two questions regarding endnotes:

1. Is there a way to add a heading automatically to the endnotes placed 
with \placenotes[endnote]?


2. I reset the endnote number at each part. Is there a way to insert the 
title of the corresponding part heading to the endnotes?


I have searched the wiki and the mailing list, and I’ve found two 
relevant questions, but no answers.


https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html 



https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html 



Best,

Denis

===

\setuphead[part][placehead=yes]

\setupnotation

   [endnote]

   [way=bypart]

\starttext

\part{First Part}

asdf\endnote{asdf}

jklö\endnote{jklö}

\part{Second Part}

asdf\endnote{asdf}

jklö\endnote{jklö}

\placenotes[endnote]

\stoptext

=


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] log: use \thinspace instead of \,

2021-06-29 Thread Henning Hraban Ramm

> Am 29.06.2021 um 12:34 schrieb Hans Hagen :
> 
> On 6/29/2021 1:08 AM, Rik Kabel wrote:
>> All,
>> Examining recent log files, I see the message
>>suggestion  > use \thinspace instead of \,
>> When was this instituted?
> 
> a while ago
> 
>> What does it mean? Has \, been deprecated? For many years it was recommended 
>> as a short form of \thinspace, and implementing the replacement would 
>> certainly result in much less readable source.
> not depricated but these single character commands are somewhat weird (i 
> always forget what they mean, not that i ever use them; when many are needed 
> one can wonder if something else should be fixed instead)
> 
> (for instance in macro definitions i'd not use \, but the more verbose 
> \thinspace)

Maybe, but in running text I use \, all the time e.\,g. in abbreviations or for 
numbers (10\,000). At least in German typography these “spatiums” are necessary.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-29 Thread Jan U. Hasecke

Hi Wolfgang,

I am late as I was busy elsewhere, but thanks a lot for your help.

Am 25.06.21 um 13:44 schrieb Wolfgang Schuster:


\startsetups [userdata:shiftblock]
     \signalrightpage
     \doifelserightpage {
     \startnarrower[2*left,-2*right]
     \getuserdata
     \stopnarrower
     } {
     \startnarrower[-2*left,2*right]
     \getuserdata
     \stopnarrower
     }
\stopsetups

\defineuserdataalternative
     [shiftblock]
     [renderingsetup=userdata:shiftblock]

\defineuserdata
     [shiftblock]
     [before=\blank,
  after=\blank,
  alternative=shiftblock]

\setuppagenumbering
     [alternative=doublesided]

\starttext

\startbuffer
     \dorecurse{2}{\input knuth\par}
     \startuserdata[shiftblock]
     \input ward
     \stopuserdata
     \dorecurse{2}{\input zapf\par}
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext


I'll try to adapt this into my project. Thanks a lot.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] hyphenate nothyphenated

2021-06-29 Thread Hans Hagen

On 6/29/2021 12:06 PM, Steffen Wolfrum wrote:

When running this mwe with luatex, the command \- could be used to manually 
break the line, even though it is set up nothyphenated.

When running luametatex the word does not break:


\setuppapersize[A10]

\showframe

\setuphead[chapter][align={nothyphenated}]

\starttext

\chapter{abc\-def}

\stoptext
 
Is this intended?

well, you ask for nothyphenated; we could define

\permanent\protected\def\-%
  {\begingroup
   \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
   \endgroup}

i will ponder this

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-29 Thread denis.maier
Hi,

may I reask the question from below? Would be really great if something grouped 
endnotes were possible...

Best
Denis

Von: ntg-context  Im Auftrag von 
denis.ma...@unibe.ch
Gesendet: Donnerstag, 24. Juni 2021 13:05
An: ntg-context@ntg.nl
Betreff: [NTG-context] Heading for endnotes / grouped by chapter endnotes

Hi,

I have two questions regarding endnotes:

1. Is there a way to add a heading automatically to the endnotes placed with 
\placenotes[endnote]?

2. I reset the endnote number at each part. Is there a way to insert the title 
of the corresponding part heading to the endnotes?

I have searched the wiki and the mailing list, and I've found two relevant 
questions, but no answers.
https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html

Best,
Denis

===
\setuphead[part][placehead=yes]
\setupnotation
  [endnote]
  [way=bypart]

\starttext

\part{First Part}
asdf\endnote{asdf}

jklö\endnote{jklö}


\part{Second Part}

asdf\endnote{asdf}

jklö\endnote{jklö}


\placenotes[endnote]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new upload lmtx

2021-06-29 Thread Hans Hagen

On 6/29/2021 11:23 AM, denis.ma...@unibe.ch wrote:

Any progress on this? That sounds like a really useful feature for multilingual 
texts.
no, it might become stable by the time Thomas has finished his book and 
we know if it works out well


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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] log: use \thinspace instead of \,

2021-06-29 Thread Hans Hagen

On 6/29/2021 1:08 AM, Rik Kabel wrote:

All,

Examining recent log files, I see the message

suggestion  > use \thinspace instead of \,

When was this instituted?


a while ago

What does it mean? Has \, been deprecated? For many years it was 
recommended as a short form of \thinspace, and implementing the 
replacement would certainly result in much less readable source.
not depricated but these single character commands are somewhat weird (i 
always forget what they mean, not that i ever use them; when many are 
needed one can wonder if something else should be fixed instead)


(for instance in macro definitions i'd not use \, but the more verbose 
\thinspace)


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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] error luatex exceptions

2021-06-29 Thread Steffen Wolfrum
While luametatex works fine, running this mwe with luatex ends in an error:


\startexceptions

con-text

\stopexceptions

\starttext

context

\stoptext



...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:198: attempt to 
call a nil value (global 'sortedhash')
stack traceback:
...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:198: in 
upvalue 'sethjcodes'
...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:551: in 
upvalue 'collecthjcodes'
...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:570: in 
function <...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:566>
(...tail calls...)

 1 % engine=luatex
 2 %!TEX TS-program = ConTeXt LMTX
 3 
 4 \startexceptions
 5 
 6 con-text
 7 
 8 >>  \stopexceptions
 9 
10 \starttext
11 
12 context
13 
14 \stoptext

mtx-context | fatal error: return code: 256


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] hyphenate nothyphenated

2021-06-29 Thread Steffen Wolfrum
When running this mwe with luatex, the command \- could be used to manually 
break the line, even though it is set up nothyphenated.

When running luametatex the word does not break:


\setuppapersize[A10]

\showframe

\setuphead[chapter][align={nothyphenated}]

\starttext

\chapter{abc\-def}

\stoptext


Is this intended?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new upload lmtx

2021-06-29 Thread denis.maier
Any progress on this? That sounds like a really useful feature for multilingual 
texts. 

Best,
Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Pablo
> Rodriguez
> Gesendet: Mittwoch, 23. Juni 2021 16:53
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] new upload lmtx
> 
> On 6/18/21 11:46 PM, Hans Hagen wrote:
> > Hi,
> >
> > End of the week so time to wrap up.
> > [...]
> > (2) (Pablo:) There is some progress with facing floats that Thomas
> > will check out for real usage. So, still experimental.
> 
> Excellent news, Hans.
> 
> Many thanks for your work, Hans and Thomas.
> 
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___