How would you do this?

by Ron Jeffries <ronjeffries(at)acm.org>

 Date:  Sat, 07 Aug 1999 21:34:14 -0400
 To:  hwg-basics(at)hwg.org
  todo: View Thread, Original
<html>
Thanks to those who replied to my general questions last time, and for
the great pointers to useful web sites!<br>
<br>
Now to something more specific. Suppose you had to do lots of documents,
and you wanted this layout, exactly if possible:<br>
<br>
=== layout begin ===<br>
<br>
<b>Bold Heading<br>
</b>First paragraph indented to same level as heading, no (or small)
space between heading and paragraph, lines folding as usual of
course.<br>
&nbsp;&nbsp;&nbsp; Subsequent related paragraphs indented, say, 0.5 in,
and again going on and on, word-wrapping and whatever it takes here to
get the paragraph long enough to show what I mean.<br>
&nbsp;&nbsp;&nbsp;&nbsp; All subsequent paragraphs indent, until the
relationship is a bit more tenuous, or until a thought is begun that
deserves a white-space break, but no heading, leading to this:<br>
<br>
A paragraph indented back to the left margin, but spaced about 1 em below
the paragraph above, again going on and on until a related paragaph is
started. That one might look like this:<br>
&nbsp;&nbsp;&nbsp;&nbsp; Indented at the beginning, this subsequent para
goes on and on, just like the subsequent ones above. It is indented, as
will all the ones that follow until the next white space with or without
heading.<br>
<br>
==== layout end ===<br>
<br>
So the deal is that a section starts with a bold heading, spaced a
fraction of an em above the lead paragraph, which is not indented. Then
subsequent paras are indented until one that deserves to be set off by
white space. That one is spaced about 1 em below the connected ones (but
this one doesn't have the bold header.)<br>
<br>
I know how I could do this with four styles, P.heading, P.followheading,
P.subsequent, p.topic.<br>
<br>
I can see how to do it with P.unindented, and using a short line with
&lt;B&gt; &lt;/B&gt; for the heading, then &lt;BR&gt;, then using
P.subsequent for the indented ones. <br>
<br>
I can see how to do it with single-pixel gifs for the horizontal (and/or
vertical) spacing.<br>
<br>
Suppose we're going to do lots of pages in this format ... how would YOU
do it for maximum convenience and flexibility?<br>
<br>
Thanks!<br>
<br>
<div>Ron
Jeffries&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div>Extreme Programming Training and Consultation</div>
<div>ronjeffries(at)acm.org&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
<div>web pages:
<a href="http://www.xprogramming.com/" EUDORA=AUTOURL>http://www.XProgramming.com</a>,
<a href="http://www.armaties.com/" EUDORA=AUTOURL>http://www.armaties.com</a></div>
pgp key:
<a href="http://www.armaties.com/pgpkey.htm" EUDORA=AUTOURL>http://www.armaties.com/pgpkey.htm</a>
</html>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA