[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-28 Thread vm via ntg-context

while also on linux platform:


mtxrun --script font --list --spec --filter="fontname=ibm*"
mtxrun --script font --list --spec --filter="fontname=ple*"

give correct result (as in listing the available installed ibmplex fonts)


mtxrun --script font --list --spec --filter="fontname=*"
mtxrun --script font --list --spec --filter="fontname=p*"
mtxrun --script font --list --spec --filter="fontname=pl*"

lua error : function call: 
/home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument 
#9 to 'format' (number expected, got string)



apparently you need at least three characters in the the filter template.



$ mtxrun --script font --list --spec --filter="fontname=ple"
table: 0x3bc80550ac0
table: 0x3bc80550b00

[01:32] vm @ vmz: ~
$ mtxrun --script font --list --spec --filter="fontname=ibm"
table: 0x51012550ac0
table: 0x51012550b00

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to stop

2024-01-28 Thread Bruce Horrocks


> On 27 Jan 2024, at 21:29, Joel via ntg-context  wrote:
> 
> I have a document that uses ~40 different TABLE configurations, each with 
> their own special requirements, such as these below, and in total, perhaps 
> 2000 tables appear in a file, using one of the configurations.
> 
> \setupTABLE[r][1][align=raggedleft]
> \setupTABLE[c][1][width=.1\textwidth]
> \setupTABLE[c][2][width=.33\textwidth]
> \setupTABLE[c][3][width=.37\textwidth]
> \setupTABLE[c][4][width=.1\textwidth]
> \setupTABLE[c][5][width=.1\textwidth]
> \setupTABLE[c][1,2,3,4,5][align=raggedleft, 
> frame=off]
> 
> %\setupTABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off]
> \setupTABLE[r][1][bottomframe=on]
> \bTABLE[split=yes]
> \bTR\bTD {\it Lesson}\eTD\bTD {\it 
> Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR
> \eTABLE
> 
> What I've been finding is that previous settings on TABLES appearing earlier 
> in the document is impacting later tables. For instance, if one has a frame 
> to the right of column 1, then the next table seems to acquire this setting 
> as well, even if it isn't expected to have any frames at all.
> 
> Note that each unique table is defined inside a macro.
> 
> How can I make these table settings only apply to the a specific table?

Use setups, one for each of your 40 variations:
e.g:

\startsetup formatA
  \setupTABLE[r][1][align=raggedleft]
  \setupTABLE[c][1][width=.1\textwidth]
\stopsetup
\startsetup formatB
  \setupTABLE[c][1,2,3,4,5][align=raggedleft, frame=off]
\stopsetup

\bTABLE[setups=formatA]
...
\eTABLE

\bTABLE[setups=formatB]
...
\eTABLE

—
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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-28 Thread Garulfo

Hi,

return is OK with:
    mtxrun --script font --list --spec --filter="fontname=ibm*"

but removing the m from the pattern
mtxrun --script font --list --spec --filter="fontname=ib*"

I get :
lua error : function call: 
...0-app_context-linux-64/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad 
argument #9 to 'format' (number expected, got string)



mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: archive.contextgarden.net 404?

2024-01-28 Thread Jim
On Sun, Jan 28, 2024 at 19:42 (+0100), Mojca Miklavec wrote:

> On Fri, 26 Jan 2024 at 00:42, Jim  wrote:

>> Today I ran across three references to archive.contextgarden.net, one in a
>> tugboat article and two others in context garden wiki pages.

>> I was not able to reach that site.  Is it (long since?) dead or is it just
>> on vacation temporarily?

> It is on a veery long vacation.

> The previous server broke down and I've been waiting for the volunteer
> taking care of the server to get it back up (on a new machine).

Mojca,

thanks very much for letting me know.  Glad to hear it is a long vacation
and not a permanent situation.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: archive.contextgarden.net 404?

2024-01-28 Thread Mojca Miklavec
On Fri, 26 Jan 2024 at 00:42, Jim  wrote:
>
> Today I ran across three references to archive.contextgarden.net, one in a
> tugboat article and two others in context garden wiki pages.
>
> I was not able to reach that site.  Is it (long since?) dead or is it just
> on vacation temporarily?

It is on a veery long vacation.

The previous server broke down and I've been waiting for the volunteer
taking care of the server to get it back up (on a new machine).

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-28 Thread Wolfgang Schuster

Pablo Rodriguez via ntg-context schrieb am 27.01.2024 um 18:40:

On 1/27/24 17:40, Ali Ali wrote:

Thanks, those seems close to what I wanted but not exactly.

The ASCII graphic (better in typewriter font) may explain what I desired,
```
 text width
  |<>|

##.   SECTION TITLE paragraph
   ...
   .

|<-->|
margin
```
I wanted paragraph to begin on the same line the section title lies.


\define[1]\SectionNumberCommand
  {\margindata[inmargin][scope=local]{#1}}

\setuphead
  [section]
  [alternative=text,
   numbercommand=\SectionNumberCommand,
   distance=0pt]

\starttext

\section{Lorem}

\samplefile{lorem}

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___