From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101300 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Some questions about the presentation of a book Date: Sat, 21 Jul 2018 11:41:47 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4456079655425900171==" X-Trace: blaine.gmane.org 1532166023 30399 195.159.176.226 (21 Jul 2018 09:40:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 09:40:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 21 11:40:18 2018 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 esmtp (Exim 4.84_2) (envelope-from ) id 1fgoN8-0007ox-Eu for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jul 2018 11:40:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 05754455EB; Sat, 21 Jul 2018 11:42:01 +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 u5AR9435c_yR; Sat, 21 Jul 2018 11:42:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3E7B645510; Sat, 21 Jul 2018 11:42:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8EE5945510 for ; Sat, 21 Jul 2018 11:41:58 +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 88G_Ilw6Opnh for ; Sat, 21 Jul 2018 11:41:58 +0200 (CEST) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1324D4550F for ; Sat, 21 Jul 2018 11:41:48 +0200 (CEST) Original-Received: by mail-wm0-f46.google.com with SMTP id h3-v6so11104821wmb.1 for ; Sat, 21 Jul 2018 02:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ZqzstP65e74lfmd8q6fIr0hVVRwS+yRAmvp7mN/54uQ=; b=bPMhdgyJRqDzWlNYFUiiXzFcfk1a+f1WAl0aU0VwwEGLqvX2JAA2Bs3SYtGBwUhz/2 pzQYE5UXigIkDoOz7aFfjiFrw4obMKDBzYat81LJ8G9gcy8QG4EnkmJiSeLLE8RbW/E+ afHmeI1E0IOYF9bwrKLQF2qUBQROu1x1QEmG6wYOBQh73zyfnTiZKi9j5wgNjCuI88/y 4EBt7Nw6Lg4ayX0hUHfUusFs19iowLgKPxpoYw4tfKVTZjtS2nKTntYwRQmjIUbI41Be ikDuRz6Up7q5vjRDqe5ecwdPcz137USR+KGfA40rTd/JP6LDCZK8g0hqAG098j513EvT 6KMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ZqzstP65e74lfmd8q6fIr0hVVRwS+yRAmvp7mN/54uQ=; b=nR7xBxMpZG/rSS5I9L04hxleTVOWqoNUECkDT323CASqiwNxPesew9QzJI7vpqXi1P c/bbsec0zbC4QrRf/SriJvTV+kEItxn2K0C8aSjfG8ju1WPBUCGRhJnXGW3nk4UvfFai sLpTudsejkF+26eajr+lk57MQrgd/IQEniThVzBMqvARK4F0RcBqIJKRA1xclvCUW1/W ao7KhAt6XloEms/goxlQwXZKpw/jMjIOIC3h3FPO3h7RJs3DZFUAbtdH9EEuzeQC12Kh b9CCQ3ui0Krsi6WDkMGMayNPyUVAT87gIjslt+tODeC5a2EROsCO+xdJbi2H8A3rOPli UVMw== X-Gm-Message-State: AOUpUlG/IupXp7NJcWEiLiQYMae/9BODBnOhljohyFw7lJ78jfPpiTF9 SPr98uBKmOA4n4XXZLy9tKBgynFCphJyueX13J6vJmPN X-Google-Smtp-Source: AAOMgpdlwDnOMT4IEA7uOuyHB+a6zYNiH+ZHX4ibDRFar4rtWbXEhHPWrT2sUKw/WlmptmyxzG9fAH1x/7cvk/Pv7+c= X-Received: by 2002:a1c:1c52:: with SMTP id c79-v6mr3225127wmc.147.1532166107497; Sat, 21 Jul 2018 02:41:47 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Sat, 21 Jul 2018 02:41:47 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:101300 Archived-At: --===============4456079655425900171== Content-Type: multipart/alternative; boundary="0000000000009306ac05717f38ef" --0000000000009306ac05717f38ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, To center the titles, we must add the key alternative =3D middle However for the title of the summary, it is correct because a single word but for the titles of chapters, it is not correct because I get : Chapitre I : First chapter instead of : Chapitre I : First chapter =E2=80=8BThanks Fabrice=E2=80=8B 2018-07-20 23:55 GMT+02:00 Fabrice Couvreur : > Hello, > I would like to modify the file below to : > > - center the title "Sommaire" > - delete the line of the first page > - center the title of each chapter > - delete the line on each page with the title of the chapter > > Thanks for your help > Fabrice > > ############################################################ > ###################### > \usemodule[visual] > > \mainlanguage[fr] > > \setuphead[chapter][commandbefore=3D{:\,},header=3Dempty] > > \setuphead[subsection][style=3Dbold] > > \setuphead[section] > [distance=3D\zeropoint, > style=3Dbold, > commandbefore=3D{\space\endash\space}] > > \setuphead[title][commandbefore=3D{}] > > \setuplayout > [height=3Dmiddle, > width=3Dmiddle, > backspace=3D2cm, > topspace=3D10mm, > bottomspace=3D10mm, > header=3D10mm, > footer=3D10mm, > footerdistance=3D10mm, > headerdistance=3D10mm] > > \definelayout > [firstpage] > [header=3Dempty] > > > \setupbackgrounds[header][text][bottomframe=3Don] > > \setupheadertexts[{\getmarking[section]}] > [pagenumber] > [{\getmarking[chapter]}] > [pagenumber] > > > \setuppagenumbering[alternative=3D,location=3D] > > > \setuplabeltext[fr][chapter=3DChapitre ] > > \definestructureconversionset > [structure] > [n, R, n, n, n] > > \definestructureconversionset > [digits] > [n, n, n, n, n] > > \setupheads[sectionconversionset=3Dstructure] > > \setuplist[chapter][style=3Dbold,width=3D5mm] > > \starttext > > \starttitle[title=3D{\bf Sommaire}] > \placelist > [chapter,section,subsection] > [criterium=3Dall, > alternative=3Dc] > > \stoptitle > > \startchapter[title=3DFirst chapter] > \startsection[title=3DFist section] > \startsubsection[title=3DFirst subsection] > \dorecurse{10}{\fakewords{120}{120}\par} > \stopsubsection > \stopsection > \stopchapter > \startchapter[title=3DSecond chapter] > \startsection[title=3DSecond section] > \startsubsection[title=3DSecond subsection] > \dorecurse{10}{\fakewords{120}{120}\par} > \stopsubsection > \stopsection > \stopchapter > \stoptext > ############################################################ > ###################### > --0000000000009306ac05717f38ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
To center the ti= tles, we must add the key alternative =3D middle
However for the title of the summary, it is correct because a single word but=20 for the titles of chapters, it is not correct because I get :=

