ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Blank line before placehead=empty
@ 2015-06-02 17:05 Kate F
  2015-06-02 17:47 ` Pablo Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Kate F @ 2015-06-02 17:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I have a document where I'm showing chapter titles in headers, rather
than on the page in the usual place in the body text area.

Using placehead=empty, what causes the blank line before the text? Is
there a way to suppress it?

I see there's no line when specifying placehead=no, but I want the
chapter heading to appear in my TOC, so that's why I'm using
placehead=empty. Or maybe there's another way to add something to the
TOC without showing anything in the document.

\setuphead[chapter][placehead=empty] % has an unwanted blank line
%\setuphead[chapter][placehead=no] % no blank line

\showgrid
\showstruts

\starttext
\startchapter[title={Something}]
cows cows hasselt
\stopchapter
\stoptext

Thank you,

-- 
Kate
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Blank line before placehead=empty
  2015-06-02 17:05 Blank line before placehead=empty Kate F
@ 2015-06-02 17:47 ` Pablo Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Rodriguez @ 2015-06-02 17:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 06/02/2015 07:05 PM, Kate F wrote:
> Hi,
> 
> I have a document where I'm showing chapter titles in headers, rather
> than on the page in the usual place in the body text area.
> 
> Using placehead=empty, what causes the blank line before the text? Is
> there a way to suppress it?
> 
> I see there's no line when specifying placehead=no, but I want the
> chapter heading to appear in my TOC, so that's why I'm using
> placehead=empty. Or maybe there's another way to add something to the
> TOC without showing anything in the document.

Hi Kate,

as far as I know, placehead=no only affects to the heading, not to the TOC.

At least, this sample works:

    \setuphead[chapter][placehead=no]

    \showgrid
    \showstruts

    \starttext
    \completecontent
    \dorecurse{10}{\startchapter
        [title={My Chapter}] cows cows hasselt
        \stopchapter}
    \stoptext

Or have I misread your message or am I missing something?

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-02 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 17:05 Blank line before placehead=empty Kate F
2015-06-02 17:47 ` Pablo Rodriguez

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).