From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9974 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: In-paragraph display Date: Mon, 2 Dec 2002 18:03:16 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <1073357918.20021202180316@iol.it> References: <5.1.0.14.1.20021202153038.00b16eb0@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1038849796 9830 80.91.224.249 (2 Dec 2002 17:23:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Dec 2002 17:23:16 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Iu5R-0001lC-00 for ; Mon, 02 Dec 2002 18:10:25 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 8633210AF9; Mon, 2 Dec 2002 18:12:43 +0100 (MET) Original-Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by ref.ntg.nl (Postfix) with ESMTP id E254B10AE6 for ; Mon, 2 Dec 2002 18:11:48 +0100 (MET) Original-Received: from [151.29.129.64] (151.29.129.64) by smtp2.libero.it (6.7.015) id 3DE35323002B0D4F for ntg-context@ntg.nl; Mon, 2 Dec 2002 18:11:47 +0100 X-Mailer: The Bat! (v1.62 Beta/17) Business X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20021202153038.00b16eb0@server-1> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: Giuseppe Bilotta List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9974 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9974 Monday, December 2, 2002 Hans Hagen wrote: HH> At 10:06 AM 12/1/2002 +0100, you wrote: >>Hello, >> >>I'm going to bring the discussion back to a sore point that really HH> hm, didn't know you were such a sore guy; don't get too depressed LOL. I'm not depressed :) HH> what you want is kind of tricky in the sense that i hate macros that have HH> to adapt themselves to such fuzzy situations (actuall yit's one of the HH> reasons why so many tex docs (books, manuals, whatever) around have lousy HH> vertical spacing; Uhm. I can't think of any example like that, really. The point is that in ConTeXt as it is now a display (formula, itemization, quotation, etc) is always forces a paragraph before and after, which is not consistent with what the writer might want; think for example of something like: -------------- An introduction to the following: * itemization * one more item and a conclusion, all in the same paragraph -------------- versus -------------- An introduction to the following: * itemization * one more item Let's now talk about something else -------------- HH> anyhow, because i can't stand you crying: > \def\displaybreak > {\ifhmode > \removeunwantedspaces > \ifcase\raggedstatus\hfill\fi > \strut\penalty-9999 % \break fails on case (3) > \fi} > > \def\startdisplay{\displaybreak\ignorespaces\startopelkaar} > \def\stopdisplay {\stopopelkaar\displaybreak\ignorespaces} Doesn't work. Try setting \setupindenting[medium] in your example; you'll notice that each line starts a new paragraph, and this is not what is wanted. (1) the display should end the previous paragraph if and only if \start... is preceded by an empty line (2) the material following the \stop... should start a new paragraph if and only if there is an empty line between the \stop and the material HH> The best solution of course is to define the proper instances of HH> enviroments (math already has 'm) All (displayed) blocks should have this feature. If you don't want to break backwards compatibility, you could setup a couple of options for \startstop pairs. As I proposed in another mail, it should be tunable at a global level and on a per-\startstop level: I propose a global switch like \setupstartstops[break=always] % current ConTeXt behaviour \setupstartstops[break=par] % only start new paragraphs % when there are empty lines and local switches like: \setupquotations[newpar=always] % current behaviour where newpar can be always, (current behaviour, regardless of global setting), default (follow general \startstop behaviour set up by \setupstartstops) or par (start according to empty lines regardless of global setting). Does it sound sensible? -- Giuseppe "Oblomov" Bilotta