From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93419 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Page Numbers change after 9 to 01 - 11 -21 - 31 and so on. Date: Tue, 19 Jan 2016 11:20:16 +0100 Message-ID: <569E0DE0.9020506@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2856103709209371050==" X-Trace: ger.gmane.org 1453198869 7633 80.91.229.3 (19 Jan 2016 10:21:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 10:21:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 19 11:20:57 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aLTPF-0001Kh-9Z for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jan 2016 11:20:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF4BB5F92; Tue, 19 Jan 2016 11:20:35 +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 LKVve9ayRSey; Tue, 19 Jan 2016 11:20:31 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 217985FB3; Tue, 19 Jan 2016 11:20:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 641775F54 for ; Tue, 19 Jan 2016 11:20:30 +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 hF832J3VEfPI for ; Tue, 19 Jan 2016 11:20:29 +0100 (CET) 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 CBB4A5EE2 for ; Tue, 19 Jan 2016 11:20:19 +0100 (CET) Original-Received: by mail-wm0-f46.google.com with SMTP id b14so162890453wmb.1 for ; Tue, 19 Jan 2016 02:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=wyi0/aNiuPTmAXTKHEA3m8GbmzGTw+GGHpf+5qBe/Wc=; b=rooK2Ew4NGvPdq3Bp7Ihti9YeEQfm8WyjSN14xU5eiJqxlPnzBFL67L6x0ZISJ5M9O 4yMYEQXPvHTnvOltiO5tEJ7ip82CsubgyTu53xMgID0f8qvhbDjWc8DpGLAQ6Eynkzn8 Ie6pg9pxVSiVGxDGIWWNEgeBlPo6Uxa2GQih2y48mvt88M/BvCTXJ/9hP4c7g2Q6cksi zj/j6798KSVZsYHJzHlwQoI1p/YpLe3W+my1s85Z62IFPq+0HhD+IkQZcnuZDmcimfk0 DLECQS3NZhaO+TU0Us9N9Z+fwWkNnrcm7F3h6M+uCKFUfEJkZ1Fmh99FzD50cUOOlmSJ U5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=wyi0/aNiuPTmAXTKHEA3m8GbmzGTw+GGHpf+5qBe/Wc=; b=lUgOzjI5QUZNJWxG560BNtM3nKSkcpcMYvRH+mhWtCdOA6lO1XX7zk2TdeNZr5D+fi qIBmExb/N0CMBxkqAo/YRCM34r9qHsoVlLKbt/GShHR5V4jN4E1NE9p9Jlwr60c70c07 KfI3tNrmIekbbO1sWCPyVXvpV3HeL8UxldCUo/AW+yzLOntceSHyA55ugmcwcUWCOSIW 42zJ82DLcTAgMctmgvQssOAmGGW/5WrxLhcVpgtSRiIqFxiqoJL23En4FWYnG6rdK0rm Wn0SsfsCSCeUZFg+Q0NhT46glUy4IuEWOV0J6SkIO4Z5m1QO0oHQZIQgm2k1Y3MN8uk3 yTuA== X-Gm-Message-State: AG10YOQ6GxRgPi1OKWf0ofpsj2/UePd/WXUY6GZQ3O0n9Pyt/vMXKcb+IylTaJDMadesbQ== X-Received: by 10.28.217.74 with SMTP id q71mr17720584wmg.68.1453198818445; Tue, 19 Jan 2016 02:20:18 -0800 (PST) Original-Received: from keima.localdomain (x2f26867.dyn.telefonica.de. [2.242.104.103]) by smtp.gmail.com with ESMTPSA id ct2sm716358wjb.46.2016.01.19.02.20.17 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jan 2016 02:20:17 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) 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:93419 Archived-At: This is a multi-part message in MIME format. --===============2856103709209371050== Content-Type: multipart/alternative; boundary="------------010408040205040500020507" This is a multi-part message in MIME format. --------------010408040205040500020507 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Ibn Saeed > 19. Januar 2016 um 04:54 > Mohammad Hossein Bateni gmail.com> writes: > >> One hacky way to fix it is the following: >> >> \setupheadertexts [{\getmarking[chapter]}] > [{\lefttoright\pagenumber}] [{\lefttoright\pagenumber}] > [{\getmarking[chapter]}] >> Ideally \setupdirections[bidi] or something like that should be used, as I > mentioned in the other thread; that'll fix a bunch of other problems, as > well > > I did enable \setupdirections[bidi=global] and it did not help. > > Here is how it was solved. I could not use your solution as it would move > the position of the page number of the even page on top of the chapter name. > > So here is the solution derived from your answer, which works for my > scenario. > > \setupheader[margin][ > style=\righttoleft, > state=normal > ] > > \setupheadertexts > [{\righttoleft\getmarking[chapter]}] [{\pagenumber}] > [{\pagenumber}] [{\righttoleft\getmarking[chapter]}] > As Hans told you you can change the style for the header text in the left side only: \setupheader[leftstyle=\righttoleft] \setupheadertexts [chapter] [pagenumber] [pagenumber] [chapter] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}} \stoptext Wolfgang --------------010408040205040500020507 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
19= .=20 Januar 2016 um 04:54
Mohammad Hoss=
ein Bateni <bateni <at> gmail.com> writes:

One hacky way to fix it is=
 the following:

\setupheadertexts=C2=A0 =C2=A0 =C2=A0 =C2=A0 [{\getmarking[chapter]}]=C2=A0=
 =C2=A0=20
[{\lefttoright\pagenumber}]=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 [{\lefttoright\pagenumber}]=C2=A0 =C2=A0 =C2=A0 =C2=
=A0=20
[{\getmarking[chapter]}]
Ideally \setupdirections[b=
idi] or something like that should be used, as I=20
mentioned in the other thread; t=
hat'll fix a bunch of other problems, as=20
well

I did enable \setupdirections[bidi=3Dglobal] and it did not help.

Here is how it was solved. I could not use your solution as it would move=
=20
the position of the page number of the even page on top of the chapter na=
me.

So here is the solution derived from your answer, which works for my=20
scenario.

\setupheader[margin][
	style=3D\righttoleft,=20
	state=3Dnormal
	]    =20

\setupheadertexts
        [{\righttoleft\getmarking[chapter]}]    [{\pagenumber}]
        [{\pagenumber}]        [{\righttoleft\getmarking[chapter]}]

As Hans told you you can change the style for the header text in the=20 left side only:

\setupheader[leftstyle=3D\righttoleft]

\setupheadertexts
=C2=A0 [chapter]=C2=A0=C2=A0=C2=A0 [pagenumber]
=C2=A0 [pagenumber] [chapter]

\setuppagenumbering[alternative=3Ddoublesided]

\starttext
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stoptext

Wolfgang
--------------010408040205040500020507-- --===============2856103709209371050== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2856103709209371050==--