Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Hans Hagen via ntg-context

On 12/24/2021 5:45 PM, Jason Ross via ntg-context wrote:

Dear list,

Is it possible to set the maximum table of contents depth to a number 
rather than providing an explicit list of section names?



Background:

I am developing an exporter for Org mode. In Org, users can specify the 
number of levels they want in the table of contents with a number. I 
currently do this by having the sectioning commands be known to the 
exporter so I can generate a command like

     \setupcombinedlist
   [content]
   [list={section,subsection}]
for n=2.

I'm considering using  \start/stopsectionlevel for sectioning commands 
instead. That way, users could add \definesectionlevels to the document 
preamble to use whatever sectioning scheme they wanted. However, this 
would mean that the exporter wouldn't know what sectioning commands to 
use the TOC setup.
given the amount of reactions i added a simple levels feature ... the 
best i can do for now is:


\placelist[chapter,section,subsection][levels=2]

keep in mind that all should work with the already present selective 
placement and filtering (criterium)


uploaded

-
  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] upload

2021-12-24 Thread Hans Hagen via ntg-context

On 12/24/2021 11:08 PM, Jairo A. del Rio wrote:

Hi, Hans. In Ubuntu 20.04:

resolvers       > lua > loading file 
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' 
succeeded


fatal error: storage cannot be marked

strange ... must be a mismatch in binary ... i'll reupload


-
  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] upload

2021-12-24 Thread Rik Kabel via ntg-context

Same with W64 on W11.

On 2021-12-24 17:08, Jairo A. del Rio via ntg-context wrote:

Hi, Hans. In Ubuntu 20.04:

resolvers       > lua > loading file 
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' 
succeeded


fatal error: storage cannot be marked

Jairo


El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context 
(ntg-context@ntg.nl) escribió:


Hi,

When wrapping up before the weekend I uploaded a new lmtx (bottom
floats
fixed afaiks, but hat mechanism might see some improvements anyway
next
year; exit codes more reliable; some low level tracing; side float
coming loose from section head issue solved; ...).

I'm experimenting with some more efficient low level state info
and in
the process ran into an issue / interference with (also low level)
attributes. I'm not sure if I solved it (work in progress, i need
to run
into another border case first which may take ages) but the test
suite
runs ok so ...

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

___


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


Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Bruce Horrocks via ntg-context


> On 24 Dec 2021, at 16:45, Jason Ross via ntg-context  
> wrote:
> 
> Dear list,
> 
> Is it possible to set the maximum table of contents depth to a number rather 
> than providing an explicit list of section names?
> 
> 
> Background:
> 
> I am developing an exporter for Org mode. In Org, users can specify the 
> number of levels they want in the table of contents with a number. I 
> currently do this by having the sectioning commands be known to the exporter 
> so I can generate a command like
>\setupcombinedlist
>  [content]
>  [list={section,subsection}]
> for n=2.
> 
> I'm considering using  \start/stopsectionlevel for sectioning commands 
> instead. That way, users could add \definesectionlevels to the document 
> preamble to use whatever sectioning scheme they wanted. However, this would 
> mean that the exporter wouldn't know what sectioning commands to use the TOC 
> setup.

Can you not specify a full list of sections in your exporter code and then 
truncate that list to the appropriate value of n before generating the ConTeXt 
source from the truncated list?

Assuming you are using an Emacs macro to do the export then the following code 
will return the first 2 from the list of section types:

(let ((list '("part" "chapter" "section" "subsection" "subsubsection" 
"subsubsubsection" "subsubsubsubsection")))
  (butlast list (- (length list) 2)))

I stole that from StackOverflow so I'll leave it to you work out how to get 
your depth variable substituted for the 2. :-)

Note that you probably don't want "part" but I include it for completeness. 
Best to start with "chapter".
—
Bruce Horrocks
Hampshire, UK

___
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] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-24 Thread Bruce Horrocks via ntg-context


> On 24 Dec 2021, at 18:34, Thomas Savary via ntg-context  
> wrote:
> 
> Hello, dear list !
> 
> In order to fix a few bugs in some OpenType features included in EB Garamond 
> font provided by Google Fonts, I am trying to remove some ligatures 
> (erroneous in some contexts) with fonts.handlers.otf.addfeature.
> 
> I must be missing something, because I can't get it to work.
> 
> Here is a minimal —non working—example :-)
> (The attempted removal (“f_i” → “fi” only before “o”) is of course 
> irrelevant. I chose it just for the sole purpose of this test, to provide a 
> simple example. What I am trying to achieve is more complex, with other 
> ligatures.)
> 
> fonts.handlers.otf.addfeature{
> name = "unfio",
> type = "chainsubstitution",
> lookups = {
> { type = "multiple",
> data = { [ "f_i" ] = { "f", "i" } }
> }
> }
> rules = {
> { after = { { "o" } },
> current = { { "f_i" } },
> lookups = { 1 } }
> }
> }
> }
> 
> Could someone please explain to me what I did wrong ?

Firstly, you have an extra } in the example above.

Secondly, rules need to come inside a data section. Thus (untested):

