Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 23:15:

On 25 Aug 2021, at 13:56, Wolfgang Schuster  
wrote:

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28:

Why does HerosBold give bold italic instead of just bold?

\definefont[TestA][name:Heros at 14pt]
\definefont[TestB][name:HerosBold at 14pt]
\definefont[TestC][name:HerosItalic at 14pt]
\starttext
\TestA {The quick brown}
\TestB {fox jumps over}
\TestC {the lazy dog}
\stoptext

I guess you try to use TeX Gyre Heros, when this is the case you use the wrong 
names for the font. The correct names are in the following example.

Another problem is how you use the new font commands, unlike many other user 
created commands \definefont creates a switch and you have to move the left 
braces before the command.

\definefont [TestA] [name:texgyreheros*default at 14pt]
\definefont [TestB] [name:texgyreherosbold*default at 14pt]
\definefont [TestC] [name:texgyreherositalic*default at 14pt]

\starttext
{\TestA The quick brown}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext


In my cases it is easier to use \switchtobodyfont rather than using a fixed 
font style, below is a modified version of your example above. While the 
example itself isn't very useful the method can be used to change the font for 
a header, typing environment etc.

\usebodyfont[heros]

\starttext
\style[style={\switchtobodyfont[heros,14pt]}]{The quick brown}
\style[style={\switchtobodyfont[heros,14pt]\bf}]{fox jumps over}
\style[style={\switchtobodyfont[heros,14pt]\it}]{the lazy dog}
\stoptext

Thanks Wolfgang. I always get very confused when ConTeXt 'nearly' works and 
this was one of those times. Your \style example is interesting and I'll bear 
it in mind but at the moment I only need this for some one-off title page text 
rather than body text.


In this case you change the font once at the start of the title page, 
afterwards you can use \bf and \it to change styles.


\usebodyfont[heros]

\definebodyfontenvironment [14pt]

\starttext

\startstandardmakeup [style={\switchtobodyfont[heros,14pt]}]

The quick brown
{\bf fox jumps over}
{\it the lazy dog}

\stopstandardmakeup

\stoptext

Wolfgang

___
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] Indexing redux

2021-08-25 Thread Rik Kabel via ntg-context

List,

I am trying to create an index with both "see" and "see also" 
cross-reference entries.[1] At this point, ConTeXt provides basic 
support for "see" entries via the \seeREGISTER command (it does not 
properly support references to sub-entries) and it provides no support 
at all for "see also" entries.


Can somebody suggest a way to generate these entries? Perhaps a way of 
inserting entries into the index before it is formatted, in the manner 
of \writetolist or \writebetweenlist? (MkII has \writetoregister, but 
that did not carry forward and I do not know if it would have helped here.)


I had brought this up to no response a couple of years ago.[2] I am 
hopeful that LMTX may offer a chance to get support for improved 
indexing, and in particular for "see" and "see also" entries.


[1] For definitions and usage of "see" entries, see 
https://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/index-see.html. 
For "see also" entries, see 
https://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/index-see-also.html. 
For a deeper dive, see the publicly available University of Chicago 
Manual of Style version 15 guide, chapter 18, available at 
https://press.uchicago.edu/Misc/Chicago/CHIIndexingComplete.pdf, or more 
recent versions not yet freely available online.


[2] See "Possible seeindex enhancement" at 
https://www.mail-archive.com/ntg-context@ntg.nl/msg89470.html.


--
Rik


___
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] Different author rendering in entry citation vs. list

2021-08-25 Thread Joey McCollum via ntg-context
Hi,

I'm trying to implement a custom bibliography rendering where in-text
citations (specifically, citations with alternative=entry) are not
identical to the entries in the bibliography list. Following a pattern I've
seen in publ-imp-chicago.mkvi, I've been able to implement most of the
features I'm interested in by using conditional formatting with a mode that
is specifically set for citations with the "entry" alternative. I'd also
like for author names in entry citations to be different author names in
list entries, in the following ways:

   - In entry citations, authorconversion should be normal, while in list
   entries, authorconversion should be inverted (more specifically, the first
   name should be inverted, while all subsequent names should be in normal
   order...but if this is too complicated, then it may be an issue for another
   e-mail thread, and we can just focus on normal vs. inverted for now).
   - In entry citations, "et al." should be used for any names after the
   third name, while in list entries, all names should be printed in full.

