From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90683 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: mkiv versus mkii: whitespace issues Date: Fri, 20 Mar 2015 14:43:07 +0100 Message-ID: <3AFA597E-50EC-4FE2-BB72-B2BF2A4C42FC@rna.nl> 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="===============1210296128==" X-Trace: ger.gmane.org 1426859064 29346 80.91.229.3 (20 Mar 2015 13:44:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2015 13:44:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 20 14:44:13 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 1YYxDN-00065C-02 for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2015 14:43:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D4D410226 for ; Fri, 20 Mar 2015 14:43:52 +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 no9ggi5kDkKO for ; Fri, 20 Mar 2015 14:43:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9FBB21022F for ; Fri, 20 Mar 2015 14:43:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EFE8101F9 for ; Fri, 20 Mar 2015 14:43:15 +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 NAncmL9y7RKf for ; Fri, 20 Mar 2015 14:43:13 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id BE12A101E8 for ; Fri, 20 Mar 2015 14:43:13 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2KDhBPx021290 for ; Fri, 20 Mar 2015 14:43:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 96A9E153E440 for ; Fri, 20 Mar 2015 14:43:10 +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 vg6Zzq7bgVkW for ; Fri, 20 Mar 2015 14:43:08 +0100 (CET) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) by mail.rna.nl (Postfix) with ESMTPSA id CB517153E422 for ; Fri, 20 Mar 2015 14:43:07 +0100 (CET) In-Reply-To: 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: 04O5NHbV3 - 165aa4c4236f - 20150320 (trained as not-spam) Received-SPF: none (filter2-utr.mf.surf.net: domain of gerben.wierda@rna.nl does not designate permitted sender hosts) receiver=filter2-utr.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 195.169.124.153 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:90683 Archived-At: --===============1210296128== Content-Type: multipart/alternative; boundary="Apple-Mail=_3F779696-9A9F-4FBA-A44F-C9A1D77AE9AB" --Apple-Mail=_3F779696-9A9F-4FBA-A44F-C9A1D77AE9AB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Sorry to ask again, but is there no solution? G On 16 Mar 2015, at 15:03, Gerben Wierda wrote: >=20 > On 15 Mar 2015, at 23:24, Wolfgang Schuster = wrote: >=20 >>=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 >=20 > Thanks. I tried this >=20 > % Every chapter starts with a quote on the LHS page: > \setuphead > [chapter] > [page=3D, > before=3D{\setups[chapter:before]}, > after=3D{\setups[chapter:after]}] >=20 > \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 >=20 > \startsetups chapter:after > \blank[3*big] > \stopsetups >=20 > \definelist[chaptertext] > \setuplist[chaptertext][margin=3D1.3em,pagecommand=3D\gobbleoneargument]= > = \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}\= GotoPar} >=20 >=20 > (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: >=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.} >=20 > 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 >=20 > And that works. So I changed it in another chapter to >=20 > \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 >=20 > \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', >=20 > But there it doesn=92t. Apparently, I am still missing something.=20 >=20 > G >=20 >=20 >>=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 >> = __________________________________________________________________________= _________ >=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=_3F779696-9A9F-4FBA-A44F-C9A1D77AE9AB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Sorry = to ask again, but is there no = solution?

G

On 16 Mar 2015, = at 15:03, Gerben Wierda <gerben.wierda@rna.nl> = wrote:


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
_______= __________________________________________________________________________= __

___________________________________________= ________________________________________
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=_3F779696-9A9F-4FBA-A44F-C9A1D77AE9AB-- --===============1210296128== 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= --===============1210296128==--