ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* A special case: hiding section head information in the text but still keeping the TOC entry
@ 2011-10-17 21:39 Willi Egger
  2011-10-18  4:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2011-10-17 21:39 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hi all,

I had to deal with a special case. In my document there are only sections and subsections. The section titles are placed in a different place than they naturally would occur according to the coding in the text. What I needed to do is to
hide the section title, having no placeholder/white space inserted but still keeping the entry in the TOC.

\setuphead
   [section]
   [placehead=hidden]

\setuptexttexts[{\placerawheaddata[section]}

The first setup hides the title completely and does not insert any whitespace. It causes on the other hand, that the TOC entry is also hidden/gone. With the second command the data are flushed and end  up in the TOC.

Thank  you Hans for providing this solution!

I edited the following page on the wiki and added also a short test.

http://wiki.contextgarden.net/Chapters_headers#Chapter_headers

Willi 
___________________________________________________________________________________
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] 3+ messages in thread

* Re: A special case: hiding section head information in the text but still keeping the TOC entry
  2011-10-17 21:39 A special case: hiding section head information in the text but still keeping the TOC entry Willi Egger
@ 2011-10-18  4:21 ` Wolfgang Schuster
  2011-10-18  8:13   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-10-18  4:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.10.2011 um 23:39 schrieb Willi Egger:

> Hi all,
> 
> I had to deal with a special case. In my document there are only sections and subsections. The section titles are placed in a different place than they naturally would occur according to the coding in the text. What I needed to do is to
> hide the section title, having no placeholder/white space inserted but still keeping the entry in the TOC.
> 
> \setuphead
>   [section]
>   [placehead=hidden]
> 
> \setuptexttexts[{\placerawheaddata[section]}
> 
> The first setup hides the title completely and does not insert any whitespace. It causes on the other hand, that the TOC entry is also hidden/gone. With the second command the data are flushed and end  up in the TOC.

Does it work without \placerawheaddata when you use “placehead=no” or “placehead=empty” for section?

Wolfgang

___________________________________________________________________________________
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] 3+ messages in thread

* Re: A special case: hiding section head information in the text but still keeping the TOC entry
  2011-10-18  4:21 ` Wolfgang Schuster
@ 2011-10-18  8:13   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2011-10-18  8:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 18-10-2011 06:21, Wolfgang Schuster wrote:
>
> Am 17.10.2011 um 23:39 schrieb Willi Egger:
>
>> Hi all,
>>
>> I had to deal with a special case. In my document there are only sections and subsections. The section titles are placed in a different place than they naturally would occur according to the coding in the text. What I needed to do is to
>> hide the section title, having no placeholder/white space inserted but still keeping the entry in the TOC.
>>
>> \setuphead
>>    [section]
>>    [placehead=hidden]
>>
>> \setuptexttexts[{\placerawheaddata[section]}
>>
>> The first setup hides the title completely and does not insert any whitespace. It causes on the other hand, that the TOC entry is also hidden/gone. With the second command the data are flushed and end  up in the TOC.
>
> Does it work without \placerawheaddata when you use “placehead=no” or “placehead=empty” for section?

only the hidden does not flush the status node

when empty is set a node can interfere with spacing

(grep for \placecurrentheadhidden to see the magic)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-10-18  8:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-17 21:39 A special case: hiding section head information in the text but still keeping the TOC entry Willi Egger
2011-10-18  4:21 ` Wolfgang Schuster
2011-10-18  8:13   ` Hans Hagen

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