ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: \setupheadertexts for chapters with different authors
Date: Fri, 18 Mar 2022 08:52:38 +0100	[thread overview]
Message-ID: <49d83fe5-3310-30ac-79cc-26b88be47403@fiee.net> (raw)
In-Reply-To: <9f7c72cd-7b3d-6188-8a17-96f008edf7a0@gmail.com>

Am 18.03.22 um 01:48 schrieb jbf via ntg-context:
> I thought this should work, since \structurelistuservariable{author} 
> works fine to call the author name into the TOC, but the same does not 
> work for header texts it seems:
> 
> \setupheadertexts
> 
> [{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][]
> 
> [{\hfill\documentvariable{metadata:title}\hfill}][]
> 
> But it doesn't. What am I doing wrong?

The *list* variables work only in lists.

There’s also \structurevariable and \structureuservariable.

Make sure you use setups for the header, otherwise the variable gets 
expanded only once at the beginning.

Like in:

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups

\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups


HTH
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2022-03-18  7:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-18  0:48 jbf via ntg-context
2022-03-18  7:52 ` Henning Hraban Ramm via ntg-context [this message]
2022-03-18  9:13   ` jbf via ntg-context
2022-03-18 10:49     ` Henning Hraban Ramm via ntg-context
2022-03-19  2:16   ` jbf via ntg-context
2022-03-19  2:55     ` jbf via ntg-context
2022-03-19  9:18     ` Henning Hraban Ramm via ntg-context
2022-03-19  9:32       ` Hans Hagen via ntg-context
2022-03-20  2:50       ` jbf via ntg-context

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=49d83fe5-3310-30ac-79cc-26b88be47403@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).