[NTG-context] XML: flush to lua function

2023-09-11 Thread denis.maier
Hi,
I have the following xml setup with a lua function:

\startluacode
function markingLength(s)
_,n = s:gsub("%S+","")
if n > 3 then
context("yes" .. " ...") else context("no") end
end
\stopluacode

\startxmlsetups xml:ink:ink-title:marking
%\ctxlua{markingLength(\xmlflush{#1})}  % does not work
\ctxlua{markingLength{"1 2 3 4"}}
\stopxmlsetups

While the function works, I cannot use xmlflush here. How can I properly pass 
the xml content to the lua function?

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

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

[NTG-context] Bug(?) in https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages

2023-09-11 Thread Jim
Hi,

In https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages the wiki
has "internal error: convert failed".

Removing \color[red] from \setuptabulate in that example gives a working
example (at least in a separate file on my machine).  I tried changing the
title specification to
title={\color[red]{Fenchurch St. Paul}},
as well as
title={{\color[red]{Fenchurch St. Paul}}},
but both of these reward me with a runaway context process.

Can someone point out the correct way to do what the wiki intended?

Thanks.
Jim

P.S. Bonus question: should an incorrect use of color really cause an
(apparent) infinite loop, or is that a second issue which deserves to be on
some to-do list?

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

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


[NTG-context] contextgarden server in Slovenia died last night

2023-09-11 Thread Mojca Miklavec
Hi,

Unfortunately the contextgarden server in Slovenia died yesterday evening.
We will let you know how this unfolds, but don't expect it back in a day.

That includes:
- meeting site (a copy was set up at https://meetingnl.contextgarden.net/)
- context group site
- the legacy distribution
- build farm
- CTAN mirror
- a bunch more ...

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

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


[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster

Jeroen schrieb am 10.09.2023 um 22:05:
Is there an easy way to reduce the line space between rows in a 
natural table so the table takes less vertical space.


Natural tables and extreme tables take extra vertical space because the 
table cell use the framed-mechanism
which add a small margin on all sides, to get rid of this space set the 
offset value to 0pt. A unwanted side
effect when you set the offset to 0pt is that you no longer have a 
distance between each row, to get the space
between the columns back you can either use the loffset and roffset keys 
(when you have visible border)

or the columndistance key (when you have invisible borders).

% Alternative 1:
% \setupTABLE[frame=on,offset=0pt,columndistance=1em]

% Alternative 2:
\setupTABLE [frame=off,offset=0pt,loffset=.5em,roffset=.5em]
\setupTABLE [column] [first] [loffset=0pt]
\setupTABLE [column] [last]  [roffset=0pt]

\starttext

\bTABLE
   \bTR
  \bTD Cell 1:1 \eTD
  \bTD Cell 1:2 \eTD
  \bTD Cell 1:3 \eTD
   \eTR
   \bTR
  \bTD Cell 2:1 \eTD
  \bTD Cell 2:2 \eTD
  \bTD Cell 2:3 \eTD
   \eTR
   \bTR
  \bTD Cell 3:1 \eTD
  \bTD Cell 3:2 \eTD
  \bTD Cell 3:3 \eTD
   \eTR
\eTABLE

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

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread denis.maier
\bTABLE[spaceinbetween=0cm]
  ...
\eTABLE



Von: Jeroen 
Gesendet: Sonntag, 10. September 2023 22:05
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Reduce space between lines in Natural Tables

Is there an easy way to reduce the line space between rows in a natural table 
so the table takes less vertical space.
Thanks, Jeroen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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