From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94289 Path: news.gmane.org!not-for-mail From: Zhichu Chen Newsgroups: gmane.comp.tex.context Subject: Re: unwanted head behavior Date: Thu, 7 Apr 2016 11:42:49 +0800 Message-ID: <5705D739.7060507@sinap.ac.cn> References: <57032823.9020809@sinap.ac.cn> <57034AEA.60108@sinap.ac.cn> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8651211291227121344==" X-Trace: ger.gmane.org 1460000644 27269 80.91.229.3 (7 Apr 2016 03:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2016 03:44:04 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 07 05:43:50 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 1ao0rG-0003YH-5k for gctc-ntg-context-518@m.gmane.org; Thu, 07 Apr 2016 05:43:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2538D9EF0; Thu, 7 Apr 2016 05:43:26 +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 NhGAU4YY1q0l; Thu, 7 Apr 2016 05:43:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F98E9F91; Thu, 7 Apr 2016 05:43:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E74039EFE for ; Thu, 7 Apr 2016 05:43:23 +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 4nwK2ArQyLtt for ; Thu, 7 Apr 2016 05:43:22 +0200 (CEST) Original-Received: from sinapcas02.sinap.ac.cn (sinapcas02.sinap.ac.cn [210.72.8.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8FAD59EF0 for ; Thu, 7 Apr 2016 05:43:10 +0200 (CEST) Original-Received: from [192.168.31.110] (159.226.222.24) by sinapcas02.sinap.ac.cn (210.72.8.5) with Microsoft SMTP Server id 14.1.438.0; Thu, 7 Apr 2016 11:43:01 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <57034AEA.60108@sinap.ac.cn> X-Originating-IP: [159.226.222.24] 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:94289 Archived-At: --===============8651211291227121344== Content-Type: multipart/alternative; boundary="------------000401010002000105010601" --------------000401010002000105010601 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I found the empty line is due to the definition of=20 \strc_rendering_place_head_empty in strc-ren.mkiv: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D \unexpanded\def\strc_rendering_place_head_empty {\hbox \headreferenceattributes {\getheadsyncs}} =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The definition in strc-sec.mkiv works fine (put the following lines just=20 before \starttext) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D \unexpanded\def\strc_rendering_place_head_empty {\setheadmarking \getheadsyncs} =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Isn't that a bug? On 04/05/2016 01:19 PM, Zhichu Chen wrote: > > =09 > > =09 > > =09 > > =09 > > > > Dear Hans and Wolfgang, > > The following code generates a pdf that I cannot understand. > > 1. Although "placehead" is set to "no," the \part macro still makes an = empty line. > 2. The first \chapter does not open a new page, but if we switch the fi= rst \title > and the first \chapter, the result seems to be all right. > > Is there a simple fix? > > Thanks in advance. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > \setuphead > [part,chapter,title,section] > [continue=3Dyes,page=3Dyes,number=3Dno] > > \setuphead[part][placehead=3Dno] > > > \showframe > > \starttext > > \input ward\page > > \part{TITLE}\input ward\par > \title{Title} > \chapter{Title} > \chapter{Title} > \title{Title} > \chapter{Title} > > \stoptext > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ConTeXt minimal information: > > zhichu =EE=82=B0 ~ =EE=82=B0 context -version > > mtx-context | ConTeXt Process Management 0.63 > mtx-context | > mtx-context | main context file: > /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv > mtx-context | current version: 2016.03.26 13:51 > zhichu =EE=82=B0 ~ =EE=82=B0 luatex -version > This is LuaTeX, Version beta-0.90.0 (TeX Live 2016) > > Execute 'luatex --credits' for credits and version details. > > There is NO warranty. Redistribution of this software is covered by > the terms of the GNU General Public License, version 2 or (at your opti= on) > any later version. For more information about these matters, see the fi= le > named COPYING and the LuaTeX source. > > LuaTeX is Copyright 2016 Taco Hoekwater and the LuaTeX Team. > > zhichu =EE=82=B0 ~ =EE=82=B0 > > --=20 > Best regards, > =E2=84=A4hichu =E2=84=82hen > > Shanghai Institute of Applied Physics > No. 2019, Jialuo Road > Jiading, Shanghai, P.R.China > Tel: +86-21-39194888 > > > > > > _______________________________________________________________________= ____________ > 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.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _______________________________________________________________________= ____________ --=20 Best regards, =E2=84=A4hichu =E2=84=82hen Shanghai Institute of Applied Physics No. 2019, Jialuo Road Jiading, Shanghai, P.R.China Tel: +86-21-39194888 --------------000401010002000105010601 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi,

I found the empty line is due to the definition of \strc_rendering_place_head_empty in strc-ren.mkiv:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\unexpanded\def\strc_rendering_place_head_empty
=C2=A0 {\hbox \headreferenceattributes {\getheadsyncs}}
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The definition in strc-sec.mkiv works fine (put the following lines just before \starttext)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\unexpanded\def\strc_rendering_place_head_empty
=C2=A0 {\setheadmarking
=C2=A0=C2=A0 \getheadsyncs}
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Isn't that a bug?


On 04/05/2016 01:19 PM, Zhichu Chen wrote:
<= br>
<= br>
<= br>
<= br>


Dear Hans and Wolfgang,

The following code generates a pdf that I cannot understand.

1. Although "placehead" is set to "no," the \part macro still makes an em=
pty line.
2. The first \chapter does not open a new page, but if we switch the firs=
t \title
    and the first \chapter, the result seems to be all right.

Is there a simple fix?

Thanks in advance.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
\setuphead
  [part,chapter,title,section]
  [continue=3Dyes,page=3Dyes,number=3Dno]

\setuphead[part][placehead=3Dno]


\showframe

\starttext

\input ward\page

\part{TITLE}\input ward\par
\title{Title}
\chapter{Title}
\chapter{Title}
\title{Title}
\chapter{Title}

\stoptext
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D

ConTeXt minimal information:

zhichu =EE=82=B0 ~ =EE=82=B0 context -version

mtx-context     | ConTeXt Process Management 0.63
mtx-context     |
mtx-context     | main context file:=20
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2016.03.26 13:51
 zhichu =EE=82=B0 ~ =EE=82=B0 luatex -version
This is LuaTeX, Version beta-0.90.0 (TeX Live 2016)

Execute  'luatex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option=
)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

LuaTeX is Copyright 2016 Taco Hoekwater and the LuaTeX Team.

 zhichu =EE=82=B0 ~ =EE=82=B0

--=20
Best regards,
=E2=84=A4hichu =E2=84=82hen

Shanghai Institute of Applied Physics
No. 2019, Jialuo Road
Jiading, Shanghai, P.R.China
Tel: +86-21-39194888





____________________________________________________=
_______________________________
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/m=
ailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextre=
v/
wiki     : http://contextgarden.net
_________________________________________________________________________=
__________


--=20
Best regards,
=E2=84=A4hichu =E2=84=82hen

Shanghai Institute of Applied Physics
No. 2019, Jialuo Road
Jiading, Shanghai, P.R.China
Tel: +86-21-39194888
--------------000401010002000105010601-- --===============8651211291227121344== 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= --===============8651211291227121344==--