|
Boost : |
Subject: Re: [boost] How to center an element in Boost QuickBook?
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2013-10-09 05:20:08
> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Paul A. Bristow
> Sent: Tuesday, October 08, 2013 3:55 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] How to center an element in Boost QuickBook?
>
> > >> Will this also produce a pdf version as with other Quickbook docs?
> > >
> > > So far, the answer to my other question is not yet.
>
>
> > I'm sure it's possible to do at least coloured text in pdfs, a quick search suggests:
> >
> > https://lists.oasis-open.org/archives/docbook-apps/201202/msg00106.htm
> > l
> >
> > I guess we need to add something similar to the boostbook xsl.
>
> I'll fumble with that locally and report if I get it to work.
No - I've concluded that it is treading where angels fear again.
I started to copy the 'bold' emphasis in Docbook.xsl
<xsl:template match="bold">
<emphasis role="bold">
<xsl:apply-templates mode="annotation"/>
</emphasis>
</xsl:template>
using the many xsl examples from googling, with
<xsl:template match="phrase[@role='red']">
<fo:inline color="red">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
but fo: isn't defined, and anyway this will require fixing on a group of colors and adding a block
like this for each color, instead of passing the specified color.
So I think I should leave it to an expert :-(
Paul
--- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk