ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Maggyero <maggyero@gmail.com>
To: ntg-context@ntg.nl
Subject: Empty heads after leading whitespace
Date: Sun, 4 May 2014 01:22:45 +0200	[thread overview]
Message-ID: <CAJ2CwZ0xcVjaQqbm2s1iULh6sjsNQ5Z5+4dd4rzwWAW_2jKunw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1030 bytes --]

Thanks Wolfgang. I could even have sections in the TOC  with
'\setuptexttexts[{\placerawheaddata[section]}]'.

However, how can I start a new page at each new section? The 'page=yes'
pair does no longer work with your solution 'placehead=hidden' (since the
head is not placed I guess). I also tried 'before=\page' or 'after=\page'
without more success. Here is a minimal example showing the absence of page
breaks though I specified 'page=yes' (the section numbers are also
mismatched but if one puts manual page breaks they match again, so it's not
really a problem for me):


\setupheadertexts[\namedstructurevariable{section}{title}][]

\setuphead
  [section]
  [placehead=hidden,
   page=yes] % <-- This key does NOT work.

\setuphead
  [subsection]
  [placehead=yes,
   before={\blank[line]},
   after={\blank[line]}]

\setuptexttexts[{\placerawheaddata[section]}]

\showframe

\starttext
\completecontent
\dorecurse{2}
  {\section{My section}
   \dorecurse{2}
     {\subsection{My subsection}
      \input knuth}}
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1470 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
___________________________________________________________________________________

             reply	other threads:[~2014-05-03 23:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 23:22 Maggyero [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-06  7:38 Maggyero
2014-05-05 12:48 Maggyero
2014-05-06  5:08 ` Thangalin
2014-05-06  8:06   ` Hans Hagen
2014-05-05  2:19 Maggyero
2014-05-05  7:09 ` Thangalin
2014-05-03 14:32 Maggyero
2014-05-03 14:52 ` Wolfgang Schuster
2014-05-01 21:15 Maggyero
2014-04-30 16:09 Maggyero
2014-05-01 18:41 ` Thangalin

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=CAJ2CwZ0xcVjaQqbm2s1iULh6sjsNQ5Z5+4dd4rzwWAW_2jKunw@mail.gmail.com \
    --to=maggyero@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).