fonts.handlers.otf.addfeature{
name = "unfio",
type = "chainsubstitution",
lookups = {
{
type = "substitution",
data = {
[ "f_i" ] = { "f", "i" }
}
}
},
data = {
rules = {
{
after = { { "o" } },
current = { { "f_i" } },
lookups = { 1 }
}
}
}
}

Regards,
—
Bruce Horrocks
Hampshire, UK

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

2021-12-24 Thread Jairo A. del Rio via ntg-context
Hi, Hans. In Ubuntu 20.04:

resolvers   > lua > loading file
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt'
succeeded

fatal error: storage cannot be marked

Jairo


El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> When wrapping up before the weekend I uploaded a new lmtx (bottom floats
> fixed afaiks, but hat mechanism might see some improvements anyway next
> year; exit codes more reliable; some low level tracing; side float
> coming loose from section head issue solved; ...).
>
> I'm experimenting with some more efficient low level state info and in
> the process ran into an issue / interference with (also low level)
> attributes. I'm not sure if I solved it (work in progress, i need to run
> into another border case first which may take ages) but the test suite
> runs ok so ...
>
> 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
>
> ___
>
___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context

On 12/24/21 1:48 PM, Denis Maier via ntg-context wrote:

Anyway, I agree that a solution via hierarchy levels would be nice.


That's what I'm hoping to achieve. I'm not familiar enough with 
low-level ConTeXt to do something like this but it seems like it ought 
to be possible.



You don't do that. If you provide default a default sectionlevel 
scheme, you'll know what toc:2 means.
If a user uses a different scheme provided via 
#+Context_Section_Levels you can use that to adjust the meaning of 
toc:2. But if a user uses the default setting toc:2 should be fine. 
Does that make sense?


I understand. The issue I see is that this introduces a coupling between 
section structure and table of contents that could be confusing for 
users, and also makes the interface more complicated by adding another 
keyword.


I am trying to take advantage of the flexibility of ConTeXt for most of 
the configuration, because a user is more likely to be familiar with 
ConTeXt than with my specific elisp module.



Jason
___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   Anyway, I agree that a solution via hierarchy levels would be nice.
   
  
  
   
Denis Maier via ntg-context  hat am 24.12.2021 22:43 geschrieben:
   
   

   
   

   
   

   
   

 Jason Ross  hat am 24.12.2021 22:37 geschrieben:


 


 


 On 12/24/21 1:29 PM, Denis Maier wrote:


 


 
  I probably wasn't clear. You will support toc:2.
 
 
  This:
 
 
  #+Context_Section_Levels: '(chapter section subsection)
 
 
  will translate into a definesectionlevels command and inform your
 
 
  exporter about the used sectionlevels. Once the used commands are known
 
 
  it should be possible to map toc:2 to a combinedlist definition.
 


 I can't require the user to use more document keywords to get the same


 functionality they already have with the other exporters by default.

   
   
You don't do that. If you provide default a default sectionlevel scheme, you'll know what toc:2 means. 

   
   
If a user uses a different scheme provided via #+Context_Section_Levels you can use that to adjust the meaning of toc:2. But if a user uses the default setting toc:2 should be fine. Does that make sense? 

   
   

   
   
Denis 

   
   

 


 I am really specifically looking for a way _in ConTeXt_ to create a


 table of contents with depth `n` regardless of the sectioning used.


 


 Jason

   
  
 

___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   
  
  
   
Jason Ross  hat am 24.12.2021 22:37 geschrieben:
   
   

   
   

   
   
On 12/24/21 1:29 PM, Denis Maier wrote:
   
   

   
   

 I probably wasn't clear. You will support toc:2.


 This:


 #+Context_Section_Levels: '(chapter section subsection)


 will translate into a definesectionlevels command and inform your


 exporter about the used sectionlevels. Once the used commands are known


 it should be possible to map toc:2 to a combinedlist definition.

   
   
I can't require the user to use more document keywords to get the same
   
   
functionality they already have with the other exporters by default.
   
  
  
   You don't do that. If you provide default a default sectionlevel scheme, you'll know what toc:2 means.
   
  
  
   If a user uses a different scheme provided via #+Context_Section_Levels you can use that to adjust the meaning of toc:2. But if a user uses the default setting toc:2 should be fine. Does that make sense?
   
  
  
   
  
  
   Denis
   
  
  
   
   
I am really specifically looking for a way _in ConTeXt_ to create a
   
   
table of contents with depth `n` regardless of the sectioning used.
   
   

   
   
Jason
   
  
 

___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context



On 12/24/21 1:29 PM, Denis Maier wrote:


I probably wasn't clear. You will support toc:2.
This:
#+Context_Section_Levels: '(chapter section subsection)
will translate into a definesectionlevels command and inform your 
exporter about the used sectionlevels. Once the used commands are known 
it should be possible to map toc:2 to a combinedlist definition.


I can't require the user to use more document keywords to get the same 
functionality they already have with the other exporters by default.


I am really specifically looking for a way _in ConTeXt_ to create a 
table of contents with depth `n` regardless of the sectioning used.


Jason
___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   
  
  
   
