From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90641 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: mkiv versus mkii: whitespace issues Date: Mon, 16 Mar 2015 15:03:12 +0100 Message-ID: References: <634D330A-9065-4A4C-B7C1-47F7987A62AB@rna.nl> <8D576EF7-9F18-4F11-9A60-AEDA071377B2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============0538976017==" X-Trace: ger.gmane.org 1426514672 10201 80.91.229.3 (16 Mar 2015 14:04:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 14:04:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 16 15:04:18 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXVcn-0004M5-UG for gctc-ntg-context-518@m.gmane.org; Mon, 16 Mar 2015 15:04:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 086941021D for ; Mon, 16 Mar 2015 15:04:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lOFHbn7ZwZQD for ; Mon, 16 Mar 2015 15:04:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E398910236 for ; Mon, 16 Mar 2015 15:03:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58B9110200 for ; Mon, 16 Mar 2015 15:03:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pSKksX9xLP8o for ; Mon, 16 Mar 2015 15:03:16 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id B5D93101EA for ; Mon, 16 Mar 2015 15:03:16 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2GE3FQs003476 for ; Mon, 16 Mar 2015 15:03:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id C92751534480 for ; Mon, 16 Mar 2015 15:03:14 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iiHln38O7PaN for ; Mon, 16 Mar 2015 15:03:13 +0100 (CET) Original-Received: from luna.fritz.box (a82-93-73-222.adsl.xs4all.nl [82.93.73.222]) by mail.rna.nl (Postfix) with ESMTPSA id 5A8AC1534464 for ; Mon, 16 Mar 2015 15:03:13 +0100 (CET) In-Reply-To: <8D576EF7-9F18-4F11-9A60-AEDA071377B2@gmail.com> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.118.50; country=NL; region=North Brabant; city=Tilburg; latitude=51.5555; longitude=5.0913; http://maps.google.com/maps?q=51.5555,5.0913&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TO4e3fqj - f716e59f1a59 - 20150316 (trained as not-spam) Received-SPF: none (filter2-til.mf.surf.net: domain of gerben.wierda@rna.nl does not designate permitted sender hosts) receiver=filter2-til.mf.surf.net; client-ip=213.125.118.50; envelope-from=; helo=mail.rna.nl; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90641 Archived-At: --===============0538976017== Content-Type: multipart/alternative; boundary="Apple-Mail=_410D1B73-5890-46D9-9223-EC52D5803BBE" --Apple-Mail=_410D1B73-5890-46D9-9223-EC52D5803BBE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 15 Mar 2015, at 23:24, Wolfgang Schuster = wrote: >=20 >> Am 14.03.2015 um 15:54 schrieb Gerben Wierda : >>=20 >> I am running into two issues with my mkii-to-mkiv conversion project >>=20 >> - The \chapter command in mkiv uses more whitespace between the = header and the first paragraph. How can I influence this? >=20 > The different space before the \chapter is caused by the =93fixed=94 = keyword for \blank > which produce different result with MkII and MkIV and the MkIV = behaviour need > to be corrected. >=20 > The space after \chapter comes from your \writetolist entry and you = can correct > this with the \GotoPar command at the end of the entry as shown below. >=20 > %%%% begin example > \showgrid >=20 > \setuphead[chapter][before=3D{\blank[force,2*line]}] >=20 > \starttext >=20 > \chapter{Knuth} >=20 > \writetolist[chapter]{}{}\GotoPar >=20 > \input knuth >=20 > \stoptext > %%%% end example Thanks. I tried this % Every chapter starts with a quote on the LHS page: \setuphead [chapter] [page=3D, before=3D{\setups[chapter:before]}, after=3D{\setups[chapter:after]}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \em \getbuffer[chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=3D1.3em,pagecommand=3D\gobbleoneargument] = \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}\= GotoPar} (Adding the \GotoPar at the end) but it did not had any effect. At one = place (no chapter but an unnumbered title, it doesn=92t work as well. = Here I now have: \title[h:grief1]{Intermezzo:\\ A short story about grief} \writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar \ChapterAbstract{A small fragment of a movie script that beautifully illustrates the gap between the rational and the real.} I changed it to=20 \title[h:grief1]{Intermezzo:\\ A short story about grief} \writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar \ChapterAbstract{A small fragment of a movie script that beautifully illustrates the gap between the rational and the real.}\GotoPar And that works. So I changed it in another chapter to \chapter[h:loosely]{Prologue:\\Loosely Coupled Spaghetti} \ChapterAbstract{Starting with an example of how things can go wrong in = a current Business-IT landscape, we notice that these kinds of problems = have existed almost for as long as IT has existed, and that no proposed = `silver bullet' has ever solved them. The goal of the book is = introduced.}\GotoPar \placeinitial S{\kap{\bf uppose we}} have a system for the approval of = loans. The business logic has been put into a Business Rule Engine (BRE) system\footnote{If you are not technical and terms like `application = server', But there it doesn=92t. Apparently, I am still missing something.=20 G >=20 > Wolfgang >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_410D1B73-5890-46D9-9223-EC52D5803BBE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
On 15 Mar 2015, at 23:24, Wolfgang = Schuster <schuster.wolfgang@gmail.com> wrote:


