ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Paragraph indentation
@ 2000-12-22 10:41 Max Lambertini
  2000-12-28 15:37 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Max Lambertini @ 2000-12-22 10:41 UTC (permalink / raw)


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.

Thanks in advance,

Max Lambertini
(maxl69@supereva.it)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Paragraph indentation
  2000-12-22 10:41 Paragraph indentation Max Lambertini
@ 2000-12-28 15:37 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-12-28 15:37 UTC (permalink / raw)
  Cc: ntg-context

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
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-28 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-22 10:41 Paragraph indentation Max Lambertini
2000-12-28 15:37 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).