From: Zhichu Chen <chenzhichu@sinap.ac.cn>
To: <ntg-context@ntg.nl>
Subject: Re: unwanted head behavior
Date: Thu, 7 Apr 2016 11:42:49 +0800 [thread overview]
Message-ID: <5705D739.7060507@sinap.ac.cn> (raw)
In-Reply-To: <57034AEA.60108@sinap.ac.cn>
[-- Attachment #1.1: Type: text/plain, Size: 3085 bytes --]
Hi,
I found the empty line is due to the definition of
\strc_rendering_place_head_empty in strc-ren.mkiv:
====================
\unexpanded\def\strc_rendering_place_head_empty
{\hbox \headreferenceattributes {\getheadsyncs}}
====================
The definition in strc-sec.mkiv works fine (put the following lines just
before \starttext)
====================
\unexpanded\def\strc_rendering_place_head_empty
{\setheadmarking
\getheadsyncs}
====================
Isn't that a bug?
On 04/05/2016 01:19 PM, Zhichu Chen wrote:
>
>
>
>
>
>
>
>
>
>
>
> 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 first \title
> and the first \chapter, the result seems to be all right.
>
> Is there a simple fix?
>
> Thanks in advance.
>
> ==================================
> \setuphead
> [part,chapter,title,section]
> [continue=yes,page=yes,number=no]
>
> \setuphead[part][placehead=no]
>
>
> \showframe
>
> \starttext
>
> \input ward\page
>
> \part{TITLE}\input ward\par
> \title{Title}
> \chapter{Title}
> \chapter{Title}
> \title{Title}
> \chapter{Title}
>
> \stoptext
> ==================================
>
> ConTeXt minimal information:
>
> zhichu ~ 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 ~ 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 ~
>
> --
> Best regards,
> ℤhichu ℂhen
>
> 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
> ___________________________________________________________________________________
--
Best regards,
ℤhichu ℂhen
Shanghai Institute of Applied Physics
No. 2019, Jialuo Road
Jiading, Shanghai, P.R.China
Tel: +86-21-39194888
[-- Attachment #1.2: Type: text/html, Size: 5106 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-04-07 3:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <57032823.9020809@sinap.ac.cn>
2016-04-05 5:19 ` Zhichu Chen
2016-04-07 3:42 ` Zhichu Chen [this message]
2016-04-07 8:05 ` Hans Hagen
2016-04-07 6:28 ` Zhichu Chen
2016-04-07 8:03 ` Hans Hagen
2016-04-07 10:31 ` Hans Hagen
2016-04-09 13:02 ` Zhichu Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5705D739.7060507@sinap.ac.cn \
--to=chenzhichu@sinap.ac.cn \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).