ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andres Conrado Montoya <andresconrado@gmail.com>
To: ntg-context@ntg.nl
Subject: Possible bug with new \start ... \stop way for title, chapter, subject, etc.?
Date: Sat, 29 Jun 2013 00:46:27 -0500	[thread overview]
Message-ID: <CAGhDZhDP7uYUDPFxVOa0fXHe+TWbzk4FJcVpNf=m6Y+GvgWqaA@mail.gmail.com> (raw)

I was trying to implement the solution provided by this thread:
http://www.mail-archive.com/ntg-context@ntg.nl/msg51152.html and it
works very well. However, finding a problem related to this
implementation, I found that the output of the new \start ... \stop
versions of the title, section, chapter, subject, etc. commands is
different from the old \title, \chapter, \subject, etc.
As you can see in the following MWE, the new implementation indents
the first paragraph of the given section, by some amount (even
different from the default for paragraphs).

Is this a bug or a new feature that I don't understand?

mtx-context     | current version: 2013.06.10 22:51

%******** START MWE **********%

\setuplayout[grid=yes]
\setuppagenumbering
  [alternative=doublesided,location={footer,center}]
\showgrid
\setupindenting[yes,big,next]
\usemodule[lettrine]

\define[2]\SectionCommand
  {\inoutermargin{#2}}

\setuphead
  [title,subject]
  [page=no,
   alternative=text,
   command=\SectionCommand,
   distance=0pt,
   style={\tf\sc},
   before={\blank[line]}]

\starttext

\title{Knuth}
  With title: \input knuth\par

\starttitle[title={Tufte}]
  With starttitle: \input tufte\par
\stoptitle

\subject{Knuth}
  With subject: \input knuth\par

\startsubject[title={Tufte}]
  With startsubject: \input tufte\par
\stopsubject

\stoptext

%******** STOP MWE ************%
___________________________________________________________________________________
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-06-29  5:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-29  5:46 Andres Conrado Montoya [this message]
2013-06-29 10:38 ` Pablo Rodríguez
2013-06-29 16:10 ` Wolfgang Schuster

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='CAGhDZhDP7uYUDPFxVOa0fXHe+TWbzk4FJcVpNf=m6Y+GvgWqaA@mail.gmail.com' \
    --to=andresconrado@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).