This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Re: Indenting a paragraph


Thanks to the expertise of Jirka Kosek, I've a modified
paragraph layout as scribbled below:

HEADING
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxx
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxx

where the first paragraph after a heading isn't indented but
all the following paragraphs are.  (If you follow the thread
above, you'll find a nice solution for this paragraph layout.)

Now I've found, as the markup in my document becomes
ever more complex, I'm needing a more general solution.
In particular, if I insert a figure into my document, then
the graphic is not vertically centered (see the ASCII
art below).

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxx

ppppppppppppppppppppp
ppppppppppppppppppppp
ppppppppppppppppppppp
ppppppppppppppppppppp
ppppppppppppppppppppp
   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxx

I can recenter the graphic by adding the following
to my customization layer:

<xsl:attribute-set name="formal.object.properties">
  <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
  <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
  <xsl:attribute name="space-after.minimum">1.5em</xsl:attribute>
  <xsl:attribute name="space-after.optimum">2em</xsl:attribute>
  <xsl:attribute name="space-after.maximum">3em</xsl:attribute>
  <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:attribute-set>

where you'll notice the "space-before.minimum" attribute
is exactly 1 em less than the "space-after.minimum" attribute.
And so on for the other attributes.

What I'd like is a more general solution, something like
"if the preceding element is a <para> then indent the
current <para> otherwise add normal.para.spacing above
the current <para>.  All my attempts at creating such
control flow in a <para> template have failed.




To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]