Date: Sun, 21 Jul 2013 21:31:19 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-projects@freebsd.org Subject: svn commit: r42355 - projects/db5/share/xsl Message-ID: <201307212131.r6LLVJHR097188@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Sun Jul 21 21:31:18 2013 New Revision: 42355 URL: http://svnweb.freebsd.org/changeset/doc/42355 Log: - Highlight examples with a bolder and a title-like caption Modified: projects/db5/share/xsl/freebsd-fo.xsl Modified: projects/db5/share/xsl/freebsd-fo.xsl ============================================================================== --- projects/db5/share/xsl/freebsd-fo.xsl Sun Jul 21 19:22:54 2013 (r42354) +++ projects/db5/share/xsl/freebsd-fo.xsl Sun Jul 21 21:31:18 2013 (r42355) @@ -220,6 +220,20 @@ <xsl:attribute name="line-height">12pt</xsl:attribute> </xsl:attribute-set> + <xsl:attribute-set name="example.properties" use-attribute-sets="formal.object.properties"> + <xsl:attribute name="keep-together.within-column">auto</xsl:attribute> + <xsl:attribute name="border-style">solid</xsl:attribute> + <xsl:attribute name="border-width">1px</xsl:attribute> + <xsl:attribute name="margin-right">0</xsl:attribute> + <xsl:attribute name="margin-top">12pt</xsl:attribute> + <xsl:attribute name="margin-left">0</xsl:attribute> + <xsl:attribute name="margin-bottom">12pt</xsl:attribute> + <xsl:attribute name="padding-right">0.5cm</xsl:attribute> + <xsl:attribute name="padding-top">0.3cm</xsl:attribute> + <xsl:attribute name="padding-left">0.5cm</xsl:attribute> + <xsl:attribute name="padding-bottom">0.5cm</xsl:attribute> + </xsl:attribute-set> + <!-- FO-SPECIFIC TEMPLATE CUSTOMIZATIONS --> @@ -277,7 +291,7 @@ <fo:block xsl:use-attribute-sets="formal.title.properties"> <xsl:choose> - <xsl:when test="$placement = 'before'"> + <xsl:when test="$placement = 'before' and local-name($object) != 'example'"> <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> <xsl:attribute name="space-before.minimum">12pt</xsl:attribute> <xsl:attribute name="space-before.optimum">12pt</xsl:attribute> @@ -287,7 +301,7 @@ <xsl:attribute name="space-after.maximum">0</xsl:attribute> </xsl:when> - <xsl:otherwise> + <xsl:when test="$placement = 'after'"> <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute> <xsl:attribute name="space-before.minimum">0</xsl:attribute> <xsl:attribute name="space-before.optimum">0</xsl:attribute> @@ -295,6 +309,12 @@ <xsl:attribute name="space-after.minimum">12pt</xsl:attribute> <xsl:attribute name="space-after.optimum">12pt</xsl:attribute> <xsl:attribute name="space-after.maximum">12pt</xsl:attribute> + </xsl:when> + + <xsl:otherwise> + <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="font-size">14pt</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:apply-templates select="$object" mode="object.title.markup">
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307212131.r6LLVJHR097188>