From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105142 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeroen Newsgroups: gmane.comp.tex.context Subject: Re: Custom Footertext Date: Mon, 30 Sep 2019 00:16:42 +0000 Message-ID: References: <06DD4936-9B45-4F90-9F33-5E59299199B5@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2099459895398381512==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="122126"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 30 02:14:22 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEjKX-000Veb-Rs for gctc-ntg-context-518@m.gmane.org; Mon, 30 Sep 2019 02:14:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9FC7C16106F; Mon, 30 Sep 2019 02:13:57 +0200 (CEST) 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 8nUrSwE2M3iB; Mon, 30 Sep 2019 02:13:52 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0C4911610B0; Mon, 30 Sep 2019 02:13:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A31016108A for ; Mon, 30 Sep 2019 02:13:51 +0200 (CEST) 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 dBl-64XIEfnc for ; Mon, 30 Sep 2019 02:13:46 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.50; helo=mail-io1-f50.google.com; envelope-from=contextntg@gmail.com; receiver= Original-Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (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 5A4A716106F for ; Mon, 30 Sep 2019 02:13:46 +0200 (CEST) Original-Received: by mail-io1-f50.google.com with SMTP id w12so5403297iol.11 for ; Sun, 29 Sep 2019 17:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZBGM24AJPfXN5trXq+DGuPlfGLwL15lJMRQdDh3v3CI=; b=K70ma+C9wfVXPf5QhYoOO2ypsFzAJoJO1V1Nus0CUfX/kZwoQQm2A/Vs+aNNbLTJvD iyhjploxifYV5qHj83Nsyd/6nBPJe/GPu7P7BxqbxgzKZ1MncwStkni4XqEP257sjHDQ r+17n8iN2PYv3qbQPj9AhrPbizOFKQ1dUAgR5z0vNpObPDWaAnh31P2B8RSmfs1vL5p4 g3KK7Pim1TkHrC+IhPzJEXyNO3ec8AmxGEBF2L28GVdu2FF2vr3IHXZTNd1cg2Uyp4CH Bpdb4VKA7PM/9fHuhIKXf8JAN09BrHmKfjb9HZfIGWv0D1ENTrfojq6Geo67hWOedkw4 EFSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ZBGM24AJPfXN5trXq+DGuPlfGLwL15lJMRQdDh3v3CI=; b=Ge4Jhv/DBzWxuZncE9oSbnmtFpeOZJRpVLYayH0Gh8xt4cJwV9r8hsor7lboYHPeXY KRI5qbWBb5V18yKr/6OQVnqLVFoUm1R17mbpsL8vnmd5PcCWLfuFTiPLyOVUl3A0XH+U ZkgcjzbHkfY9GU49rUnG0c3wVQP6a5RuFy94c+Kwg8CTT+q0WOq+GMiEmHf4/qjDedNW gEJord/yIwQmrbZtMIg/DzyapdPn1YCryg6ZoAWcSHIdpX7sglSaBJXmUtZAIcg5b69F UO8cMK7o/icjZIOZX1IgDsa90/W/mAW0bVUcAXleTbG1hCL7XwOIeG50NHvOsmZZzSPp NAQA== X-Gm-Message-State: APjAAAXchBOQSVH4jZh+kEL0FdWDGJwNlIVWL/TqDoJ9TzlE82DlJmFA sXzi/ibH51Q68jCKMvGCF6kwKCtETl3e3jn+/GW6RKwV X-Google-Smtp-Source: APXvYqzG8exQhcODX5PEFOuauN7zKs2DjzgauUZKH4nGxwA+BFBWG+5k8bb5jJ2MnSHclznUh5YzHd1RgU7RoMeNxWA= X-Received: by 2002:a6b:b2c3:: with SMTP id b186mr18390415iof.128.1569802424258; Sun, 29 Sep 2019 17:13:44 -0700 (PDT) In-Reply-To: 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.org gmane.comp.tex.context:105142 Archived-At: --===============2099459895398381512== Content-Type: multipart/alternative; boundary="000000000000dd92be0593ba1bc7" --000000000000dd92be0593ba1bc7 Content-Type: text/plain; charset="UTF-8" I have condensed it into a single document. The footer has in the right side the page numbering and at the left the "section". Both only start at the second page, which is good. I was wondering if the "section" could have the "title" in front of it. The title always stays the same, and the section changes. Many Thanks Jeroen \setuppapersize[A4,portrait] [A4,portrait] \setuplayout[backspace=20mm, width=175mm, topspace=20mm, header=0mm, footer=2mm, height=263mm, bottomheight=1mm, footerdistance=10mm] \usetypescript[pagella] \setupbodyfont[pagella,12pt] \setupcolors[state=start] \setupfootertexts[section][] \setupfooter[alternative=,style=\bf\em] \setuppagenumbering[alternative=,location={footer,right},style=\bf\em] \setcounter[userpage][0] \setupcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \startdocument[ metadata:title={MkIV Context Notes}, metadata:subtitle={}, metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \title{MkIV \CONTEXT\ Notes.} \startcolumns[n=2] \input zapf \stopcolumns \vfill \placecontent \stopfrontmatter \startbodymatter \section{Introduction} \dorecurse{5}{\input knuth} \section{Closure} \dorecurse{5}{\input bryson} \stopbodymatter \startappendices \setupcombinedlist[content][level=1] \section{Appendix A} \dorecurse{5}{\input tufte} \stopappendices \stoptext Op zo 29 sep. 2019 om 21:36 schreef Wolfgang Schuster < wolfgang.schuster.lists@gmail.com>: > Jeroen schrieb am 29.09.2019 um 20:36: > > This is the main file. > Neither minimal nor complete and \stopdocument is also missing. > > \environment mkivcnotesenv > > \startdocument > > [metadata:subject={MkIV Context}, > > affiliation=Context] > > \starttext > > \startfrontmatter > > \input{frontpage.tex} > > \stopfrontmatter > > \startbodymatter > > \section{Introduction} > > \dorecurse{10}{input knuth} > > \stopbodymatter > > \startappendices > > %\input{a1.tex} > > \stopappendices > > \stoptext > > Are you looking for something like this (I need more information for a > better answer): > > \definetext [sectionfooter] [footer] [section] > %\definetext [sectionfooter] [footer] [text] [section] [] > > \setupfootertexts [I'm a footer text!] [pagenumber] > > \setuppagenumbering > [location=, > style=bolditalic] > > \setuphead > [section] > [page=yes, % needed for the footer setting > footer=sectionfooter] > > \starttext > > \section{Introduction} > > \dorecurse{10}{\input knuth} > > \stoptext > > Wolfgang > > --000000000000dd92be0593ba1bc7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have condensed it into a single do= cument. The footer has in the right side the page numbering and at the left= the "section". Both only start at the second page, which is good= . I was wondering if the "section" could have the "title&quo= t; in front of it. The title always stays the same, and the section changes= .
Many Thanks
Jeroen

\setuppapersize[A4,portrait= ]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 [A4,portrait]
\setuplayout[backspace=3D20mm,
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wi= dth=3D175mm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 topspace=3D20mm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 header=3D0mm,
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 footer=3D2mm,
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 height= =3D263mm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 bottomheight=3D1mm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 footerdistance=3D10mm]
\usetype= script[pagella]
\setupbodyfont[pagella,12pt]
\setupcolors[stat= e=3Dstart]
\setupfootertexts[section][]
\setupfooter[alternati= ve=3D,style=3D\bf\em]
\setuppagenumbering[alternative=3D,location= =3D{footer,right},style=3D\bf\em]
\setcounter[userpage][0]
<= div>\setupcombinedlist[content][level=3D1]
\setupexternalfigures[= directory=3D{images}]
\startdocument[
=C2=A0 metadata:title=3D= {MkIV Context Notes},
=C2=A0 metadata:subtitle=3D{},
=C2=A0 metadata:= subject=3D{MkIV Context},
=C2=A0 affiliation=3DContext]
\start= text
\startfrontmatter
\title{MkIV \CONTEXT\ Notes.}
\start= columns[n=3D2]
\input zapf
\stopcolumns
\vfill
\placecontent\stopfrontmatter
\startbodymatter
\section{Introduction}
= \dorecurse{5}{\input knuth}
\section{Closure}
\dorecurse{5}{\input br= yson}
\stopbodymatter
\startappendices
\setupcombinedlist[c= ontent][level=3D1]
\section{Appendix A}
\dorecurse{5}{\input tufte}\stopappendices
\stoptext

Op zo 29 sep. 2019 om 21:3= 6 schreef Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
Jeroen schrieb am 29.09.2019 um 20:36:
> This is the main file.
Neither minimal nor complete and \stopdocument is also missing.
> \environment mkivcnotesenv
> \startdocument
> =C2=A0[metadata:subject=3D{MkIV Context},
> =C2=A0 =C2=A0affiliation=3DContext]
> \starttext
> \startfrontmatter
> \input{frontpage.tex}
> \stopfrontmatter
> \startbodymatter
> \section{Introduction}
> \dorecurse{10}{input knuth}
> \stopbodymatter
> \startappendices
> %\input{a1.tex}
> \stopappendices
> \stoptext

Are you looking for something like this (I need more information for a
better answer):

\definetext [sectionfooter] [footer] [section]
%\definetext [sectionfooter] [footer] [text] [section] []

\setupfootertexts [I'm a footer text!] [pagenumber]

\setuppagenumbering
=C2=A0=C2=A0 [location=3D,
=C2=A0=C2=A0=C2=A0 style=3Dbolditalic]

\setuphead
=C2=A0=C2=A0 [section]
=C2=A0=C2=A0 [page=3Dyes, % needed for the footer setting
=C2=A0=C2=A0=C2=A0 footer=3Dsectionfooter]

\starttext

\section{Introduction}

\dorecurse{10}{\input knuth}

\stoptext

Wolfgang

--000000000000dd92be0593ba1bc7-- --===============2099459895398381512== 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== --===============2099459895398381512==--