Jason Ross via ntg-context  hat am 24.12.2021 22:22 geschrieben:
   
   

   
   

   
   
On 12/24/21 1:20 PM, Denis Maier via ntg-context wrote:
   
   

   
   
>>
   
   
>> I see.
   
   
>>
   
   
>> Next try: add a new option
   
   
>>
   
   
>> "#+Context_Section_Levels:
   
   
>>
   
   
>> Thus will take an alist. Now you'll know about the user defined
   
   
>> structure levels and the toc option can be translated to the
   
   
>> corresponding setting. (Here again, you can if course define
   
   
>> reasonable defaults.)
   
   

 


 Actually,  you don't need an alist. A simple quotes list should be enough:


 


 #+Context_Section_Levels: '(chapter section subsection)


 >


 
  Denis
 

   
   

   
   

   
   
That isn't going to work. The interface needs to be the same as for the
   
   
other exporters for TOC control. I need to support "toc:2".
   
   
  
  
   I probably wasn't clear. You will support toc:2. 
   
  
  
   This:
   
  
  
   #+Context_Section_Levels: '(chapter section subsection)
  
  
   will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. Once the used commands are known it should be possible to map toc:2 to a combinedlist definition.
   
  
  
   
Jason
   
   
___
   
   
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
___


Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context



On 12/24/21 1:20 PM, Denis Maier via ntg-context wrote:



I see.

Next try: add a new option

"#+Context_Section_Levels:

Thus will take an alist. Now you'll know about the user defined 
structure levels and the toc option can be translated to the 
corresponding setting. (Here again, you can if course define 
reasonable defaults.)


Actually,  you don't need an alist. A simple quotes list should be enough:

#+Context_Section_Levels: '(chapter section subsection)


Denis



That isn't going to work. The interface needs to be the same as for the 
other exporters for TOC control. I need to support "toc:2".


Jason
___
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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   
  
  
   
Denis Maier via ntg-context  hat am 24.12.2021 22:13 geschrieben:
   
   

   
   

   
   

   
   

 Jason Ross via ntg-context  hat am 24.12.2021 18:53 geschrieben:


 


 


 On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote:


 
  For the six = for the toc...
 
 
  
   Denis Maier via ntg-context  hat am 24.12.2021
  
  
   18:42 geschrieben:
  
  
   
  
  
   
  
  
   Can't you just define a default structurelevel scheme and a default
  
  
   combined list for the six. If a user redefines the structure level
  
  
   scheme, they will just redefine the combined list as well. Would that
  
  
   work?
  
  
   
  
  
   Denis
  
 


 


 The way the user specifies TOC depth in Org is e.g. "#+OPTIONS: toc:2".


 All exporters support that method.

   
   

   
   
I see. 

   
   

   
   
Next try: add a new option 

   
   

   
   
"#+Context_Section_Levels:
   
   

   
   
Thus will take an alist. Now you'll know about the user defined structure levels and the toc option can be translated to the corresponding setting. (Here again, you can if course define reasonable defaults.)
   
  
  
   
  
  
   Actually,  you don't need an alist. A simple quotes list should be enough:
   
  
  
   
  
  
   #+Context_Section_Levels: '(chapter section subsection) 
   
  
  

   
   

   
   
Denis 

   
   

 


 Jason


 ___


 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
___


Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   
  
  
   
Jason Ross via ntg-context  hat am 24.12.2021 18:53 geschrieben:
   
   

   
   

   
   
On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote:
   
   

 For the six = for the toc...


 
  Denis Maier via ntg-context  hat am 24.12.2021
 
 
  18:42 geschrieben:
 
 
  
 
 
  
 
 
  Can't you just define a default structurelevel scheme and a default
 
 
  combined list for the six. If a user redefines the structure level
 
 
  scheme, they will just redefine the combined list as well. Would that
 
 
  work?
 
 
  
 
 
  Denis
 

   
   

   
   
The way the user specifies TOC depth in Org is e.g. "#+OPTIONS: toc:2".
   
   
All exporters support that method.
   
  
  
   
  
  
   I see.
   
  
  
   
  
  
   Next try: add a new option 
   
  
  
   
  
  
   "#+Context_Section_Levels:
  
  
   
  
  
   Thus will take an alist. Now you'll know about the user defined structure levels and the toc option can be translated to the corresponding setting. (Here again, you can if course define reasonable defaults.)
   
  
  
   
  
  
   Denis
   
  
  
   
   
Jason
   
   
___
   
   
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
___


[NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-24 Thread Thomas Savary via ntg-context
Hello, dear list !

In order to fix a few bugs in some OpenType features included in EB Garamond 
font provided by 
Google Fonts, I am trying to remove some ligatures (erroneous in some contexts) 
with 
fonts.handlers.otf.addfeature.

I must be missing something, because I can't get it to work.

Here is a minimal —non working—example :-)
(The attempted removal (“f_i” → “fi” only before “o”) is of course irrelevant. 
I chose it just for the 
sole purpose of this test, to provide a simple example. What I am trying to 
achieve is more complex, 
with other ligatures.) 