I thought that the following settings would work:

\definebtx
  [sbl:\s!list]
  [sbl]
  [\c!otherstext=,
  \c!etallimit=,
  \c!etaldisplay=,
  \c!etaloption=,
  \c!authorconversion=inverted] % TODO: need to print the first name
inverted, with all subsequent names in normal order

\definebtx
  [sbl:\s!cite]
  [sbl]
  [\c!otherstext={\btxspace\btxlabeltext{others}}, % use et al. for
truncated author / editor list
   \c!etallimit=3, % don't use et al. for 3 or fewer authors
   \c!etaldisplay=3, %
   \c!authorconversion=\v!normal] % by default, use normal name order for
in-text citations

But only the "list" settings seem to be used. I suspect this might be
because the setup for "entry" citations invokes \btxhandleciteentry and
therefore uses "list" settings everywhere except where I check modes for
conditional formatting. But is there a command or environment I can use to
change authorconversion locally, based on the current mode, in the helper
methods I've defined for rendering bibliography entries?

Thanks!

Joey
___
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 does HerosBold give bold italic?

2021-08-25 Thread Bruce Horrocks via ntg-context

> On 25 Aug 2021, at 13:56, Wolfgang Schuster 
>  wrote:
> 
> Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28:
>> Why does HerosBold give bold italic instead of just bold?
>> 
>> \definefont[TestA][name:Heros at 14pt]
>> \definefont[TestB][name:HerosBold at 14pt]
>> \definefont[TestC][name:HerosItalic at 14pt]
>> \starttext
>> \TestA {The quick brown}
>> \TestB {fox jumps over}
>> \TestC {the lazy dog}
>> \stoptext
> 
> I guess you try to use TeX Gyre Heros, when this is the case you use the 
> wrong names for the font. The correct names are in the following example.
> 
> Another problem is how you use the new font commands, unlike many other user 
> created commands \definefont creates a switch and you have to move the left 
> braces before the command.
> 
> \definefont [TestA] [name:texgyreheros*default at 14pt]
> \definefont [TestB] [name:texgyreherosbold*default at 14pt]
> \definefont [TestC] [name:texgyreherositalic*default at 14pt]
> 
> \starttext
> {\TestA The quick brown}
> {\TestB fox jumps over}
> {\TestC the lazy dog}
> \stoptext
> 
> 
> In my cases it is easier to use \switchtobodyfont rather than using a fixed 
> font style, below is a modified version of your example above. While the 
> example itself isn't very useful the method can be used to change the font 
> for a header, typing environment etc.
> 
> \usebodyfont[heros]
> 
> \starttext
> \style[style={\switchtobodyfont[heros,14pt]}]{The quick brown}
> \style[style={\switchtobodyfont[heros,14pt]\bf}]{fox jumps over}
> \style[style={\switchtobodyfont[heros,14pt]\it}]{the lazy dog}
> \stoptext

Thanks Wolfgang. I always get very confused when ConTeXt 'nearly' works and 
this was one of those times. Your \style example is interesting and I'll bear 
it in mind but at the moment I only need this for some one-off title page text 
rather than body text.

—
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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Richard Mahoney via ntg-context

Brilliant, just what was needed. Thank you.

Richard



-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/

Indica et Buddhica  Littledene  Bay Road  Oxford  NZ

-Original Message-
From: Taco Hoekwater 
To: Richard Mahoney , mailing list
for ConTeXt users 
Subject: Re: [NTG-context] Control of Titles appearing in
\completelistoftables and \completelistoffigures
Date: Wed, 25 Aug 2021 08:48:24 +0200
Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: 0.0

Hi,

There is \startplacefigure / \startplacetable , which has a ‘list’ key

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

Best wishes,
Taco

> On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context
>  wrote:
> 
> List,
> 
> I've been wondering if there is some syntax that one can use in:
> 
> \placetable or \placefigure
> 
> to control the Table of Figure Title appearing in:
> 
> \completelistoftables and \completelistoffigures
> 
> 
> At the moment one can do this for the output of:
> 
> \completecontent
> 
> with something such as the following:
> 
> \startsection[title={Title in body},list={Title in contents}]
> 
> 
> Such a thing would be *extremely* useful for a current 
> publication. :)
> 
> 
> Best, Richard
> 
> 
> 
> -- 
> T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
> IM https://t.me/rmahoney  W https://indica-et-buddhica.org/
> 
> Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
> 
> ___
> 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
> 
> ___

