From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3688 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Paragraph indentation Date: Thu, 28 Dec 2000 16:37:11 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001228163711.013cc470@pop.wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394413 19307 80.91.224.250 (23 Oct 2002 17:33:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:33:33 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Max Lambertini In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:3688 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3688 At 11:41 AM 12/22/00 +0100, Max Lambertini wrote: >Hello all, > >I would like to know if it's possible to have main text paragraph with a left block >indent, while having no indentation on chapter, section and subsection > >I hope this example will clarify what I would like to get. > >1. Chapter text > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino >< abt 2cm->Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > >1.1. Section > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > Le ore del mattino hanno sempre l'oro in bocca. Le ore del mattino > >I have found the way to restrict paragraph width, but I would like to make this >restriction constant for the body text, that is, setting up a style information. I would go for the next alternative, since it leave the main text flow intact and has no interference with other mechanisms. Instead of moving the text margin right, we move the section titles into the margin, which is also more consistent with the layout. The macro \MyHead is just a bit of tex. \setuplayout[margin=1cm] \showframe \def\MyHead#1#2% {\vbox {\leftskip-\leftmarginwidth \advance\leftskip-\leftmargindistance #1\quad#2}} \setuphead[chapter,section][command=\MyHead] \starttext \chapter{A chapter heading} \input tufte \chapter{A chapter heading} \input tufte \chapter{A chapter heading} \input tufte \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------