fonts.handlers.otf.addfeature{
name = "unfio",
type = "chainsubstitution",
lookups = {
{ type = "multiple",
data = { [ "f_i" ] = { "f", "i" } }
}
}
rules = {
{ after = { { "o" } },
current = { { "f_i" } },
lookups = { 1 } }
}
}
}

Could someone please explain to me what I did wrong ?

Thomas Savary
1 le Grand-Plessis
F-85340 L’Île-d’Olonne
Tél. 06 22 82 61 34
https://compo85.fr/
___
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] upload

2021-12-24 Thread Hans Hagen via ntg-context

Hi,

When wrapping up before the weekend I uploaded a new lmtx (bottom floats 
fixed afaiks, but hat mechanism might see some improvements anyway next 
year; exit codes more reliable; some low level tracing; side float 
coming loose from section head issue solved; ...).


I'm experimenting with some more efficient low level state info and in 
the process ran into an issue / interference with (also low level) 
attributes. I'm not sure if I solved it (work in progress, i need to run 
into another border case first which may take ages) but the test suite 
runs ok so ...


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] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context



On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote:

For the six = for the toc...
Denis Maier via ntg-context  hat am 24.12.2021 
18:42 geschrieben:



Can't you just define a default structurelevel scheme and a default 
combined list for the six. If a user redefines the structure level 
scheme, they will just redefine the combined list as well. Would that 
work?


Denis


The way the user specifies TOC depth in Org is e.g. "#+OPTIONS: toc:2". 
All exporters support that method.


Jason
___
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] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
That may work with something like

```
\cite[loctext={{2},{2}}][{na2006,clark1989}]
```

or

```
\autocite[{{\loc[2]},{\loc[2]}}]{{na2006,clark1989}}
```

(I know that the ConTeXt \cite command supports multicites with
comma-separated entries, but I forget exactly what the expected syntax
looks like.)

Joey

On Fri, Dec 24, 2021 at 10:14 AM Denis Maier via ntg-context <
ntg-context@ntg.nl> wrote:

> biblatex has special multicite commands=> e.g. autocites. could that be
> used in that case?
>
> Denis
>
> Joey McCollum via ntg-context  hat am 24.12.2021
> 15:43 geschrieben:
>
>
> Joel,
>
> Thanks for mentioning this! I think I've run into the same issue before,
> but I wasn't sure how I should go about fixing it, so this might be a good
> place to get suggestions from others.
>
> The \autocite, \inlinecite, \parencite, and \footcite helper commands are
> intended to handle trailing punctuation intelligently (in order to do
> things like move punctuation after a footnote citation before the footnote
> marker), so they treat the next character after the command as a "hidden"
> parameter. This works as expected if the next character is a punctuation
> character or something like a \blank command, but if it's something like a
> \section command (or another \autocite command, as you've discovered), then
> this causes problems.
>
> That said, I think you should be able to get your ConTeXt to compile if
> you follow your \autocite command with punctuation or some form of
> whitespace (which is why a double newline works, as you've discovered,
> while a single newline does not).
>
> I'd like to keep the intelligent trailing punctuation adjustment feature
> if possible, but this problem definitely needs to be fixed. If anyone has
> any suggestions, I welcome them! My hope is that this can be resolved with
> a simple check.
>
> Joey
>
> On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context 
> wrote:
>
> I am using the ConTeXt-SBL module to handle the citations in my article.
> Using the plain \cite[na2006] command has worked fine.
>
> But there are some situations where I want the footnote to include page
> number details. I tried using \cite[extra=2][na2006], but that doesn't seem
> compatible with ConTeXt-SBL. I checked the documentation, and if I
> understand correctly, I should use the autocite command to add page numbers
> to my citation? Like this:
>
> \autocite[{\loc[2]}][]{na2006}
>
> This solution works in 95% of cases, but when I need to cite another book
> immediately after that, it throws up errors:
>
>
> This won't compile:
>
> \autocite[{\loc[2]}][]{na2006}
> \autocite[{\loc[2]}][]{clark1989}
>
> This won't compile:
>
> \autocite[{\loc[2]}][]{na2006}%
> %
>\autocite[{\loc[2]}][]{clark1989}
>
> This also won't compile:
>
> \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989}
>
> After much trial and error, I found this will compile:
>
> \autocite[{\loc[2]}][]{na2006}
>
> \autocite[{\loc[2]}][]{clark1989}
>
> The problem with this last example, is if my citations appear within the
> paragraph, then I end up with a paragraph break in the wrong place!
>
> Here is my minimum working example, which won't compile unless I add a
> blank line between the two citations.
>
> \usemodule[publ-imp-sbl]
> \startbuffer [bib]
>
> @Article{na2006,
> title={Volcanoes \word{of} New Mexico},
> year={2006},
> journal={New Mexico Earth Matters},
> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral
> Resources},
> volume={6},
> number={1},
> location={Socorro, New Mexico}
> }
>
> @Book{clark1989,
> author = {Clark, William},
> title = {Railroads \word{and} railroad towns \word{in} New Mexico},
> publisher = {New Mexico Magazine},
> year = {1989},
> address = {Albuquerque, New Mexico},
> isbn = {9780937206126}
> }
>
> \stopbuffer
>
> \usebtxdataset[bib.buffer]
>
> \setupbtx[dataset=default]
> \usebtxdefinitions[sbl]
> \setupbtx[sbl]
>
> \starttext
>
> \autocite[{\loc[2]}][]{na2006}
> \autocite[{\loc[3]}][]{clark1989}
>
>
> \startchapter[title=Bibliography]
> \placelistofpublications
> \stopchapter
>
> \stoptext
>
> Is the autocite command the wrong tool for what I need? How can I place
> citations right next to each other, but also include page number
> information with ConTeXt-SBL?
>
> --Joel
>
> ___
>
> 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, 

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   For the six = for the toc...
   
  
  
   
Denis Maier via ntg-context  hat am 24.12.2021 18:42 geschrieben:
   
   

   
   

   
   
