This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: howto set xref to figures in italic
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Stephan Wiesner <stephan at stephan-wiesner dot de>
- Cc: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 22 Jan 2003 08:56:42 -0500
- Subject: DOCBOOK-APPS: Re: howto set xref to figures in italic
- References: <3E2E9142.1010401@stephan-wiesner.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Stephan Wiesner <stephan@stephan-wiesner.de> was heard to say:
| Hi list,
| can anybody, please show me how to set the font for the title of
| figures/tables when using xrefs to point at them to italic? xrefs to
| sections/chapters are already in italic and I want to standardize that
| for all xrefs.
Add a template like this one to your customization layer. Change fo:inline
to i for HTML.
<xsl:template match="figure|table|example|equation" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<xsl:when test="$purpose = 'xref'">
<fo:inline font-style="italic">
<xsl:copy-of select="$title"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | We cannot put off living until we
http://www.oasis-open.org/docbook/ | are ready. The most salient
Chair, DocBook Technical Committee | characteristic of life is its
| coerciveness: it is always urgent,
| 'here and now' without any
| possible postponement. Life is
| fired at us point blank.--José
| Ortega Y Gasset
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE+LqMaOyltUcwYWjsRAno3AKCYi0N8LPz6QtHYA21I+mk9JBbDPwCfesfI
u18I5gFGp54AS++3lExub6A=
=Hcl1
-----END PGP SIGNATURE-----