Taco Hoekwater
Elvenkind BV




___
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] MKIV ansi/ansilog

2021-08-25 Thread Hans Hagen via ntg-context

On 8/25/2021 6:05 PM, Adam Reviczky via ntg-context wrote:

Hi,

I have been using the ansi and ansilog flags in the past and they work 
fine with lmtx, but do not seem to make a difference with luatex/mkiv. 
(There was a thread back in 2019: 
https://mailman.ntg.nl/pipermail/ntg-context/2019/095666.html 
)


I am trying just a simple hello world:

\starttext
Hello World!
\stoptext

 From the latest lmtx install (2021.08.24 22:16) on an ubuntu 64bit live 
system:


These give the desired color output for lmtx
context --ansi test.tex
context --ansilog test.tex

But with luatex, these make no difference in the stdout (no ansi colors)
context --luatex --ansi test.tex
context --luatex --ansilog test.tex
probably because i need to pass then differently (they need to kick in 
very early)


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] MKIV ansi/ansilog

2021-08-25 Thread Adam Reviczky via ntg-context
Hi,

I have been using the ansi and ansilog flags in the past and they work fine
with lmtx, but do not seem to make a difference with luatex/mkiv. (There
was a thread back in 2019:
https://mailman.ntg.nl/pipermail/ntg-context/2019/095666.html)

I am trying just a simple hello world:

\starttext
Hello World!
\stoptext

>From the latest lmtx install (2021.08.24 22:16) on an ubuntu 64bit live
system:

These give the desired color output for lmtx
context --ansi test.tex
context --ansilog test.tex

But with luatex, these make no difference in the stdout (no ansi colors)
context --luatex --ansi test.tex
context --luatex --ansilog test.tex

Adam
___
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] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context

Il 25/08/21 14:06, Hans Hagen ha scritto:

On 8/25/2021 1:20 PM, mf via ntg-context wrote:

Il 25/08/21 13:06, Hans Hagen ha scritto:

On 8/25/2021 11:18 AM, mf via ntg-context wrote:

Hello,
here's the error I get:

lua error : function call: 
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: 
bad argument #2 to 'lpegmatch' (string expected, got nil)


BTW I was trying to compile lowlevel-expansion.tex in

tex/texmf-context/doc/context/sources/general/manuals/lowlevel

after I've seen (looking at the diffs in the git repo) there were 
some updates in the manual.
It works here ... can you try with the top line removed? Otherwise we 
need to zoom in on where it fails (some path split issue).

Yes, it's the runpath directive not working.

ok, so can you track that down in mtx-context.lua? (i know you can)



The problem is that the argument "one" is nil, but the function 
file.join checks only for one=="".


Lines 4541--4548:

4541  function file.join(one,two,three,...)
4542   if not two then
4543return one=="" and one or lpegmatch(reslasher,one)
4544   end
4545   if one=="" then
4546return lpegmatch(stripper,three and concat({ two,three,... 
},"/") or two)

4547   end
4548   if lpegmatch(isnetwork,one) then

At line 4545 you check only for one being an empty string, but it 
happens to be nil, so the program fails at line 4548.


Patching line 4545 like this:

4545   if not one or one=="" then

removes the error.

I leave to you whether the "one" argument should arrive nil to that 
line, or it should be normalized to an empty string before entering 
file.join.


Massi
___
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] TOC labeltext and no partlabel

2021-08-25 Thread Adam Reviczky via ntg-context
Thank you very much Wolfgang for the explanation,

Both solutions make sense now and work great.

Regards,
Adam

