OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] adminitions - notes - line break after "Note"


On Monday 18 December 2006 15:18, Hinrich Aue wrote:
> I’m looking for a way to have no line break after the „Note” in a <note>.

In your customization layer  change the graphical.admonition template

here is an example where I put a blue rectangle around the entire admonition

<xsl:template name="graphical.admonition">
		<xsl:variable name="id">
			<xsl:call-template name="object.id"/>
		</xsl:variable>
		<xsl:variable name="graphic.width">
			<xsl:apply-templates select="." mode="admon.graphic.width"/>
		</xsl:variable>
		<fo:block id="{$id}"
			xsl:use-attribute-sets="graphical.admonition.properties"
			space-before.minimum="0.8em" space-before.optimum="1em"
			space-before.maximum="1.2em" start-indent="0.25in" end-indent="0.25in"
			border-top="0.5pt solid blue" border-bottom="0.5pt solid blue"
			border-left="0.5pt solid blue" border-right="0.5pt solid blue"
			padding-top="4pt" padding-bottom="4pt" padding-left="4pt"
			padding-right="4pt">
			<fo:list-block
				provisional-distance-between-starts="{$graphic.width} + 18pt"
				provisional-label-separation="18pt">
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block>
							<fo:external-graphic width="auto" height="auto"
								content-width="{$graphic.width}">
								<xsl:attribute name="src">
									<xsl:call-template name="admon.graphic"/>
								</xsl:attribute>
							</fo:external-graphic>
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<xsl:if test="$admon.textlabel != 0 or title">
							<fo:block
								xsl:use-attribute-sets="admonition.title.properties">
								<xsl:apply-templates select="."
									mode="object.title.markup"/>
							</fo:block>
						</xsl:if>
						<fo:block xsl:use-attribute-sets="admonition.properties">
							<xsl:apply-templates/>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
			</fo:list-block>
		</fo:block>
	</xsl:template>



> I also want to change the fontsize and font of “Note”.


In your custom layer change the admonition.title.properties attribute set

Here is an example where I set thfont family.

<xsl:attribute-set name="admonition.title.properties">
	<xsl:attribute name="font-size">14pt</xsl:attribute>
	<xsl:attribute name="font-weight">bold</xsl:attribute>
	<xsl:attribute name="font-family">sans-serif</xsl:attribute>
	<xsl:attribute name="hyphenate">false</xsl:attribute>
	<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
</xsl:attribute-set>
>  
> I’m looking into admon.xsl, but i’m kinda lost.

Hope this helps,




-- 
Ask me about the Monkey.

Sean Wheller
Technical Author
sean@inwords.co.za
+27-84-854-9408
http://www.inwords.co.za


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]