ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <josephcanedo@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Problem using markings
Date: Wed, 4 Nov 2015 23:23:40 +0000	[thread overview]
Message-ID: <6f2ed25b53ba45ad90e3b6ea8e842e48@gmail.com> (raw)
In-Reply-To: <3aad7225e23d4f828cabe10776ed34af@gmail.com>


[-- 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
___________________________________________________________________________________

      reply	other threads:[~2015-11-04 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-03 21:43 josephcanedo
2015-11-04 23:23 ` josephcanedo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6f2ed25b53ba45ad90e3b6ea8e842e48@gmail.com \
    --to=josephcanedo@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).