Chapitre I :=
First chapter
instead of : Chapitre I : First chapter

=E2=80=8BThanks=
Fabrice=E2=80=8B




2018-07-20 23:55 GMT+02:00 Fabrice Couvreur <fabrice1.couvreu= r@gmail.com>:
<= span id=3D"m_8168100000307196874gmail-result_box" class=3D"m_81681000003071= 96874gmail-" lang=3D"en">Hello,
I would like to modif= y the file below to :

- center the title "Sommaire= "
- delete the line of the first page
= - center the title of each chapter
- delete the line on eac= h page with the title of the chapter

Thanks = for your help
Fabrice

#########################= #########################################################
\us= emodule[visual]

\mainlanguage[fr]

\setuphead[chapter][co= mmandbefore=3D{:\,},header=3Dempty]

\setuphead[subsection][styl= e=3Dbold]

\setuphead[section]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 [distance=3D\zeropoint,
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 style=3Dbold,
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commandbefore=3D{\space\endash\<= wbr>space}]

\setuphead[title][commandbefore=3D{}]

\setup= layout
=C2=A0 [height=3Dmiddle,
=C2=A0=C2=A0 width=3Dmiddle,
=C2= =A0=C2=A0 backspace=3D2cm,
=C2=A0=C2=A0 topspace=3D10mm,
=C2=A0=C2=A0= bottomspace=3D10mm,
=C2=A0=C2=A0 header=3D10mm,
=C2=A0=C2=A0 footer= =3D10mm,
=C2=A0=C2=A0 footerdistance=3D10mm,
=C2=A0=C2=A0 headerdista= nce=3D10mm]

\definelayout
=C2=A0 [firstpage]
=C2=A0 [header=3D= empty]


\setupbackgrounds[header][text][bottomframe=3Don]
\setupheadertexts[{\getmarking[section]}]
=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=C2=A0=C2= =A0 [pagenumber]
=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=C2=A0=C2=A0 [{\getmarking[chapter]}]
=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=C2=A0=C2=A0 [pagenumber]
=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=C2=A0

\setuppagenumbe= ring[alternative=3D,location=3D]


\setuplabeltext[fr][chapte= r=3DChapitre ]

\definestructureconversionset
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 [structure]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [n, R, n, n, = n]

\definestructureconversionset
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [= digits]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [n, n, n, n, n]

\setuphead= s[sectionconversionset=3Dstructure]

\setuplist[chapter][st= yle=3Dbold,width=3D5mm]

\starttext

\starttitle[title=3D{= \bf Sommaire}]
\placelist
=C2=A0 [chapter,section,subsection]
=C2= =A0 [criterium=3Dall,
=C2=A0=C2=A0 alternative=3Dc]

\stoptitle
\startchapter[title=3DFirst chapter]
\startsection[title=3DFist sec= tion]
\startsubsection[title=3DFirst subsection]
=C2=A0\dorecurse{10}= {\fakewords{120}{120}\par}=C2=A0=C2=A0=C2=A0
\stopsubsection
\s= topsection
\stopchapter
\startchapter[title=3DSecond chapter]
\sta= rtsection[title=3DSecond section]
\startsubsection[title=3DSecond subsec= tion]
\dorecurse{10}{\fakewords{120}{120}\par}=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0
\stopsubsection
\stopsection
\stopchapter
\sto= ptext
############################################################= ######################

--0000000000009306ac05717f38ef-- --===============4456079655425900171== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4456079655425900171==--