ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* linenumbers in marking
@ 2017-05-08  6:36 Thomas A. Schmitz
  0 siblings, 0 replies; only message in thread
From: Thomas A. Schmitz @ 2017-05-08  6:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

5 years ago, on the mailing list, there was a thread started by Pablo 
Rodríguez (http://www.mail-archive.com/ntg-context@ntg.nl/msg62140.html) 
about line numbers in headers. Wolfgang Schuster replied that in 
principle, it's possible to have line numbers in headers, "but it’s not 
usable because the numbers are always shown on the next page." He made 
the following example (which I have slightly adapted):

\definemarking[linenumber]

\define\LinenumberCommand
   {\normalexpanded{\setmarking[linenumber]{\linenumber}}}

\setuplinenumbering[command=\LinenumberCommand]

\startsetups linenumber

         \doiftext {
                 \getmarking[linenumber]
         }
         {
                 \getmarking[linenumber][top] – 
\getmarking[linenumber][bottom]
         }

\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

\dorecurse{6}{\input tufte\par}

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\resetmarking[linenumber]

\dorecurse{6}{\input tufte\par}

\stoptext

Hans wrote: "currently it's not possible but it's no big deal to add 
that feature at some point." I have now a similar problem with markings 
in a header. Is there a solution to this? Could it be implemented now?

Thanks, and best wishes

Thomas
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-08  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08  6:36 linenumbers in marking Thomas A. Schmitz

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).