ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem using markings
@ 2015-11-03 21:43 josephcanedo
  2015-11-04 23:23 ` josephcanedo
  0 siblings, 1 reply; 2+ messages in thread
From: josephcanedo @ 2015-11-03 21:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 863 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2027 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem using markings
  2015-11-03 21:43 Problem using markings josephcanedo
@ 2015-11-04 23:23 ` josephcanedo
  0 siblings, 0 replies; 2+ messages in thread
From: josephcanedo @ 2015-11-04 23:23 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1468 bytes --]

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.


Thanks

Best regards


Joseph Canedo





From: josephcanedo@gmail.com
Sent: ‎Tuesday‎, ‎November‎ ‎3‎, ‎2015 ‎10‎:‎43‎ ‎PM
To: ntg-context@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

[-- Attachment #1.2: Type: text/html, Size: 3332 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-04 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03 21:43 Problem using markings josephcanedo
2015-11-04 23:23 ` josephcanedo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).