Aditya,

It took me awhile to sort through all the code to find what was creating the
problem. It appears that the code for the first page of a chapter is the
culprit but I don't know why it's causing the problem.

\definepagebreak[mychapterpagebreak][yes,header,right]  %eliminates headers
on blank pages

\def\ChapterTitle#1#2{
   \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}}
   \godown[.5in]}

\setuphead[chapter]
  [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty,
  page=mychapterpagebreak,
  numbercommand={\switchtobodyfont[big]{\ss\sl}}] 

\definestartstop
   [exdent]
   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
    after=\stopnarrower]

\starttext

\chapter{HangingIndent}

\startexdent
\dorecurse{10}{Para 1: Some random text to fill space}

\dorecurse{10}{Para 2: Some random text to fill space}

\dorecurse{10}{Para 3: Some random text to fill space}

\dorecurse{10}{Para 4: Some random text to fill space} 
\stopexdent

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Aditya Mahajan
Sent: Monday, April 05, 2010 1:52 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Hanging indents

On Mon, 5 Apr 2010, Tom wrote:

> Exdent works fine when I substitute my text for Knuth in the example, but
> has a problem when I include it in my document. The first line of text
after
> Exdent is called is not outdented, but is in all subsequent paragraphs as
it
> should be. I tried calling Exdent for the paragraphs that start my
document
> and get the same result. From that I surmise that I have set up something
> that overrides the outdenting on the first line of the first paragraph,
but
> is overridden by Exdent after that. Do you have any ideas what it might
be?

Can you create a minimal example that does not work?

\definestartstop
   [exdent]
   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
    after=\stopnarrower]

\starttext

\startexdent
\dorecurse{10}{Para 1: Some random text to fill space}

\dorecurse{10}{Para 2: Some random text to fill space}

\dorecurse{10}{Para 3: Some random text to fill space}

\dorecurse{10}{Para 4: Some random text to fill space}
\stopexdent

\stoptext

Aditya
____________________________________________________________________________
_______
If your question is of interest to others as well, please add an entry to
the Wiki!

maillist : [email protected] /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
____________________________________________________________________________
_______


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to