ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marcus Vinicius Mesquita <marcusvinicius.mesquita@gmail.com>
To: ntg-context@ntg.nl
Subject: [NTG-ConTeXt] Wrong order of sections and subsections
Date: Sat, 18 Jun 2016 19:03:18 -0300	[thread overview]
Message-ID: <CAK9ODgTkfTx71LOA9LXEzAV67XT03DX6svsv2A1VQHm9TX3sFA@mail.gmail.com> (raw)


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

Dear List

In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to
flush section head data without typesetting it in the text. But then
\placelist gives a wrong order of sections and subsections:

1   First section
1.1   First subsection
2   Second section
1.2   Second subsection
2.1   First subsection

If \setuptexttexts is omitted and the argument placehead=yes instead of
placehead=hidden, then the order is correct:

1   First section
1.1   First subsection
1.2   Second subsection
2   Second section
2.1   First subsection


Am I missing something?


Marcus Vinicius

______________________________-

MWE from the wiki

\setuphead
   [section]
   [placehead=hidden,
    page=yes]

\setuphead
   [subsection]
   [placehead=yes,
    page=yes,
    continue=yes,
    style=\it]

\setuptexttexts[{\placerawheaddata[section]}]

\starttext

\placelist[section,subsection] \page

\startsection[title=First section]

   \startsubsection[title=First subsection]
      Lorem ipsum \dots
   \stopsubsection

   \startsubsection[title=second subsection]
      Lorem ipsum \dots
   \stopsubsection

\stopsection

\startsection[title=Second section]

   \startsubsection[title=First subsection]
      Lorem ipsum \dots
   \stopsubsection

\stopsection

\stoptext


Marcus Vinicius



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)

[-- Attachment #1.2: Type: text/html, Size: 2259 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:[~2016-06-18 22:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAK9ODgTkfTx71LOA9LXEzAV67XT03DX6svsv2A1VQHm9TX3sFA@mail.gmail.com \
    --to=marcusvinicius.mesquita@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).