On Wed, Aug 25, 2021 at 11:46 AM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Adam Reviczky via ntg-context schrieb am 25.08.2021 um 02:02:
> > Hi,
> >
> > I have asked this question before, but now I cannot get it working again.
> >
> https://ntg-context.ntg.narkive.com/lvvdNOQz/the-appendices-envrionment-and-title-in-toc
> >
> > I want to set partlabels in my TOC but not in the document itself.
> >
> > The desired output would be:
> > ---
> > Contents
> > Chapter 1 Bodypart
> > Appendix A Appendix
> >
> > 1 Bodypart
> > A Appendix
> > ---
> >
> > [...]
> >
> > But that does not show the labels in the TOC (trying it with LMTX and
> MKIV).
>
> The easy way is to create a new heading for the appendices (e.g.
> \extrachapter) and set the label you want to use in the list.
>
> \setuplist [chapter]  [label=chapter]
> \setuplist [extrachapter] [label=appendix]
>
>
> A complexer solution where you can keep \chapter in the appendices can
> be achieved with a customized number type and the use of the processor
> mechanism to set the labels in the list entries.
>
> \setuplist
>[chapter]
>[width=fit,
> distance=\spaceamount]
>
> \defineconversionset [bodypart:chapternumber] [] [bodypartnumber->n]
> \defineconversionset [appendix:chapternumber] [] [appendixnumber->A]
>
> \setuphead
>[chapter]
>[sectionconversionset=chapternumber]
>
> \startsectionblockenvironment [frontpart]
>
>  \defineprocessor [bodypartnumber] [left=Chapter~]
>  \defineprocessor [appendixnumber] [left=Appendix~]
>
> \stopsectionblockenvironment
>
> \starttext
>
> \startfrontmatter
> \completecontent
> \stopfrontmatter
>
> \startbodymatter
> \chapter{Bodypart}
> \stopbodymatter
>
> \startappendices
> \chapter{Appendix}
> \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 / 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 does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28:

Why does HerosBold give bold italic instead of just bold?

\definefont[TestA][name:Heros at 14pt]
\definefont[TestB][name:HerosBold at 14pt]
\definefont[TestC][name:HerosItalic at 14pt]
\starttext
\TestA {The quick brown}
\TestB {fox jumps over}
\TestC {the lazy dog}
\stoptext


I guess you try to use TeX Gyre Heros, when this is the case you use the 
wrong names for the font. The correct names are in the following example.


Another problem is how you use the new font commands, unlike many other 
user created commands \definefont creates a switch and you have to move 
the left braces before the command.


\definefont [TestA] [name:texgyreheros*default at 14pt]
\definefont [TestB] [name:texgyreherosbold*default at 14pt]
\definefont [TestC] [name:texgyreherositalic*default at 14pt]

\starttext
{\TestA The quick brown}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext


In my cases it is easier to use \switchtobodyfont rather than using a 
fixed font style, below is a modified version of your example above. 
While the example itself isn't very useful the method can be used to 
change the font for a header, typing environment etc.


\usebodyfont[heros]

\starttext
\style[style={\switchtobodyfont[heros,14pt]}]{The quick brown}
\style[style={\switchtobodyfont[heros,14pt]\bf}]{fox jumps over}
\style[style={\switchtobodyfont[heros,14pt]\it}]{the lazy dog}
\stoptext


Wolfgang

___
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 does HerosBold give bold italic?

2021-08-25 Thread Bruce Horrocks via ntg-context
Why does HerosBold give bold italic instead of just bold?

\definefont[TestA][name:Heros at 14pt]
\definefont[TestB][name:HerosBold at 14pt]
\definefont[TestC][name:HerosItalic at 14pt]
\starttext
\TestA {The quick brown}
\TestB {fox jumps over}
\TestC {the lazy dog}
\stoptext

—
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] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread Hans Hagen via ntg-context

On 8/25/2021 1:20 PM, mf via ntg-context wrote:

Il 25/08/21 13:06, Hans Hagen ha scritto:

On 8/25/2021 11:18 AM, mf via ntg-context wrote:

Hello,
here's the error I get:

lua error : function call: 
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad 
argument #2 to 'lpegmatch' (string expected, got nil)


BTW I was trying to compile lowlevel-expansion.tex in

tex/texmf-context/doc/context/sources/general/manuals/lowlevel

after I've seen (looking at the diffs in the git repo) there were 
some updates in the manual.
It works here ... can you try with the top line removed? Otherwise we 
need to zoom in on where it fails (some path split issue).

Yes, it's the runpath directive not working.

ok, so can you track that down in mtx-context.lua? (i know you can)

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] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context

Il 25/08/21 13:06, Hans Hagen ha scritto:

On 8/25/2021 11:18 AM, mf via ntg-context wrote:

Hello,
here's the error I get:

lua error : function call: 
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad 
argument #2 to 'lpegmatch' (string expected, got nil)


BTW I was trying to compile lowlevel-expansion.tex in

tex/texmf-context/doc/context/sources/general/manuals/lowlevel

