From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88876 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: setuphead bug? Date: Tue, 7 Oct 2014 21:22:31 +0200 Message-ID: <7B6194C7-0110-4BCF-8BDB-45F65DDF1686@gmail.com> References: <0A72ABBB-3BB0-4257-BAAC-2390079D971A@gmail.com> <71816EB6-DEC5-442E-9786-84C75AFE0378@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============0622633628==" X-Trace: ger.gmane.org 1412709799 1381 80.91.229.3 (7 Oct 2014 19:23:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 19:23:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 07 21:23:13 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XbaLn-0004cc-SB for gctc-ntg-context-518@m.gmane.org; Tue, 07 Oct 2014 21:23:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EC3B10255 for ; Tue, 7 Oct 2014 21:23:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id juNuFgTOGEob for ; Tue, 7 Oct 2014 21:23:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E978B10260 for ; Tue, 7 Oct 2014 21:22:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D815F10205 for ; Tue, 7 Oct 2014 21:22:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LEi0QMRl8kLU for ; Tue, 7 Oct 2014 21:22:36 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id F384E101EC for ; Tue, 7 Oct 2014 21:22:35 +0200 (CEST) Original-Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s97JMPIi013557 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 7 Oct 2014 21:22:25 +0200 Original-Received: by mail-wg0-f42.google.com with SMTP id z12so10110726wgg.25 for ; Tue, 07 Oct 2014 12:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=FLT/3WE5Sksl+EXI4A8smn1Joy2HCz1TP8ir0K7VPu0=; b=Ez9VymhgM82vH4e84G0hxK1hwb0hrDj43smUDdmvOAXnnPuNJcYqY6vqHqknKglEUg UP7FFq1k9ew8DYOfypB+BlZQjnHnTZhLKHoEh6eO3+XP121zwR+HQSG81ddeKED71SCA /CBZPmtULRM4znneFaszVUWhNPw5/CQ4UYm6fBrzJShGKHEmV0CZwxn8VJXTPG+ggaVG S4YTkrD42He+udQBevZ9QyomjuzowSz9OH9JizYWQ6piYiUvzUr8pmBk04ZYwPkPTXap NRiOoyynvFnFSk1OWRH+ATkaQ+u3eM03XT4WQIIcHRz72cyzS+IJ3iCjha3RwG28mR1P +dDg== X-Received: by 10.194.134.100 with SMTP id pj4mr7364665wjb.72.1412709754813; Tue, 07 Oct 2014 12:22:34 -0700 (PDT) Original-Received: from [192.168.0.21] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id lf1sm21896613wjb.24.2014.10.07.12.22.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 12:22:34 -0700 (PDT) In-Reply-To: <71816EB6-DEC5-442E-9786-84C75AFE0378@uva.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07N0jmphw - d7a227e8915f - 20141007 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:88876 Archived-At: --===============0622633628== Content-Type: multipart/alternative; boundary="Apple-Mail=_BC98F39D-3E00-447B-BAE9-D4B27263DD20" --Apple-Mail=_BC98F39D-3E00-447B-BAE9-D4B27263DD20 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi, You are right, it seems that there is a trailing =AB else =BB somewhere = in the sources=85=20 Actually the possible keys for =AB alternative=3D =BB are =09 alternative=3Dparagraph normal inmargin margin middle top = bottom IDENTIFIER and the following works fine also: \setuphead[chapter] [number=3Dno, alternative=3Dmiddle]=20 \starttext \startchapter[title=3DTITLE]=20 \input knuth.tex \stopchapter \stoptext However, saying =09 \setuphead[chapter] [alternative=3Dmiddle]=20 gives the wrong result you mentioned, suggesting that there is somewhere = an =AB else =BB which shouldn=92t be there. Maybe Hans H. with the above informations can nail it down? Best regards: OK On 07 Oct 2014, at 18:40, Meer, H. van der wrote: > \setuphead[chapter][align=3Dmiddle] works out ok for me. Thanks! >=20 > But then, \setuphead[chapter][alternative=3Dmiddle] seems quite = correct, following the manual. The else seems strange then. >=20 > Hans van der Meer >=20 >=20 >=20 > On 07 Oct 2014, at 17:59, Otared Kavian wrote: >=20 >> Don=92t you mean rather >> \setuphead[chapter][align=3Dmiddle] >> instead of =AB alternative =BB? >>=20 >> Best regards: OK >>=20 >> On 07 Oct 2014, at 17:28, Meer, H. van der = wrote: >>=20 >>>=20 >>> There seems to be a problem in \setuphead, it produces a spurious = else from the alternative=3Dmiddle.=20 >>>=20 >>> In the reference manual I see the possibilities: alternative =3D = normal inmargin middle TEXT. Of these middle is the only one giving the = else. >>>=20 >>> minimal example: >>>=20 >>> \setuphead[chapter][alternative=3Dmiddle] >>> \starttext >>> \startchapter[title=3DTITLE] >>> \stopchapter >>> \stoptext >>>=20 >>> Is there a quick repair? >>>=20 >>> ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: = english/english >>>=20 >>>=20 >>> Hans van der Meer >>>=20 >>>=20 >>>=20 >>> = ____________________________________________________________= _______________________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >>> archive : http://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> = __________________________________________________________________________= _________ >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_BC98F39D-3E00-447B-BAE9-D4B27263DD20 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi,

