From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9984 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[3]: In-paragraph display Date: Tue, 3 Dec 2002 01:37:02 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <532276393.20021203013702@iol.it> References: <5.1.0.14.1.20021202153038.00b16eb0@server-1> <5.1.0.14.1.20021202153038.00b16eb0@server-1> <5.1.0.14.1.20021202183104.02d46b78@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 1038875961 17209 80.91.224.249 (3 Dec 2002 00:39:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2002 00:39:21 +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 18J15s-0004TQ-00 for ; Tue, 03 Dec 2002 01:39:20 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 143A510AE6; Tue, 3 Dec 2002 01:41:30 +0100 (MET) Original-Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by ref.ntg.nl (Postfix) with ESMTP id 995C410ABF for ; Tue, 3 Dec 2002 01:39:08 +0100 (MET) Original-Received: from [151.29.130.3] (151.29.130.3) by smtp2.libero.it (6.7.015) id 3DE35323002E17CA for ntg-context@ntg.nl; Tue, 3 Dec 2002 01:39:07 +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.20021202183104.02d46b78@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:9984 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9984 Monday, December 2, 2002 Hans Hagen wrote: HH> At 06:03 PM 12/2/2002 +0100, you wrote: >>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: HH> hm, but it's not the writer who's in charge here, but the designer; so, in HH> terms of intentional coding, one should code in such a way that whatever HH> strange thing happens along the road (accidental empty line or not) the HH> output is consistent. So, an in-par something should be coded as such so HH> that the environment can handle it, as good as possible. This is where we differ. After all, the empty line is the *standard* TeX (and ConTeXt) way to denote new paragraph. While should it be different for displayed items? It's inconsistent. >>-------------- >>An introduction to the following: >>* itemization >>* one more item >>and a conclusion, all in the same paragraph HH> there are options for that -) But I have to specify it manually. If I later decide to rewrite the stuff so that it's really in separate paragraphs I have to change the displayed environment, while what should suffice is letting ConTeXt understand that a new paragraph is started --the *standard* way (empty line). >>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. HH> ah, so we should look ahead, doable but never 100% robust; with regards to HH> looking back, definitely less robust I don't think there should be any need to look back or ahead. Just don't force a new paragraph before and after each displayed item. Let the user choose, the standard way(s). >>I propose a global switch like >> >>\setupstartstops[break=always] % current ConTeXt behaviour >>\setupstartstops[break=par] % only start new paragraphs >> % when there are empty lines HH> hm, not sure it it hooks/should hook into start/stop Where should it hook? All displayed items are start/stop pairs. If you want to overrule this for a specific start/stop pair, you can always to it with the local switch: >>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? HH> depends, this is not something that will be there in-a-minute, and i HH> definitely don't want to break compatibility for a convenience over coding HH> feature -) HH> The first thing is a proper \start/stopdisplay pair, so let's start with HH> that; one can then hook that into start/stop an dlater we can see if some HH> kind of auto-display is possible [display=none|before|after|both] or so "Display" is just a generic term I'm using for all the stuff which is part of a paragraph but gets "highlited" by typesetting it in a different format, sort of like a subparagraph. This category includes itemizations (all itemgroups, actually), formulas (not inline, of course), quotations, etc. -- Giuseppe "Oblomov" Bilotta