Can't you just define a default structurelevel scheme and a default combined list for the six. If a user redefines the structure level scheme, they will just redefine the combined list as well. Would that work? 

   
   

   
   
Denis 

   
   

 Jason Ross via ntg-context  hat am 24.12.2021 17:45 geschrieben:


 


 


 Dear list,


 


 Is it possible to set the maximum table of contents depth to a number


 rather than providing an explicit list of section names?


 


 


 Background:


 


 I am developing an exporter for Org mode. In Org, users can specify the


 number of levels they want in the table of contents with a number. I


 currently do this by having the sectioning commands be known to the


 exporter so I can generate a command like


 \setupcombinedlist


 [content]


 [list={section,subsection}]


 for n=2.


 


 I'm considering using \start/stopsectionlevel for sectioning commands


 instead. That way, users could add \definesectionlevels to the document


 preamble to use whatever sectioning scheme they wanted. However, this


 would mean that the exporter wouldn't know what sectioning commands to


 use the TOC setup.


 


 


 Thanks,


 


 Jason


 ___


 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
___


Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   Can't you just define a default structurelevel scheme and a default combined list for the six. If a user redefines the structure level scheme, they will just redefine the combined list as well. Would that work?
   
  
  
   
  
  
   Denis
   
  
  
   
Jason Ross via ntg-context  hat am 24.12.2021 17:45 geschrieben:
   
   

   
   

   
   
Dear list,
   
   

   
   
Is it possible to set the maximum table of contents depth to a number
   
   
rather than providing an explicit list of section names?
   
   

   
   

   
   
Background:
   
   

   
   
I am developing an exporter for Org mode. In Org, users can specify the
   
   
number of levels they want in the table of contents with a number. I
   
   
currently do this by having the sectioning commands be known to the
   
   
exporter so I can generate a command like
   
   
\setupcombinedlist
   
   
[content]
   
   
[list={section,subsection}]
   
   
for n=2.
   
   

   
   
I'm considering using \start/stopsectionlevel for sectioning commands
   
   
instead. That way, users could add \definesectionlevels to the document
   
   
preamble to use whatever sectioning scheme they wanted. However, this
   
   
would mean that the exporter wouldn't know what sectioning commands to
   
   
use the TOC setup.
   
   

   
   

   
   
Thanks,
   
   

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


[NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context

Dear list,

Is it possible to set the maximum table of contents depth to a number 
rather than providing an explicit list of section names?



Background:

I am developing an exporter for Org mode. In Org, users can specify the 
number of levels they want in the table of contents with a number. I 
currently do this by having the sectioning commands be known to the 
exporter so I can generate a command like

\setupcombinedlist
  [content]
  [list={section,subsection}]
for n=2.

I'm considering using  \start/stopsectionlevel for sectioning commands 
instead. That way, users could add \definesectionlevels to the document 
preamble to use whatever sectioning scheme they wanted. However, this 
would mean that the exporter wouldn't know what sectioning commands to 
use the TOC setup.



Thanks,

Jason
___
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] Critical Editions?

2021-12-24 Thread Bruce Horrocks via ntg-context


> On 24 Dec 2021, at 12:07, Hans Hagen via ntg-context  
> wrote:
> 
> a lot related to numbering, referencing and notes and much of that is present
> 
> so if you can team up with other critical edition users ... i suppose that 
> Idris can send you his onthology-so-far

I'm not a user but was intrigued by Juergen's original post. In an effort to 
educate myself I found this page 
 and thought about how those 
examples might be set using ConTeXt instead. It didn't take long to realise 
that Juergen pretty much has it exactly right with his sample code.

If it would help I could have a go at setting one or two of those examples and 
put it onto the Wiki somewhere?

The only real question I have to those who produce critical editions for real: 
are the examples I've linked to useful and appropriate to be copied?

—
Bruce Horrocks
Hampshire, UK

___
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] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   biblatex has special multicite commands=> e.g. autocites. could that be used in that case?
   
  
  
   
  
  
   Denis
   
  
  
   
Joey McCollum via ntg-context  hat am 24.12.2021 15:43 geschrieben:
   
   

   
   

   
   
