ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Keith Schultz <keithjschultz@icloud.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Structure of titles in MkIV
Date: Wed, 15 Oct 2014 14:25:11 +0200	[thread overview]
Message-ID: <FA048D2F-62ED-4568-A656-21163605EA76@icloud.com> (raw)
In-Reply-To: <20141015094219.40277bde@iram-ha-003840.extra.cea.fr>

Hello All,

First, let me say that the semantics of Book-making can be confusing as
certain terms are used differently by different professionals.
What has made it worse these terms have been convoluted by the
computational adaptation of Book-making.

A book generally has three divisions frontmatter, backmatter, and "main" text/body.
These are made up of "parts".  What belongs in these divisions are dependent on your field,
tradition, and publishers style! 

Basically, Alan is on the mark.


Second, Michal TeX and ConTeXt has a section leveling. That is part is the highest level. and chapters are always
part of a part. So, you want the effect you need, you should either enclose the Prologue and
Epilogue in the frontmatter and backmatter parts respectively, (See MWE below) or wrap them in a part environment.

BUT, Michal I believe has a point. Or should I say has come across a FLAW, according to my view of things.
ConTeXt should warn that once you use a chapter the part command should not be mixed. That is if one uses parts
that Chapters must be embedded a Part! 



I adjusted Michals MWE and we get basically, what he expects, that is Prologue and Epilogue on the same
level. But, without it surrounding part the Epilogue is set at an level that is under "Part A"-level the Epilogue.
This would mean that the \stoppart for "Part A" or my inserted "Part B" is not being recognize and the
"sectioning Counter" being adjusted properly! Or an error should be flagged! Yes, there are easy work arounds!

This FLAW is intrinsic to the intelligence of ConTeXt. Most of us would be using front- and backmatter, sectioning commands,
numbering schemes and thereby avoiding it. But, ConTeXt should warn of the false behaviour.

Below I have a MWE to show the FLAW.

MWE:

\starttext
\placecontent

 %\startfrontmatter  % uncomment line to show what you would expect


\startchapter[title=Prologue]
\input knuth
\stopchapter

%\stopfrontmatter % uncomment line to show what you would expect

\startpart[title={Part A}]
 \startchapter[title=One]
 \input knuth
 \stopchapter
\stoppart

% FLAW: sectioned under Part A should expect sectioning  level 1
% or throw error that part needed here!
\startchapter[title={not at top level}]  
\input knuth
\stopchapter

\startpart[title={Part B}]
 \startchapter[title=One]
 \input knuth
 \stopchapter
\stoppart

% \startbackmatter  % uncomment line to show what you would expect


% FLAW:  sectioned under Part B should expect sectioning  level 1
% or throw error that part needed here!
\startchapter[title=Epilogue] 
\input knuth
\stopchapter


%\stopbackmatter % uncomment line to show what you would expect

\stoptext 

regards
	Keith.
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2014-10-15 12:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 11:49 Michał Goliński
2014-10-15  7:42 ` Alan BRASLAU
2014-10-15  7:45   ` Alan BRASLAU
2014-10-15 12:25   ` Keith Schultz [this message]
2014-10-15 14:10     ` Alan BRASLAU
2014-10-16  9:32       ` Keith J. Schultz
2014-10-16 11:25         ` Hans Hagen
2014-10-16 13:34           ` Keith Schultz
2014-10-17  9:13         ` Alan BRASLAU
2014-10-18 11:57     ` Michał Goliński
2014-10-19 15:03       ` Alan BRASLAU

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=FA048D2F-62ED-4568-A656-21163605EA76@icloud.com \
    --to=keithjschultz@icloud.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).