after I've seen (looking at the diffs in the git repo) there were some 
updates in the manual.
It works here ... can you try with the top line removed? Otherwise we 
need to zoom in on where it fails (some path split issue).

Yes, it's the runpath directive not working.
Massi
___
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] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread Hans Hagen via ntg-context

On 8/25/2021 11:18 AM, mf via ntg-context wrote:

Hello,
here's the error I get:

lua error : function call: 
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad 
argument #2 to 'lpegmatch' (string expected, got nil)


BTW I was trying to compile lowlevel-expansion.tex in

tex/texmf-context/doc/context/sources/general/manuals/lowlevel

after I've seen (looking at the diffs in the git repo) there were some 
updates in the manual.
It works here ... can you try with the top line removed? Otherwise we 
need to zoom in on where it fails (some path split issue).


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] TOC labeltext and no partlabel

2021-08-25 Thread Wolfgang Schuster via ntg-context

Adam Reviczky via ntg-context schrieb am 25.08.2021 um 02:02:

Hi,

I have asked this question before, but now I cannot get it working again.
https://ntg-context.ntg.narkive.com/lvvdNOQz/the-appendices-envrionment-and-title-in-toc

I want to set partlabels in my TOC but not in the document itself.

The desired output would be:
---
Contents
Chapter 1 Bodypart
Appendix A Appendix

1 Bodypart
A Appendix
---

[...]

But that does not show the labels in the TOC (trying it with LMTX and MKIV).


The easy way is to create a new heading for the appendices (e.g. 
\extrachapter) and set the label you want to use in the list.


\setuplist [chapter]  [label=chapter]
\setuplist [extrachapter] [label=appendix]


A complexer solution where you can keep \chapter in the appendices can 
be achieved with a customized number type and the use of the processor 
mechanism to set the labels in the list entries.


\setuplist
  [chapter]
  [width=fit,
   distance=\spaceamount]

\defineconversionset [bodypart:chapternumber] [] [bodypartnumber->n]
\defineconversionset [appendix:chapternumber] [] [appendixnumber->A]

\setuphead
  [chapter]
  [sectionconversionset=chapternumber]

\startsectionblockenvironment [frontpart]

\defineprocessor [bodypartnumber] [left=Chapter~]
\defineprocessor [appendixnumber] [left=Appendix~]

\stopsectionblockenvironment

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}
\stopbodymatter

\startappendices
\chapter{Appendix}
\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 / 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 in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context

Hello,
here's the error I get:

lua error : function call: 
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad 
argument #2 to 'lpegmatch' (string expected, got nil)


BTW I was trying to compile lowlevel-expansion.tex in

tex/texmf-context/doc/context/sources/general/manuals/lowlevel

after I've seen (looking at the diffs in the git repo) there were some 
updates in the manual.


Massi
___
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] numbered exercises

2021-08-25 Thread Henning Hraban Ramm via ntg-context

> Am 25.08.2021 um 00:19 schrieb Aditya Mahajan via ntg-context 
> :
> 
> On Tue, 24 Aug 2021, Henning Hraban Ramm via ntg-context wrote:
> 
>>> Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context 
>>> :
>>> 
>>> Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31:
 Hi, I’m typesetting a textbook that contains numbered and indented 
 exercises. They must not float.
 
 Which structure should I use for them? There must be an easy answer, but I 
 draw a blank.
>>> 
>>> Use an enumeration.
>> 
>> Thank you, but how can I define a title/caption for the enumeration and its 
>> reference?
> 
> http://www.ntg.nl/maps/36/09.pdf

Thank you, that also answers my last question.

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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Taco Hoekwater via ntg-context
Hi,

There is \startplacefigure / \startplacetable , which has a ‘list’ key

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

Best wishes,
Taco

> On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context 
>  wrote:
> 
> List,
> 
> I've been wondering if there is some syntax that one can use in:
> 
> \placetable or \placefigure
> 
> to control the Table of Figure Title appearing in:
> 
> \completelistoftables and \completelistoffigures
> 
> 
> At the moment one can do this for the output of:
> 
> \completecontent
> 
> with something such as the following:
> 
> \startsection[title={Title in body},list={Title in contents}]
> 
> 
> Such a thing would be *extremely* useful for a current 
> publication. :)
> 
> 
> Best, Richard
> 
> 
> 
> -- 
> T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
> IM https://t.me/rmahoney  W https://indica-et-buddhica.org/
> 
> Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV






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