Joel,

 


 Thanks for mentioning this! I think I've run into the same issue before, but I wasn't sure how I should go about fixing it, so this might be a good place to get suggestions from others.
 
 The \autocite, \inlinecite, \parencite, and \footcite helper commands are intended to handle trailing punctuation intelligently (in order to do things like move punctuation after a footnote citation before the footnote marker), so they treat the next character after the command as a "hidden" parameter. This works as expected if the next character is a punctuation character or something like a \blank command, but if it's something like a \section command (or another \autocite command, as you've discovered), then this causes problems.
 
 That said, I think you should be able to get your ConTeXt to compile if you follow your \autocite command with punctuation or some form of whitespace (which is why a double newline works, as you've discovered, while a single newline does not).


 


 I'd like to keep the intelligent trailing punctuation adjustment feature if possible, but this problem definitely needs to be fixed. If anyone has any suggestions, I welcome them! My hope is that this can be resolved with a simple check.


 


 Joey

   
   
   

 On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context  wrote:
 


 
  
   
I am using the ConTeXt-SBL module to handle the citations in my article. Using the plain \cite[na2006] command has worked fine.
   
   

   
   
But there are some situations where I want the footnote to include page number details. I tried using \cite[extra=2][na2006], but that doesn't seem compatible with ConTeXt-SBL. I checked the documentation, and if I understand correctly, I should use the autocite command to add page numbers to my citation? Like this:

   
   

   
   
    \autocite[{\loc[2]}][]{na2006}
   
   

   
   
This solution works in 95% of cases, but when I need to cite another book immediately after that, it throws up errors:
   
   

   
   

   
   

 This won't compile:


 


     \autocite[{\loc[2]}][]{na2006}
 
  
       \autocite[{\loc[2]}][]{clark1989}
  
 
 
     
  
   
This won't compile:
   
   

   
   

     \autocite[{\loc[2]}][]{na2006}%


 %
 


 
     \autocite[{\loc[2]}][]{clark1989}
 

   
  
 
 
  
 
 
  This also won't compile:
  
   

   
   

 
  
       \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989}
  
 


 
  
 

   
  
 
 
  After much trial and error, I found this will compile:
  
 
 
  
   

   
   

     \autocite[{\loc[2]}][]{na2006}


 


 
  
       \autocite[{\loc[2]}][]{clark1989}
  
  
   
  
 
 
  The problem with this last example, is if my citations appear within the paragraph, then I end up with a paragraph break in the wrong place!
  
 
 
  
 


 Here is my minimum working example, which won't compile unless I add a blank line between the two citations.
 

   
  
  
   
  
  
   \usemodule[publ-imp-sbl]
   \startbuffer [bib]
   
   @Article{na2006,
   title={Volcanoes \word{of} New Mexico},
   year={2006},
   journal={New Mexico Earth Matters},
   publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
   volume={6},
   number={1},
   location={Socorro, New Mexico}
   }
   
   @Book{clark1989,
   

Re: [NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
Additionally, if you want to cite page numbers, the key to use in
ConTeXt-SBL is "loctext". (I was not aware of an "extra" key when I was
developing the module.) So, you should be able to make the ConTeXt-style
\cite command work as follows:

```
\cite[loctext=2][na2006]
```

I hope this helps, too!

Joey

On Fri, Dec 24, 2021 at 9:43 AM Joey McCollum 
wrote:

> Joel,
>
> Thanks for mentioning this! I think I've run into the same issue before,
> but I wasn't sure how I should go about fixing it, so this might be a good
> place to get suggestions from others.
>
> The \autocite, \inlinecite, \parencite, and \footcite helper commands are
> intended to handle trailing punctuation intelligently (in order to do
> things like move punctuation after a footnote citation before the footnote
> marker), so they treat the next character after the command as a "hidden"
> parameter. This works as expected if the next character is a punctuation
> character or something like a \blank command, but if it's something like a
> \section command (or another \autocite command, as you've discovered), then
> this causes problems.
>
> That said, I think you should be able to get your ConTeXt to compile if
> you follow your \autocite command with punctuation or some form of
> whitespace (which is why a double newline works, as you've discovered,
> while a single newline does not).
>
> I'd like to keep the intelligent trailing punctuation adjustment feature
> if possible, but this problem definitely needs to be fixed. If anyone has
> any suggestions, I welcome them! My hope is that this can be resolved with
> a simple check.
>
> Joey
>
> On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context 
> wrote:
>
>> I am using the ConTeXt-SBL module to handle the citations in my article.
>> Using the plain \cite[na2006] command has worked fine.
>>
>> But there are some situations where I want the footnote to include page
>> number details. I tried using \cite[extra=2][na2006], but that doesn't seem
>> compatible with ConTeXt-SBL. I checked the documentation, and if I
>> understand correctly, I should use the autocite command to add page numbers
>> to my citation? Like this:
>>
>> \autocite[{\loc[2]}][]{na2006}
>>
>> This solution works in 95% of cases, but when I need to cite another book
>> immediately after that, it throws up errors:
>>
>>
>> This won't compile:
>>
>> \autocite[{\loc[2]}][]{na2006}
>> \autocite[{\loc[2]}][]{clark1989}
>>
>> This won't compile:
>>
>> \autocite[{\loc[2]}][]{na2006}%
>> %
>>\autocite[{\loc[2]}][]{clark1989}
>>
>> This also won't compile:
>>
>> \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989}
>>
>> After much trial and error, I found this will compile:
>>
>> \autocite[{\loc[2]}][]{na2006}
>>
>> \autocite[{\loc[2]}][]{clark1989}
>>
>> The problem with this last example, is if my citations appear within the
>> paragraph, then I end up with a paragraph break in the wrong place!
>>
>> Here is my minimum working example, which won't compile unless I add a
>> blank line between the two citations.
>>
>> \usemodule[publ-imp-sbl]
>> \startbuffer [bib]
>>
>> @Article{na2006,
>> title={Volcanoes \word{of} New Mexico},
>> year={2006},
>> journal={New Mexico Earth Matters},
>> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral
>> Resources},
>> volume={6},
>> number={1},
>> location={Socorro, New Mexico}
>> }
>>
>> @Book{clark1989,
>> author = {Clark, William},
>> title = {Railroads \word{and} railroad towns \word{in} New Mexico},
>> publisher = {New Mexico Magazine},
>> year = {1989},
>> address = {Albuquerque, New Mexico},
>> isbn = {9780937206126}
>> }
>>
>> \stopbuffer
>>
>> \usebtxdataset[bib.buffer]
>>
>> \setupbtx[dataset=default]
>> \usebtxdefinitions[sbl]
>> \setupbtx[sbl]
>>
>> \starttext
>>
>> \autocite[{\loc[2]}][]{na2006}
>> \autocite[{\loc[3]}][]{clark1989}
>>
>>
>> \startchapter[title=Bibliography]
>> \placelistofpublications
>> \stopchapter
>>
>> \stoptext
>>
>> Is the autocite command the wrong tool for what I need? How can I place
>> citations right next to each other, but also include page number
>> information with ConTeXt-SBL?
>>
>> --Joel
>>
>>
>> ___
>> 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  : 

Re: [NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
Joel,

Thanks for mentioning this! I think I've run into the same issue before,
but I wasn't sure how I should go about fixing it, so this might be a good
place to get suggestions from others.

The \autocite, \inlinecite, \parencite, and \footcite helper commands are
intended to handle trailing punctuation intelligently (in order to do
things like move punctuation after a footnote citation before the footnote
marker), so they treat the next character after the command as a "hidden"
parameter. This works as expected if the next character is a punctuation
character or something like a \blank command, but if it's something like a
\section command (or another \autocite command, as you've discovered), then
this causes problems.

That said, I think you should be able to get your ConTeXt to compile if you
follow your \autocite command with punctuation or some form of whitespace
(which is why a double newline works, as you've discovered, while a single
newline does not).

I'd like to keep the intelligent trailing punctuation adjustment feature if
possible, but this problem definitely needs to be fixed. If anyone has any
suggestions, I welcome them! My hope is that this can be resolved with a
simple check.

Joey

On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context 
wrote:

> I am using the ConTeXt-SBL module to handle the citations in my article.
> Using the plain \cite[na2006] command has worked fine.
>
> But there are some situations where I want the footnote to include page
> number details. I tried using \cite[extra=2][na2006], but that doesn't seem
> compatible with ConTeXt-SBL. I checked the documentation, and if I
> understand correctly, I should use the autocite command to add page numbers
> to my citation? Like this:
>
> \autocite[{\loc[2]}][]{na2006}
>
> This solution works in 95% of cases, but when I need to cite another book
> immediately after that, it throws up errors:
>
>
> This won't compile:
>
> \autocite[{\loc[2]}][]{na2006}
> \autocite[{\loc[2]}][]{clark1989}
>
> This won't compile:
>
> \autocite[{\loc[2]}][]{na2006}%
> %
>\autocite[{\loc[2]}][]{clark1989}
>
> This also won't compile:
>
> \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989}
>
> After much trial and error, I found this will compile:
>
> \autocite[{\loc[2]}][]{na2006}
>
> \autocite[{\loc[2]}][]{clark1989}
>
> The problem with this last example, is if my citations appear within the
> paragraph, then I end up with a paragraph break in the wrong place!
>
> Here is my minimum working example, which won't compile unless I add a
> blank line between the two citations.
>
> \usemodule[publ-imp-sbl]
> \startbuffer [bib]
>
> @Article{na2006,
> title={Volcanoes \word{of} New Mexico},
> year={2006},
> journal={New Mexico Earth Matters},
> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral
> Resources},
> volume={6},
> number={1},
> location={Socorro, New Mexico}
> }
>
> @Book{clark1989,
> author = {Clark, William},
> title = {Railroads \word{and} railroad towns \word{in} New Mexico},
> publisher = {New Mexico Magazine},
> year = {1989},
> address = {Albuquerque, New Mexico},
> isbn = {9780937206126}
> }
>
> \stopbuffer
>
> \usebtxdataset[bib.buffer]
>
> \setupbtx[dataset=default]
> \usebtxdefinitions[sbl]
> \setupbtx[sbl]
>
> \starttext
>
> \autocite[{\loc[2]}][]{na2006}
> \autocite[{\loc[3]}][]{clark1989}
>
>
> \startchapter[title=Bibliography]
> \placelistofpublications
> \stopchapter
>
> \stoptext
>
> Is the autocite command the wrong tool for what I need? How can I place
> citations right next to each other, but also include page number
> information with ConTeXt-SBL?
>
> --Joel
>
>
> ___
> 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
___


[NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joel via ntg-context
I am using the ConTeXt-SBL module to handle the citations in my article. Using 
the plain \cite[na2006] command has worked fine.
But there are some situations where I want the footnote to include page number 
details. I tried using \cite[extra=2][na2006], but that doesn't seem compatible 
with ConTeXt-SBL. I checked the documentation, and if I understand correctly, I 
should use the autocite command to add page numbers to my citation? Like this:

    \autocite[{\loc[2]}][]{na2006}
This solution works in 95% of cases, but when I need to cite another book 
immediately after that, it throws up errors:

This won't compile:       \autocite[{\loc[2]}][]{na2006}    
\autocite[{\loc[2]}][]{clark1989}    This won't compile:       
\autocite[{\loc[2]}][]{na2006}%%
    \autocite[{\loc[2]}][]{clark1989}
This also won't compile:
    \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989}
After much trial and error, I found this will compile:
       \autocite[{\loc[2]}][]{na2006}
    \autocite[{\loc[2]}][]{clark1989}
The problem with this last example, is if my citations appear within the 
paragraph, then I end up with a paragraph break in the wrong place!

Here is my minimum working example, which won't compile unless I add a blank 
line between the two citations.

 \usemodule[publ-imp-sbl]
\startbuffer [bib]

@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1},
location={Socorro, New Mexico}
}

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]

