[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
; > Thank you so much Hans & Mikhael! > > > > I tested one of my lecture notes and get two complaints from VeraPDF: > > (90 failed checks and 577444 passed checks…) > > > > > > Specification: ISO 32005:2023, Clause: Table 5. P-Div, Test number: 1 >

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
25, at 1:40 PM, Matthias Weber >> wrote: >> >> Thank you so much Hans & Mikhael! >> >> I tested one of my lecture notes and get two complaints from VeraPDF: >> (90 failed checks and 577444 passed checks…) >> >> >> Specification

[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
Hi Den ons 13 aug. 2025 19:48Matthias Weber skrev: > Thank you so much Hans & Mikhael! > > I tested one of my lecture notes and get two complaints from VeraPDF: > (90 failed checks and 577444 passed checks…) > > > Specification: ISO 32005:2023, Clause: Table 5. P-Div

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
> Specification: ISO 32005:2023, Clause: Table 5. P-Div, Test number: 1 > shall not containFailed > 24 occurrencesHide > SEDiv > parentStandardType != 'P' > root/document[0]/StructTreeRoot[0](231 0 obj PDStructTreeRoot)/K[0](239 0 obj > SEDocumen

[NTG-context] Re: tagigng

2025-08-13 Thread Hans Hagen via ntg-context
On 8/13/2025 7:40 PM, Matthias Weber wrote: Thank you so much Hans & Mikhael! I tested one of my lecture notes and get two complaints from VeraPDF: (90 failed checks and 577444 passed checks…) Specification: ISO 32005:2023, Clause: Table 5. P-Div, Test number: 1 shall not contain Fa

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
Thank you so much Hans & Mikhael! I tested one of my lecture notes and get two complaints from VeraPDF: (90 failed checks and 577444 passed checks…) Specification: ISO 32005:2023, Clause: Table 5. P-Div, Test number: 1 shall not contain Failed 24 occurrences Hide S

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Henning Hraban Ramm
Am 13.08.25 um 15:22 schrieb Denis Maier via ntg-context: I imagine you should be able to keep track of the footnotes in a lua table (just like shown in the xml-mkiv manual) and place them manually with \placefootnotes where you want. Something like this: \setupfootnotes[location=text

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Denis Maier via ntg-context
Hi Thomas, You know more about XML processing than I do, but how does your project setup look like? I imagine you should be able to keep track of the footnotes in a lua table (just like shown in the xml-mkiv manual) and place them manually with \placefootnotes where you want. Something like

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-11 Thread Hans Hagen via ntg-context
On 8/11/2025 9:59 AM, vm via ntg-context wrote: Thank you Hans for pointing out, this makes a large difference already. you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-11 Thread vm via ntg-context
Thank you Hans for pointing out, this makes a large difference already. you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with "mp.print" or bypass the parser with

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Hraban Ramm
Am 10.08.25 um 15:11 schrieb Hans Hagen via ntg-context: On 8/10/2025 12:01 PM, Hraban Ramm wrote: Am 10.08.25 um 11:41 schrieb Wolfgang Schuster: Am 10.08.2025 um 11:33 schrieb Hraban Ramm: for caching some generated data, I’d like to save a nested Lua table to a file, and load it later. I

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-10 Thread Hans Hagen via ntg-context
On 8/9/2025 5:34 PM, vm via ntg-context wrote: A while ago in one of the online meetings it was pointed out that one can feed aa point list in metafun using a lua table. I haven't been able to figure out how to do that. Has any one a hint? At presnt I use a script to generate the path dir

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Hans Hagen via ntg-context
On 8/10/2025 12:01 PM, Hraban Ramm wrote: Am 10.08.25 um 11:41 schrieb Wolfgang Schuster: Am 10.08.2025 um 11:33 schrieb Hraban Ramm: Hi again, for caching some generated data, I’d like to save a nested Lua table to a file, and load it later. I found http://lua-users.org/wiki

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Hraban Ramm
Am 10.08.25 um 11:41 schrieb Wolfgang Schuster: Am 10.08.2025 um 11:33 schrieb Hraban Ramm: Hi again, for caching some generated data, I’d like to save a nested Lua table to a file, and load it later. I found http://lua-users.org/wiki/SaveTableToFile Is there already something (better) in

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Wolfgang Schuster
Am 10.08.2025 um 11:33 schrieb Hraban Ramm: Hi again, for caching some generated data, I’d like to save a nested Lua table to a file, and load it later. I found http://lua-users.org/wiki/SaveTableToFile Is there already something (better) in ConTeXt? I'd assume, since the functionali

[NTG-context] saving and loading lua tables

2025-08-10 Thread Hraban Ramm
Hi again, for caching some generated data, I’d like to save a nested Lua table to a file, and load it later. I found http://lua-users.org/wiki/SaveTableToFile Is there already something (better) in ConTeXt? I'd assume, since the functionality is needed for tuc files? H

[NTG-context] [ constructing poly lines in metafun using lua ]

2025-08-09 Thread vm via ntg-context
A while ago in one of the online meetings it was pointed out that one can feed aa point list in metafun using a lua table. I haven't been able to figure out how to do that. Has any one a hint? At presnt I use a script to generate the path directly in MP but easily run out of memory tokens

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Hans Hagen via ntg-context
can be programmed) so blockquotes: what we think blockquotes are is not really what they are in the pdf universe and that is true for more ... don't look at these tags and assume meaning from them: it's a mix of application stuff (so sometines more detail as in rubies), html influence

[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Max Chernoff via ntg-context
return fmt[ [[\%s{%s}]] ](headings[level], content) end, } local writer = table.setmetatableindex({}, function(t, k) local func = _writer[k] if func == false then func = fmt["%s"] elseif type(func) == "string" then func = fmt[func .. "\n&

[NTG-context] Re: Layout of a table with formulae

2025-07-25 Thread Willi Egger
cter=no] Calculation \eTD > > or > >\bTH Calculation \eTH > > because TH cell type sets "aligncharacter=no" (but uses bold font). > > > Another option is > >\bTD \nocharcteralign Calculation \eTD > > > You can also divide your ta

[NTG-context] Re: Layout of a table with formulae

2025-07-24 Thread Wolfgang Schuster
\bTD[aligncharacter=no] Calculation \eTD or \bTH Calculation \eTH because TH cell type sets "aligncharacter=no" (but uses bold font). Another option is \bTD \nocharcteralign Calculation \eTD You can also divide your table into sections and enable character alignment o

[NTG-context] Layout of a table with formulae

2025-07-24 Thread Willi Egger
Hi all, at the moment I am writing an article about the use of the Soroban (Japanese abacus). There are a couple of tables showing formulae. The struggle is, that the alignment of the formulae is strange. I use alignmentcharacter= and aligncharacter=yes for aligning the formulae in a bTABLE…\e

[NTG-context] Re: Line breaks within TABLE cells

2025-07-22 Thread Kip Warner
On Mon, 2025-07-14 at 08:21 +0200, Hans Hagen wrote: > This \\ for linebreak is sort of a historic feature and not the in > terms of 'indicating intentions' ... that said, you can just > \breakhere which seem to work as intended. It makes no sense to > create a \\ alias for that. Apologies for the

[NTG-context] Re: interfaces.implement for key-value list

2025-07-14 Thread Aditya Mahajan
On Thu, 3 Jul 2025, Henning Hraban Ramm wrote: > Am 03.07.25 um 20:12 schrieb Wolfgang Schuster: > > Am 03.07.2025 um 19:53 schrieb Henning Hraban Ramm: > >> BTW is there a function for printing a table (like pprint.pprint in > >> Python)? > > > > table.s

[NTG-context] Re: Line breaks within TABLE cells

2025-07-13 Thread Hans Hagen via ntg-context
On 7/14/2025 6:19 AM, Kip Warner wrote: Hello list, I am trying to insert a manual line break inside of a TABLE cell, but can't seem to get it to work. I'm typesetting some mathematical formulae. See below minimal: \starttext \placetable[here,split,none][table:appendi

[NTG-context] Line breaks within TABLE cells

2025-07-13 Thread Kip Warner
Hello list, I am trying to insert a manual line break inside of a TABLE cell, but can't seem to get it to work. I'm typesetting some mathematical formulae. See below minimal: \starttext \placetable[here,split,none][table:appendix_notation]{} { \bTABLE[split=repeat,opti

[NTG-context] Re: testing tagging for UA-2

2025-07-12 Thread Hans Hagen via ntg-context
n (no comments there). that the spec was (and is) not stable, that validation is a moving target etc ... it's all about adaptation and it's always easy to point out whatever without looking at the past and reality one has / had to deal with. Yup, the very recent PDF 2.0 specificatio

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread jbf
23:34 LMTX fmt: 2025.7.8 ] and for some reason \placecombinedlist[content] is giving me a page full of 'no list method' instead of the contents. If I run the same file in an older version, I have no problem, and the Table of Contents appears as it should. I have made no changes to the f

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Florent Michel
gt; > > [ConTeXt ver: 2025.07.07 23:34 LMTX fmt: 2025.7.8 ] and for some > > > reason \placecombinedlist[content] is giving me a page full of > > 'no list > > > method' instead of the contents. > > > > > > If I r

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Wolfgang Schuster
> [ConTeXt  ver: 2025.07.07 23:34 LMTX  fmt: 2025.7.8 ] and for some > reason \placecombinedlist[content] is giving me a page full of 'no list > method' instead of the contents. > > If I run the same file in an older version, I have no problem, and th

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Florent Michel
> reason \placecombinedlist[content] is giving me a page full of 'no list > > method' instead of the contents. > > > > If I run the same file in an older version, I have no problem, and the > > Table of Contents appears as it should. > > > > I have ma

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Hans Hagen via ntg-context
n the same file in an older version, I have no problem, and the Table of Contents appears as it should. I have made no changes to the file that worked perfectly beforehand. Why this 'no list method'

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-07 Thread Jairo A. del Rio
binedlist[content] is giving me a page full of 'no list > method' instead of the contents. > > If I run the same file in an older version, I have no problem, and the > Table of Contents appears as it should. > > I have made no changes to the file that worked perfectly b

[NTG-context] no list method for \placecombinedlist[content]

2025-07-07 Thread jbf
I have no problem, and the Table of Contents appears as it should. I have made no changes to the file that worked perfectly beforehand. Why this 'no list method'? Julian ___ If your question is of intere

[NTG-context] Re: Full-page illustrations

2025-07-07 Thread Duncan Hothersall
that layout using \setuplayout when I'm doing a landscape figure or table. This has two advantages - it gives you much more control over the page layout for your landscape pages, and it encourages most viewers to display those pages in landscape, making proofs much more readable online. Dunc

[NTG-context] Keeping math formula information for export

2025-07-06 Thread Jairo A. del Rio
So, I wonder if such structure (paths + data) can be saved/exported as a Lua table, a SVG file or any other format which keeps the semantic information of math formulas. Thank you very much Jairo ___ If your question is

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread Thomas Meyer
Am 05.07.25 um 15:55 schrieb Wolfgang Schuster: \setupexternalfigures[location=default] \setupheadertexts[{\externalfigure[hacker][height=\headerheight]}] \starttext \startTABLE[split=repeat] \startTABLEhead \NC First line\\Second line \NC\NR \stopTABLEhead \startTABLEbody \dorecurse{100}{\

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread Wolfgang Schuster
Am 05.07.2025 um 15:27 schrieb Thomas Meyer: Am 05.07.25 um 11:13 schrieb Wolfgang Schuster: Am 05.07.2025 um 10:51 schrieb Thomas Meyer: Hi folks, is it possible to use an externalfigure (blabla.jpg) as a repeated header in a table and if yes, how can I use it? \setupTABLE

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread Thomas Meyer
Am 05.07.25 um 11:13 schrieb Wolfgang Schuster: Am 05.07.2025 um 10:51 schrieb Thomas Meyer: Hi folks, is it possible to use an externalfigure (blabla.jpg) as a repeated header in a table and if yes, how can I use it? \setupTABLE[][][\externalfigure[blabla]] doesn't

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread Wolfgang Schuster
dle] \dontleavehmode\externalfigure[hacker] [height=4ex] \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR \bTD table cell \recurselevel \eTD \eTR} % <- zero \eTABLEbody \eTABLE \stoptext Most of contexts table environments process the content multiple times to get the cell width and height, as a

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread vm via ntg-context
eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR \bTD table cell \recurselevel \eTD \eTR} % <- zero \eTABLEbody \eTABLE \stoptext On 05/07/2025 11:13, Wolfgang Schuster wrote: Am 05.07.2025 um 10:51 schrieb Thomas Meyer: Hi folks, is it possible to use an externalfigure (blabla.jpg) as a re

[NTG-context] Re: externalfigure as table header

2025-07-05 Thread Wolfgang Schuster
Am 05.07.2025 um 10:51 schrieb Thomas Meyer: Hi folks, is it possible to use an externalfigure (blabla.jpg) as a repeated header in a table and if yes, how can I use it? \setupTABLE[][][\externalfigure[blabla]] doesn't work. \setupexternalfigures[location=default] \starttext \bTABLE[

[NTG-context] externalfigure as table header

2025-07-05 Thread Thomas Meyer
Hi folks, is it possible to use an externalfigure (blabla.jpg) as a repeated header in a table and if yes, how can I use it? \setupTABLE[][][\externalfigure[blabla]] doesn't work. Thank you for any hint! Greetings

[NTG-context] Re: success and a query

2025-07-05 Thread Hans Hagen via ntg-context
bined with a bit more detailed classification (thereby preventing unwanted side effects). Of course that comes at a price (much more testing when defining macros etc) but that is compensated with plenty gains elsewhere. BTW, processing that file is one of the rare cases where token memory gets bu

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Henning Hraban Ramm
Am 03.07.25 um 22:05 schrieb Henning Hraban Ramm: (The difference, as fair checked: table.serialize shows the name of the table variable, where inspect says "table".) That should have been "as far as I checked". I’m too tired… BTW: ConTeXt online meet-up i

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Henning Hraban Ramm
Am 03.07.25 um 20:12 schrieb Wolfgang Schuster: Am 03.07.2025 um 19:53 schrieb Henning Hraban Ramm: BTW is there a function for printing a table (like pprint.pprint in Python)? table.serialize(...) Am 03.07.25 um 20:12 schrieb Thomas A. Schmitz: > > print (inspect (table)) > > I

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Thomas A. Schmitz
On 7/3/25 7:53 PM, Henning Hraban Ramm wrote: BTW is there a function for printing a table (like pprint.pprint in Python)? print (inspect (table)) It's a module in Lua that is integrated into the ConTeXt Lua interpreter. HTH T

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Wolfgang Schuster
ement {    name  = "Autoren",    public    = true,    arguments = { "hash" },    actions   = function(t) logs.report('Autoren', 'interface got table of length ' .. #t)    end } \stopluacode \starttext Info: \Autoren[text=Hans,melody=Hraban] \stoptext

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Henning Hraban Ramm
c    = true,    arguments = { "hash" },    actions   = function(t) logs.report('Autoren', 'interface got table of length ' .. #t)    end } \stopluacode \starttext Info: \Autoren[text=Hans,melody=Hraban] \stoptext """ The table t has alway

[NTG-context] Re: interfaces.implement for key-value list

2025-07-03 Thread Wolfgang Schuster
" },   actions   = function(t)     logs.report('Autoren', 'interface got table of length ' .. #t)   end } \stopluacode \starttext Info: \Autoren[text=Hans,melody=Hraban] \stoptext """ The table t has always length 0. Where’s my error? Do you see the difference? \s

[NTG-context] interfaces.implement for key-value list

2025-07-03 Thread Henning Hraban Ramm
Hi, I’m trying to get a simple function with a variable number of parameters working: """ \startluacode interfaces.implement { name = "Autoren", public= true, arguments = { "hash" }, actions = function(t) logs.report('Autoren&

[NTG-context] Re: Passing the name of an XML file to process via the command line

2025-07-03 Thread Duncan Hothersall
Yes, many thanks Thomas, I have actually written a table handler in lua and a couple of other bits, and your wiki page is very helpful! Cheers, Duncan On Thu, 3 Jul 2025 at 14:41, Thomas A. Schmitz wrote: > Not sure if this may be of interest to you: it is also relatively easy > to do p

[NTG-context] reading YAML with Lua

2025-07-03 Thread Henning Hraban Ramm
Hi, is there already something to read a YAML file as a lua table in LuaMetaTeX? I didn’t find anything. My requirements are low, I just need to read some author data like: """ AstridLindgren: birth_year: '1907' death_year: '2002' name: Astrid Li

[NTG-context] Re: preventing next \par

2025-06-20 Thread mf
Thank you Hans, I'll keep these examples, because I always have problems writing lpaths, especially selecting along the siblings and ancestors axis. I usually switch to the lua side and work on the xml table, but this adds code and unnecessary complexity. In this particular case, though

[NTG-context] Re: New user here!

2025-06-16 Thread Wolfgang Schuster
int rule at the beginning and end but a quarter-point rule between headings and the data).  Plain (Xe)TeX's \halign command works only for that generally useless item, a table with only one column - if you try add an extra column the setting halts and one is presented with the false infor

[NTG-context] Re: New user here!

2025-06-16 Thread John Was
> ago, I like a half-point rule at the beginning and end but a quarter-point > rule between headings and the data). Plain (Xe)TeX's \halign command works > only for that generally useless item, a table with only one column - if you > try add an extra column the setting halts and o

[NTG-context] Re: New user here!

2025-06-16 Thread Taco Hoekwater
a lifetime ago, I > like a half-point rule at the beginning and end but a quarter-point rule > between headings and the data). Plain (Xe)TeX's \halign command works only > for that generally useless item, a table with only one column - if you try > add an extra column the

[NTG-context] Re: New user here!

2025-06-16 Thread John Was
rter-point rule between headings and the data). Plain (Xe)TeX's \halign command works only for that generally useless item, a table with only one column - if you try add an extra column the setting halts and one is presented with the false information that there is more than one instance of #

[NTG-context] Re: How to scale a TABLE to \textwidth?

2025-05-19 Thread Wolfgang Schuster
Am 19.05.2025 um 17:47 schrieb Joel via ntg-context: I have a large table that spans multiple pages long. Its just about 1" too wide on the page, so I tried using various means to scale it just a little, such that it fits the page width. For example, I tried this way, by wrapping it i

[NTG-context] How to scale a TABLE to \textwidth?

2025-05-19 Thread Joel via ntg-context
I have a large table that spans multiple pages long. Its just about 1" too wide on the page, so I tried using various means to scale it just a little, such that it fits the page width. For example, I tried this way, by wrapping it inside \scale, but that ends up instead of splitting a

[NTG-context] Re: List of abbreviations

2025-05-10 Thread Wolfgang Schuster
\startquest \NC 1. \NC question 1 \NC\NR \NC 2. \NC question 2 \NC\NR \stopquest \stoptext Tabulate add by default \blank before and after an table, to remove the line add the following after \definetabulate. \setuptabulate [quest] [before=,after=] Wolfgang

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Wolfgang Schuster
verbatim = { pua = "ua1", pdf = "Code" }, lines = { pua = "ua1", pdf = "Part" }, line = { pua = "ua1", pdf = "Code" }, linenumber = { pua =

[NTG-context] Re: read out of \tx-value possible?

2025-04-22 Thread Thomas Meyer
Meyer: is it possible to read out the value of \tx (or \txx ... )  for calculations if bodyfont and fontsize is given? \the\tx doesn't work. Does \showbodyfontenvironment help? Hraban Thank you, Hraban, I know this table. But I think it's too complicated for me to extract from

[NTG-context] Re: How do I remove the indent of a table-in-itemize?

2025-04-15 Thread LPr Pontex
\stoptabulate > >\stopitemize > >\stopitemize > > \stoptext > > > > > > How do I remove the blank space in front of the table, marked by the > > green line in the picture, so that the text "- Aaa Bbb" moves just below > >

[NTG-context] Re: How do I remove the indent of a table-in-itemize?

2025-04-15 Thread Wolfgang Schuster
b \AR         \stoptabulate       \stopitemize   \stopitemize \stoptext How do I remove the blank space in front of the table, marked by the green line in the picture, so that the text "- Aaa Bbb" moves just below the "- Ddd"? Use either \startnarrower[-left] \starttabulate[|

[NTG-context] How do I remove the indent of a table-in-itemize?

2025-04-15 Thread LPr Pontex
ptext How do I remove the blank space in front of the table, marked by the green line in the picture, so that the text "- Aaa Bbb" moves just below the "- Ddd"? TIA. Best regards, Lukas TabIt.mkiv

[NTG-context] Re: combining natural tables and itemize with \its

2025-04-14 Thread Wolfgang Schuster
Am 14.04.2025 um 21:23 schrieb Henning Hraban Ramm: Hi, I’d like to have a kind of questionnaire in a table and thought it would make sense to use \its. While there’s an integration of tabulate and itemize, I can’t get it working with a natural table. Is this possible at all? \starttext

[NTG-context] combining natural tables and itemize with \its

2025-04-14 Thread Henning Hraban Ramm
Hi, I’d like to have a kind of questionnaire in a table and thought it would make sense to use \its. While there’s an integration of tabulate and itemize, I can’t get it working with a natural table. Is this possible at all? \starttext % simple itemize works: \startitemize[6,nowhite

[NTG-context] Re: read out of \tx-value possible?

2025-04-12 Thread Bruce Horrocks
and fontsize is given? \the\tx doesn't work. >> >> Does \showbodyfontenvironment help? >> >> Hraban >> > > Thank you, Hraban, > > I know this table. But I think it's too complicated for me to extract from > the source what I want. No need

[NTG-context] Re: read out of \tx-value possible?

2025-04-12 Thread Thomas Meyer
raban, I know this table. But I think it's too complicated for me to extract from the source what I want. If you had written, use this or that command, I could have done something with it. Now I try it this way:     \setuplayout[grid=yes]     \setupbodyfont[libertinus,12pt]     \setupinte

[NTG-context] Thesis in ConTeXt

2025-04-10 Thread Gerion Entrup
ific experiment. The function returns another function that allows to give a specific string (the keys in the Lua table) to get the actual data. The meaning of returning another function is to be able to track all usages of the data (for example one can generate a datagraphy with this). Example u

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Pablo Rodriguez via ntg-context
de" }, linenumber = { pua = "ua1", pdf = "Span" }, synonym= { pua = "ua1", pdf = "Span" }, sorting= { pua = "ua1", pdf = "Span" }, registe

[NTG-context] Re: How to check if a register item appears in a specific chapter, or not?

2025-04-05 Thread Bruce Horrocks
{\bTD Ch #1 \eTD} \eTR \dostepwiserecurse{1}{16}{1}{% No of standards \bTR \bTD Std #1 \eTD \dostepwiserecurse{1}{7}{1}% No of chapters (Use {8}{15}{1} for the rest in a 2nd table) { \bTD \datasetvariable{TrackLearning}{##1:#1}{val} \eTD } \eTR } \

[NTG-context] How to check if a register item appears in a specific chapter, or not?

2025-04-05 Thread Joel via ntg-context
visual for readers for seeing where the standards appear. Here's a table: \setupcolors[state=start] \setupTABLE[frame=on, align=middle, option=stretch] \bTABLE[split=yes]   % Header row: empty first cell then Chapters 1–15   \bTR     \bTD[align=middle] {} \eTD     \bTD[align=middle] Chapters

[NTG-context] Re: Alternate text for images?

2025-04-05 Thread Matthias Weber
des annotationPassedAlternate text should not hide annotation Other elements alternate textPassedOther elements that require alternate text Tables Rule NameStatusDescription RowsPassedTR must be a child of Table, THead, TBody, or TFoot TH and TDPassedTH and TD must be children of TR HeadersPassedTables sho

[NTG-context] Re: Alternate text for images?

2025-04-04 Thread Matthias Weber
ome content Hides annotationFailedAlternate text should not hide annotation Other elements alternate textFailedOther elements that require alternate text Tables Rule NameStatusDescription RowsFailedTR must be a child of Table, THead, TBody, or TFoot TH and TDFailedTH and TD must be children of

[NTG-context] Re: How to get TABLE to start on the same page, split when needed?

2025-04-02 Thread Aditya Mahajan
to put it on the next page, > instead of just splitting that cell up. I believe that in natural tables the table cell cannot split over a page. If there is not enough space to place the first row in the current page, then the table moves to the next page. Aditya_

[NTG-context] Re: How to get TABLE to start on the same page, split when needed?

2025-04-02 Thread Joel via ntg-context
\starttext     \input knuth     \input knuth     \input knuth          {\boldface This is instructions.}          \bTABLE[split=yes, frame=off]     \bTR\bTD ... \eTD\bTD \input knuth \input knuth \eTD\eTR     \bTR\bTD ... \eTD\bTD ... \eTD\eTR     \bTR\bTD ... \eTD\bTD ... \eTD\eTR    

[NTG-context] How to get TABLE to start on the same page, split when needed?

2025-04-01 Thread Joel via ntg-context
I was using tabulate, but ended up with some strange error I could not track down. So I switched to using TABLE, the error went away, but now I have a new problem: If the TABLE is really big, but fits on the next page, it seems to add a \pagebreak before, then shows the table. This is wasting

[NTG-context] Footer issue (for graduated wizards mastering kung-fu)

2025-03-13 Thread roberto . bianchi
=== %% LISTS'S FORMAT %% === % unordered list: bullets \defineitemgroup[bullets][levels=5] \setupitemgroup[bullets] [each] [symbol=bullet, option=packed, width=0.65em, distance=0

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Mohammad Hossein Bateni
d e.g. in lua > data tables (easier). Teh fact that ther eis \fa is sort of 'good luck' > because if we'd add a language today we don't define the short ones as > command any longer (we keep the existing ones for compatibility). > This make sense. My point is not why

[NTG-context] Re: Right-to-left natural tables

2025-03-02 Thread Bruce Horrocks
> On 2 Mar 2025, at 19:50, Mohammad Hossein Bateni wrote: > > - not having to write the end tags \eTD for each cell You could always put a wrapper around \doloopoverlist, e.g. \define\row#1{\doloopoverlist{#1}{\NC\recursestring}\NR} and then your table becomes \starttabulate \

[NTG-context] Re: Right-to-left natural tables

2025-03-02 Thread Wolfgang Schuster
\starttabulate[|CR{red}c|CC{yellow}c|CM{green}c|CL{blue}c|] You can use \setupTABLE to set values for whole rows and columns at the begin of the table. Wolfgang ___ If your question is of interest to others as well

[NTG-context] Re: Right-to-left natural tables

2025-03-01 Thread Mohammad Hossein Bateni
add the same support to tabulate which are a little less verbose? On Sun, Feb 23, 2025 at 6:01 AM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Am 22.02.2025 um 23:07 schrieb Mohammad Hossein Bateni: > > Hello, > > > > Are natural tables still the rec

[NTG-context] Re: \setuplist[chapter][alternative=d] inside margins

2025-02-27 Thread Hans Hagen
ed to experiment with is \setuplistalternative which should give you much more control over the layout. The example on the Wiki page shows how to construct a tabulate table containing the TOC entries which could be adapted to provide columns if that is what you want. Many thanks for this command, since

[NTG-context] Re: \setuplist[chapter][alternative=d] inside margins

2025-02-27 Thread Pablo Rodriguez via ntg-context
ernative which should give you much more control over > the layout. The example on the Wiki page wiki.contextgarden.net/Command/setuplistalternative> shows how to > construct a tabulate table containing the TOC entries which could be > adapted to provide columns if that is what you want

[NTG-context] Re: \setuplist[chapter][alternative=d] inside margins

2025-02-27 Thread Bruce Horrocks
e command you need to experiment with is \setuplistalternative which should give you much more control over the layout. The example on the Wiki page <https://wiki.contextgarden.net/Command/setuplistalternative> shows how to construct a tabulate table containing the TOC entries which could be

[NTG-context] Re: how to only switch fontclass ?

2025-02-25 Thread Wolfgang Schuster
e the lanuage for a single word etc. Another solution is to use the paragraph environment and create named paragraphs for each language, this can also be done with extreme tables and named table cells (e.g. \startxcell[chinese]). Wol

[NTG-context] Re: Mathdigits fallback does not work

2025-02-23 Thread Hans Hagen
On 2/23/2025 8:46 PM, Mohammad Hossein Bateni wrote: This is great. Thanks a lot, Hans! i had made a TABLE test but your gmail bounces Hans - Hans Hagen | PRAGMA ADE

[NTG-context] Re: Right-to-left natural tables

2025-02-23 Thread Wolfgang Schuster
Am 22.02.2025 um 23:07 schrieb Mohammad Hossein Bateni: Hello, Are natural tables still the recommended table mechanism in ConTeXt? How can I get the order of cells in each row reversed (going from right to left)? It depends on your use but I tend to use either tabulate or extreme tables

[NTG-context] Right-to-left natural tables

2025-02-22 Thread Mohammad Hossein Bateni
Hello, Are natural tables still the recommended table mechanism in ConTeXt? How can I get the order of cells in each row reversed (going from right to left)? \starttext \placetable{Caption} {\bTABLE \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD Three \eTD \bTD fourteen \eTD \eTR \eTABLE

[NTG-context] Re: Bug (?) in \definetabletemplate

2025-02-22 Thread Christian Prim via ntg-context
rks: > > > > \starttable[o0|l|l|ro0|] %same as above, but without the use of the > > defined template > > \NC first column \NC second column \NC third column \NC \AR > > \stoptable > > > > I know that this table-environment is deprecated. But it i

[NTG-context] Re: Bug (?) in \definetabletemplate

2025-02-22 Thread Wolfgang Schuster
example works: \starttable[o0|l|l|ro0|] %same as above, but without the use of the defined template         \NC first column \NC second column \NC third column \NC \AR \stoptable I know that this table-environment is deprecated. But it is best suited for my project. I love the use of the template

[NTG-context] Bug (?) in \definetabletemplate

2025-02-22 Thread Christian Prim via ntg-context
use of the defined template \NC first column \NC second column \NC third column \NC \AR \stoptable I know that this table-environment is deprecated. But it is best suited for my project. I love the use of the template with this environment. Thanks for looking into it. Christian

[NTG-context] Re: Invalid href in ToC in exported html

2025-02-16 Thread Florent Michel
févr. 2025 à 21:39, Florent Michel a écrit : > Hi, > > It seems (unless I am missing something) that hyperlinks in the table of > contents for the exported html are incorrect when `reference` is set. > > Minimal(-ish) working example: > _

[NTG-context] Invalid href in ToC in exported html

2025-02-12 Thread Florent Michel
Hi, It seems (unless I am missing something) that hyperlinks in the table of contents for the exported html are incorrect when `reference` is set. Minimal(-ish) working example: _ \setupbackend[export=yes] \setupinteraction[state=start] \starttext \placecontent

[NTG-context] Re: Kerning ignored on some macOS TTC fonts

2025-02-05 Thread Hans Hagen via ntg-context
GPOS > kern As I wrote, I can generate new TTF fonts with FontForge from Optima.ttc for example, use them instead and ConTeXt then has access to the kerning table (see attached PDF). I was just wondering if there is a way to use the TTC files directly with ConTeXt. liek this: file:camb

[NTG-context] Re: Kerning ignored on some macOS TTC fonts

2025-02-04 Thread Henning Hraban Ramm
GPOS > kern As I wrote, I can generate new TTF fonts with FontForge from Optima.ttc for example, use them instead and ConTeXt then has access to the kerning table (see attached PDF). I was just wondering if there is a way to use the TTC files directly with ConTeXt. You’re right, I look

[NTG-context] Re: Kerning ignored on some macOS TTC fonts

2025-02-04 Thread Paul Schalck via ntg-context
fonts with FontForge from Optima.ttc for example, use them instead and ConTeXt then has access to the kerning table (see attached PDF). I was just wondering if there is a way to use the TTC files directly with ConTeXt. font_test_optima.pdf Descriptio

[NTG-context] Re: Kerning ignored on some macOS TTC fonts

2025-02-03 Thread Henning Hraban Ramm
: 5 fonts | otf loading | loading '/System/Library/Fonts/Optima.ttc', hash 'optima' otf reader | ignoring empty kern table of feature 'kern' fonts | otf loading | loading done fonts | otf loading | saving '/System/Library/Fonts/Optima.ttc

  1   2   3   4   5   6   7   8   9   10   >