Am 14.03.2015 um 15:54 = schrieb Gerben Wierda <gerben.wierda@rna.nl>:

= I am running into two issues with my mkii-to-mkiv conversion = project

- The \chapter command in mkiv uses more whitespace = between the header and the first paragraph. How can I influence = this?

The different space before the \chapter is = caused by the =93fixed=94 keyword for \blank
which produce different = result with MkII and MkIV and the MkIV behaviour need
to be = corrected.

The space after \chapter comes from your \writetolist = entry and you can correct
this with the \GotoPar command at the end = of the entry as shown below.

%%%% begin = example
\showgrid

\setuphead[chapter][before=3D{\blank[force,2*l= ine]}]

\starttext

\chapter{Knuth}

\writetolist[chapte= r]{}{}\GotoPar

\input knuth

\stoptext
%%%% end = example

Thanks. I tried = this

% Every chapter starts with a quote on the = LHS page:
\setuphead
  [chapter]
  [page=3D,
   = before=3D{\setups[chapter:before]},
   = after=3D{\setups[chapter:after]}]

\startsetups = chapter:before
    \page[left]
    = \noheaderandfooterlines
    = \startalignment[left,nothyphenated]
\startnarrower[4*left]
  =           \em = \getbuffer[chapter:quote]
\stopnarrower
  =   \stopalignment
    \resetsetups[quote:text]
  =   \page[right]
    \noheaderandfooterlines
  =   \blank[force,2*big]
\stopsetups

\startsetups = chapter:after
    \blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=3D1.3em,pagecommand=3D\gobbleonearg= ument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#= 1\stop}\GotoPar}


(Addi= ng the \GotoPar at the end) but it did not had any effect. At one place = (no chapter but an unnumbered title, it doesn=92t work as well. Here I = now have:

\title[h:grief1]{Intermezzo:\\
A short = story about grief}
\writetolist[chapter]{}{Intermezzo: A Short Story = about Grief}\GotoPar
\ChapterAbstract{A small fragment of a movie script = that beautifully
illustrates the gap between the rational and the = real.}

I changed it = to 
\title[h:grief1]{Intermezzo:\\
A short = story about grief}
\writetolist[chapter]{}{Intermezzo: A Short Story = about Grief}\GotoPar
\ChapterAbstract{A small fragment of a movie script = that beautifully
illustrates the gap between the rational and the = real.}\GotoPar

And that works. So I changed it = in another chapter to

\chapter[h:loosely]{Prologue:\\Loosely Coupled Spaghetti}
\ChapterAbstract{Starting with an example of how things can go = wrong in a
current Business-IT landscape, we notice that these kinds of = problems have
existed almost for as long as IT has existed, and = that no proposed `silver
bullet' has ever solved them. The goal of the = book is introduced.}\GotoPar

\placeinitial S{\kap{\bf uppose we}} have a system for the = approval of loans. The
business logic has been put into a Business Rule = Engine (BRE)
system\footnote{If you are not technical and terms = like `application server',

But there it = doesn=92t. Apparently, I am still missing = something. 

G



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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_410D1B73-5890-46D9-9223-EC52D5803BBE-- --===============0538976017== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0538976017==--