From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38922 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Indenting (again!): a real problem in indentnext=yes Date: Fri, 01 Feb 2008 09:26:38 +0100 Message-ID: <47A2D7BE.6080701@elvenkind.com> References: <1201729616.47a0f0505ea23@imp.free.fr> <47A0F764.9000500@elvenkind.com> <1201733051.47a0fdbb603b8@imp.free.fr> <47A102A9.2060203@elvenkind.com> <1201735947.47a1090b92efb@imp.free.fr> <47A17EF4.1090407@elvenkind.com> <1201777642.47a1abea0491a@imp.free.fr> <47A1BB69.8090109@elvenkind.com> <1201783684.47a1c384f127e@imp.free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201854578 1658 80.91.229.12 (1 Feb 2008 08:29:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 08:29:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 01 09:29:58 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JKrHT-0006th-97 for gctc-ntg-context-518@m.gmane.org; Fri, 01 Feb 2008 09:29:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E6D4B1FBAC; Fri, 1 Feb 2008 09:29:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19804-02-9; Fri, 1 Feb 2008 09:28:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6E961FB74; Fri, 1 Feb 2008 09:28:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 700EC1FB6B for ; Fri, 1 Feb 2008 09:28:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21943-02-8 for ; Fri, 1 Feb 2008 09:28:00 +0100 (CET) Original-Received: from www.bittext.nl (unknown [195.86.58.132]) by ronja.ntg.nl (Postfix) with ESMTP id 85A411FB74 for ; Fri, 1 Feb 2008 09:26:43 +0100 (CET) Original-Received: from localhost (vz3.aanhet.net [127.0.0.1]) by www.bittext.nl (Postfix) with ESMTP id B97931E8C2B8 for ; Fri, 1 Feb 2008 09:26:41 +0100 (CET) X-Virus-Scanned: amavisd-new at bittext.nl Original-Received: from www.bittext.nl ([127.0.0.1]) by localhost (vz3.aanhet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yg3CXtFYVw+S for ; Fri, 1 Feb 2008 09:26:37 +0100 (CET) Original-Received: from [10.10.0.6] (boo.demon.nl [82.161.175.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.bittext.nl (Postfix) with ESMTP id 0D6541E8C2B3 for ; Fri, 1 Feb 2008 09:26:37 +0100 (CET) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <1201783684.47a1c384f127e@imp.free.fr> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38922 Archived-At: morgan.brassel@free.fr wrote: > > Sorry, I wasn't precise enough: I would like to indent paragraphs inside a block > created with \defineenumeration (like theorems...), not inside an itemize block. > The output in this latter case is indeed quite awful. \defineenumeration[theorem][indenting=always] This is actually easier to find, because it actually is documented in texshow: http://texshow.contextgarden.net/ > Every paragraph (preceded by an empty line or \par) in the "text flow" will get > indented, independently of: > * what is above (formula, float, etc) > * what environment it belongs to (quote, theorem, abstract, etc.), as long as > this environment doesn't need alignment (like itemize, tabular, etc.) > > Of course, "particular" objects like captions, tables, footnotes, won't be > concerned by indenting. > > I hope my explanations were clear enough... If needed, I can write a small LaTeX > example and send it to the list. The thing is that the formal specification is not clearly defined, not even if you mention all cases. _You_ may not want indented footnotes, but _I_ have typeset a book that did. And consider this: Text text text text \startquotation Quoted text quoted text \stopquotation Text text text text is the next "Text" indented, yes or no? Whether this is a 'display' or a standalone paragraph is very much up to the document designer. In english mathematical texts, Theorems and such are often seen as a kind of run-in header, so that "Theorem 1. Text text text" is not indented, but that usually does not apply to "Proof. Text text text" and "Remark 1. Text text text": those usually _are_ indented. I am being hesitant about a 'global switch' because I fear that any automated solution only takes care of one particular set of settings, and so does will really help that much and will become a documentation nightmare. Imagine: The command \indentallparagraphs will make sure that every paragraph in the document will get indented, regardless of its surroundings, with the following exceptions: * the bodies of the predefined floating objects figures, tables, intermezzos, graphics. * the bodies of the predefined footnotes & endnotes, and floating marginals * the contents of float captions * the paragraph following a \stopformula, if that formula is not preceded by \placeformula, and there is not empty line inbetween. * any itemgroups, enumerations, descriptions, floats etc. that were not predefined in the context core. * ... I hope you see the problem with that. Even a simple command like \setupindentnext[yes] does not work out-of-the-box, because you actually wanted \setupformulae[indentnext=auto] % not yes As I said before, it may be much easier to put all this in a module (by you, or someone else, but I guess you now have the list of desired commands pretty much at hand?). Then you can say \usemodule[indentall] and the context core would not have to think about all these border cases. Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________