\starttext

    \autocite[{\loc[2]}][]{na2006}
    \autocite[{\loc[3]}][]{clark1989}

    
    \startchapter[title=Bibliography]
    \placelistofpublications
    \stopchapter

\stoptext
Is the autocite command the wrong tool for what I need? How can I place 
citations right next to each other, but also include page number information 
with ConTeXt-SBL?
--Joel

___
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] LTR footnotes from RTL paragraph

2021-12-24 Thread Denis Maier via ntg-context


 
 
  
   
  
  
   
Hans Hagen via ntg-context  hat am 24.12.2021 13:13 geschrieben:
   
   

   
   

   
   
On 12/21/2021 10:02 AM, denis.ma...@unibe.ch wrote:
   
   

   
   

 Nice! So, IIUC, you should also be able to do something like this then:


 


 \definealign[AlignStandard][verytolerant,stretch]


 \definealign[AlignR2L][AlignStandard][r2l]


 


 Is that correct?

   
   

   
   
No, because these definitions are interpreted at definition time there
   
   
is no inheritance (unless I explcitly add that); Is it really needed?
   
  
  
   
  
  
   No, not for me. I think being able to define a bunch of align settings in one place and call them later should be enough.
  
  
   
  
  
   Denis
   
  
  
   
   
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

   
   