You are right, it seems that = there is a trailing =AB else =BB somewhere in the = sources=85 
Actually the possible keys for =AB = alternative=3D =BB are
=  alternative=3Dparagraph normal inmargin margin middle top = bottom IDENTIFIER

and the following works fine = also:

\setuphead[chapter] [number=3Dno, = alternative=3Dmiddle] 
\starttext
 \startcha= pter[title=3DTITLE] 
\input = knuth.tex
 \stopchapter
\stoptext

<= /div>
However, saying
= \setuphead[chapter] = [alternative=3Dmiddle] 

gives the wrong = result you mentioned, suggesting that there is somewhere an =AB else =BB = which shouldn=92t be there.
Maybe Hans H. with the above = informations can nail it down?

Best regards: = OK

On 07 Oct 2014, at 18:40, Meer, H. = van der <H.vanderMeer@uva.nl> = wrote:

\setuphead[chapter][align=3Dmiddle] works out ok for me. Thanks!

But then, \setuphead[chapter][alternative=3Dmiddle] seems = quite correct, following the manual. The else seems strange then.

Hans van der Meer



On 07 Oct 2014, at 17:59, Otared Kavian <otared@gmail.com> wrote:

Don=92t you mean rather
\setuphead[chapter][align=3Dmiddle]
=
instead of =AB alternative =BB?

Best regards: OK

On 07 Oct 2014, at 17:28, Meer, H. van der <H.vanderMeer@uva.nl> = wrote:


There seems to be a problem in \setuphead, it produces a spurious else = from the alternative=3Dmiddle. 

In the reference manual I see the possibilities: alternative =3D= normal inmargin middle TEXT. Of these middle is the only one giving the = else.

minimal example:

\setuphead[chapter][alternative=3Dmiddle]
\starttext
\startchapter[title=3DTITLE]
\stopchapter
\stoptext

Is there a quick repair?

ConTeXt  ver: 2014.10.06 00:29 MKIV beta  = fmt: 2014.10.6  int: english/english


Hans van der Meer



= <else-bug.pdf>_________________________________________= __________________________________________
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://tex.aanhet.net
archive  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
= __________________________________________________________________________= _________

= __________________________________________________________________________= _________
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://tex.aanhet.net
archive  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
= __________________________________________________________________________= _________

= __________________________________________________________________________= _________
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://tex.aanhet.net
archive =  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_BC98F39D-3E00-447B-BAE9-D4B27263DD20-- --===============0622633628== 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= --===============0622633628==--