[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paragraph indentation suppression

From: Simon Law
Subject: Re: Paragraph indentation suppression
Date: Tue, 8 Apr 2003 09:35:31 -0400
User-agent: Mutt/1.3.28i

On Tue, Apr 08, 2003 at 10:00:55AM +0200, Stepan Kasal wrote:
> On Mon, Apr 07, 2003 at 11:04:44PM -0400, Simon Law wrote:
> >     I think that it doesn't matter much.  (\hangindent=-\parident
> > may be optimal.)  The biggest problem, I would say, is to ensure that
> > \par occurs once and only once after every section.  This way, it
> > becomes rather simple to do the Right Thing on the first paragraph, no
> > matter what.  Unfortunately, I don't quite know how to od this.  I shall
> > have to think harder.
> I would say that a few empty lines after the section title should not
> change the behaviour.
> So I consider both the origianl attempt (redefining \par) and the
> \hangindent approach too fragile.
> I suggest to use \everypar, since it's called only when a real paragraph is
> started.  (I don't think there is a big difference whether it performs
> \kern-\parindent or changes the value of \parindent.)

        That seems like a brilliant (and stunningly obvious) idea.
I feel dumb for not thinking of it myself.  So we can do something like

1. Preserve \everypar
2. Save \parindent and set it to 0pt
3. Redefine \everypar such that it:
   a) Redefines \everypar again such that it:
      i)   Restores \parindent
      ii)  Restores \everypar
      iii) Runs \everypar
   b) Runs the preserved \everypar

> Just my $0.01,
>       Stepan Kasal
> PS: I'm not sending cc to the original poster, as I'm scared by this:
> X-No-CC: If you CC me on this list, I will feed you to Branden Robinson.
> (It seems that Karl has already been fed.)

        Ha ha.

        Thanks for respecting my X-No-Cc: and Mail-Followup-To: headers.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]