From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114019 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fv leung via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: how to place getmarking[title] in header instead of getmarking[chapter] Date: Wed, 5 Jan 2022 06:53:04 +0800 Message-ID: References: <9507c20a6590a22b03c2c010996bf57f2abdf8b0.camel@mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8611785928678573504==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11725"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fv leung To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 04 23:54:05 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4sgv-0002qh-D4 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 04 Jan 2022 23:54:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 38C9C28700F; Tue, 4 Jan 2022 23:53:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h7tQpEqFN686; Tue, 4 Jan 2022 23:53:23 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0DD04282A8E; Tue, 4 Jan 2022 23:53:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A520B282A8E for ; Tue, 4 Jan 2022 23:53:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id neeWWgt-788D for ; Tue, 4 Jan 2022 23:53:19 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.171; helo=mail-vk1-f171.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5B8B1280F96 for ; Tue, 4 Jan 2022 23:53:19 +0100 (CET) Original-Received: by mail-vk1-f171.google.com with SMTP id l68so5603600vkh.4 for ; Tue, 04 Jan 2022 14:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=izvGhGEx45fIxXfpz236SUOblcc3a1r91qlhKfhtzFs=; b=GtN2OAYInMlbEV+wM+WCFkcMdOe8CBs6r8DIjIEtxvum6T25hAHsMkH4M4BJScn/N5 uUcLn2oQhPGwPRpxq1kxzvGSmrsGEqfRAqoyPXPZKAQaT5THvDbJapg6/cNNHUxtcMef DQngBPuDKwyMU+3bufjBDmXUw9o7JOvOfchCz5c4KwPwrI/U7/7V4AZ45QAbUlM/QYY3 D5Fliycv2Gd1curcV5k3iGVga20/OZBgbUTDTZMtCof3k3l/oK7O/hSYnf30lXvpJAvm SvduO8YhzJZxP7gogIwNeQHiAG7AKBH85Tb5eaUoZRhzy+TdwNA8L/JnCSUGj3Wbtf8r v8Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=izvGhGEx45fIxXfpz236SUOblcc3a1r91qlhKfhtzFs=; b=yxkroQnVrMmSKuSf+1ZrXt+QNkuzx8NFUg4Szvf89nT4wz2yMaBJeD1X/3ndep6/jz 0in8iP+9bjqjGKmwkf3E+Ko7SDAadEC57jpElkpfCNvdvulYsc3mJsB3QXfw4F3H9/gG yebmqRZ+i9Jl/IYx1gdpC2E8aFxXS1Qjlmq4tE0Bl1Bwd6FspJ+3sOVlZxjTP7IOQmly Iiw+VYM3Kt7SQwdl250cJGwayZXwiePDKsEancRVTT7+TbTZaYpNPDA3/pMY70ShVvU0 Ub4AOeWovOtr6H4v4PYlvnkR2WMjQq7KWYOuUQJW5mRtxcuX+ogaDoxvC4v0+vjjPMxh ae7g== X-Gm-Message-State: AOAM532ANZrRVSH+uJnDzwO3vw1Wcip0G+7HR3/BBAG4SoYK+6rJcE4q YV4bslGXxsYGmX2avpKTYMsYkGZJA532fM0BmmN4KrdEB0U= X-Google-Smtp-Source: ABdhPJxzdD5mYNeUaloZRMRtcbzmTRherNkEAGIAPuDh6vfJbNNTO6F6jgDdH+uA+LIagnGMywlL495OqTAMw9dAi2U= X-Received: by 2002:ac5:cfc4:: with SMTP id m4mr16822786vkf.30.1641336795393; Tue, 04 Jan 2022 14:53:15 -0800 (PST) In-Reply-To: <9507c20a6590a22b03c2c010996bf57f2abdf8b0.camel@mailbox.org> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114019 Archived-At: --===============8611785928678573504== Content-Type: multipart/alternative; boundary="000000000000a5768705d4c98090" --000000000000a5768705d4c98090 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable can use this for the header: \setupheadertexts [text] [{\namedstructurevariable{chapter}{title}}] [] [] [{\namedstructurevariable{chapter}{title}}] juh via ntg-context =E6=96=BC 2022=E5=B9=B41=E6=9C=885= =E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=8812:28=E5=AF=AB=E9=81=93=EF= =BC=9A > Hi all, > > I know how to put the current chapter in the header. > > But how can I also put the value of \starttitle in the header. > > In this mwe the \starttitle command does not modify the header. > > Is it possible to do something like: > > \getmarking[chapter or title] > > I cannot include > \setmarking[chapter]{title headline} > right before \starttitle as the source is created automatically. > > > \setupheadertexts > [text] > [{\getmarking[chapter]}] > [] > [] > [{\getmarking[chapter]}] > > \setupcombinedlist[content][list=3D{chapter}] > \starttext > \placecontent > \startchapter > [title=3DLorem] > > \startsection > [title=3DLorem subsection] > \stopsection > \stopchapter > \startchapter > [title=3DIpsum] > \stopchapter > \starttitle > [title=3Dtitle headline] > > Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. > Etiam vel tortor sodales tellus ultricies commodo. > > \page > > Nullam eu ante vel est convallis dignissim. > > \stoptitle > \stoptext > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000a5768705d4c98090 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
can use this for the header:


\setup= headertexts
[text]
[{\namedstructurevariable{chapter}{title}}]
[]<= br>[]
[{\namedstructurevariable{chapter}{title}}]

juh via ntg-c= ontext <ntg-context@ntg.nl>= =E6=96=BC 2022=E5=B9=B41=E6=9C=885=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8A= =E5=8D=8812:28=E5=AF=AB=E9=81=93=EF=BC=9A
Hi all,

I know how to put the current chapter in the header.

But how can I also put the value of \starttitle in the header.

In this mwe the \starttitle command does not modify the header.

Is it possible to do something like:

\getmarking[chapter or title]

I cannot include=C2=A0
\setmarking[chapter]{title headline}
right before \starttitle as the source is created automatically.


\setupheadertexts
[text]
[{\getmarking[chapter]}]
[]
[]
[{\getmarking[chapter]}]

\setupcombinedlist[content][list=3D{chapter}]
\starttext
\placecontent
\startchapter
=C2=A0[title=3DLorem]

=C2=A0\startsection
=C2=A0[title=3DLorem subsection]
=C2=A0\stopsection
\stopchapter
\startchapter
=C2=A0[title=3DIpsum]
\stopchapter
\starttitle
=C2=A0[title=3Dtitle headline]

=C2=A0Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. =C2=A0Etiam vel tortor sodales tellus ultricies commodo.

=C2=A0\page

Nullam eu ante vel est convallis dignissim.

\stoptitle
\stoptext


___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000a5768705d4c98090-- --===============8611785928678573504== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8611785928678573504==--