___
   
  
 

___
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] LTR footnotes from RTL paragraph

2021-12-24 Thread Hans Hagen via ntg-context

On 12/21/2021 10:02 AM, denis.ma...@unibe.ch wrote:


Nice! So, IIUC, you should also be able to do something like this then:

\definealign[AlignStandard][verytolerant,stretch]
\definealign[AlignR2L][AlignStandard][r2l]

Is that correct?


No, because these definitions are interpreted at definition time there 
is no inheritance (unless I explcitly add that); Is it really needed?


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] Critical Editions?

2021-12-24 Thread Hans Hagen via ntg-context

On 12/21/2021 10:50 AM, hanneder--- via ntg-context wrote:


I just started switching after long years of typesetting with 
La-/Omega-/pdfTeX to Context and was exploring the capabilities of the 
program for typesetting critical editions. So I was
wondering whether there is any updated information on how to produce 
critical editions?


Maybe Idris has input because he made a partial inventory. There are all 
kind of mechanisms that support it but one needs to know where to look.




Details:
I was able to find the article "Ediciones críticas con ConTeXt" (is this 
in use?) as well as a
plan of and a remark concerning critTeXt: "As I learned from a thread on 
NTG-context from early 2010 we shouldn't expect a dedicated package, but 
that ConTeXt will eventually incorporate the needed functionalities."  
What is the status of that?


a lot related to numbering, referencing and notes and much of that is 
present


so if you can team up with other critical edition users ... i suppose 
that Idris can send you his onthology-so-far


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] Bug in mp-xbox.mpxl (circleit)

2021-12-24 Thread Hans Hagen via ntg-context

On 12/22/2021 2:33 PM, Jacob Kauffmann via ntg-context wrote:

Hi list,

I realized that circleit throws an error.
It works fine if I replace boxes_generic_declare by boxes_declare in line 244 
in mp-xbox.mpxl


we need two replacements, also in 313

thanks,

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
___