[NTG-context] Problem using markings

josephcanedo at gmail.com josephcanedo at gmail.com
Thu Nov 5 00:23:40 CET 2015

Dear all,

Digging a bit Inside lua code I could find a way to use internal structures (namely structures.marks.fetched, structures.lists.ordered.section and structures.lists.cached) to get the output I would like. I guess that’s not really recommended to use internal structures from lua code ? Happy to paste some initial crude implementation here if anyone is interested.


Best regards

Joseph Canedo

From: josephcanedo at gmail.com
Sent: ‎Tuesday‎, ‎November‎ ‎3‎, ‎2015 ‎10‎:‎43‎ ‎PM
To: ntg-context at ntg.nl

Dear all,

I would like to display in page header the number of first and last subsection that starts on a given page (ie the title of those appear on that page regardless their content). For this I tried using 

\fetchmarking[subsectionnumber][][top] and \fetchmarking[subsectionnumber][][bottom]

but it does not give me the expected results if (it seems) the page does not start immediately with a new subsection (ie there is text of subsection starting from previous page). In the example below in page 2 I’d like to have 1.4 - 1.6, but top marking equals to 1.3 in this case. In the other pages top marking contains expected number (well the number I’d like to print).

I guess there is some logic to use using previous, top and first markings but I fail to understand what it could be.

Many thanks

Best regards

Joseph Canedo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20151104/0bedc392/attachment-0001.html>

More information about the ntg-context mailing list