ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hidden sections
Date: Fri, 23 Aug 2013 09:19:36 +0200	[thread overview]
Message-ID: <805514E5-D812-40E2-BAAD-7835EF6D2AA0@gmail.com> (raw)
In-Reply-To: <21}.hwZw.1lLwEnsK9nV.1I5mUq@seznam.cz>


Am 23.08.2013 um 08:56 schrieb Mikoláš Štrajt <strajt9@seznam.cz>:

> Hello all,
> 
> We are writing a magazine with my friends and I am going to typeset it with ConTEXt. It works fine but I ran into the problem with heads.
> 
> In our magazine articles will be grouped in sections (e.g. poetry, short stories, programming). I need to hide section heads in text but to show them in TOC and page headers. 
> 
> So there will be no „Poetry“ head in text but „Poetry“ will be shown in page header and TOC.
> 
> Unfortunately, the trick from http://wiki.contextgarden.net/Titles#Flushing_section_head_data_without_typesetting_them_in_the_text seems to not work for me.
> 
> Thanks for help.

\definehead[test][section]

\setuphead
  [test]
  [placehead=empty,
   before=,
   after=]

\setupheadertexts[test]

\starttext \showframe

\placelist[test]

\test{Knuth}

\dorecurse{10}{\input knuth\par}

\test{Tufte}

\dorecurse{10}{\input tufte\par}

\test{Zapf}

\dorecurse{10}{\input zapf\par}

\test{Ward}

\dorecurse{10}{\input ward\par}

\stoptext

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
___________________________________________________________________________________


      reply	other threads:[~2013-08-23  7:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-23  6:56 Mikoláš Štrajt
2013-08-23  7:19 ` Wolfgang Schuster [this message]

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=805514E5-D812-40E2-BAAD-7835EF6D2AA0@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).