ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: header entries semi-wrong
Date: Thu, 10 Mar 2011 16:02:08 +0100	[thread overview]
Message-ID: <AANLkTinazb2LXcbk6XhXS6OU-PvbFOR-h+nqL1SsRNZT@mail.gmail.com> (raw)
In-Reply-To: <8CAE10F0-0F38-4BF8-B907-1E5EC6ACEAA0@gmail.com>

On Thu, Mar 10, 2011 at 3:59 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 10.03.2011 um 15:55 schrieb Steffen Wolfrum:
>
>> Isn't there a command that gets the number that belongs to the text of "\getmarking[section]"
>
> \getmarking[sectionnumber] % partnumber, chapternumber etc.
>
> Wolfgang

Right: this works ok.

\showframe
\setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt]

\definepapersize[Pape][width=14.7cm,height=22.3cm]
\setuppapersize[Pape][Pape]
\setuplayout
       [width=113mm,height=572pt\relax,
       backspace=17mm,topspace=17mm,
       header=12pt,headerdistance=6pt,
       footer=36pt,footerdistance=0pt,
       location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]

%\def\HeadL{Part
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[section][first]}%[EbeneEins]}
%\def\HeadR{\headnumber[section]\enskip\getmarking[section][first]}

\def\HeadL{Part
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]}
\def\HeadR{\getmarking[sectionnumber]\enskip\getmarking[section]}


\setupheadertexts
       [\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber]
       [pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}]


\starttext
\chapter{X}
\section{One}
\page x \page
\dorecurse{5}{\input ward \par}
\dorecurse{2}{\input tufte \par}
\section{Two}
\dorecurse{11}{\input ward \par}
\stoptext


-- 
luigi
___________________________________________________________________________________
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:[~2011-03-10 15:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06 10:56 Steffen Wolfrum
2011-03-10 13:38 ` Steffen Wolfrum
2011-03-10 13:59   ` luigi scarso
2011-03-10 14:16     ` Willi Egger
2011-03-10 14:55       ` Steffen Wolfrum
2011-03-10 14:59         ` Wolfgang Schuster
2011-03-10 15:02           ` luigi scarso [this message]
2011-03-10 15:17           ` Steffen Wolfrum
2011-03-10 14:26 ` Wolfgang Schuster
2011-03-10 14:48   ` Steffen Wolfrum
2011-03-10 14:57     ` Wolfgang Schuster

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=AANLkTinazb2LXcbk6XhXS6OU-PvbFOR-h+nqL1SsRNZT@mail.gmail.com \
    --to=luigi.scarso@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).