Boost logo

Boost :

Subject: Re: [boost] How to center an element in Boost QuickBook?
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2013-10-08 10:54:57


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Daniel James
> Sent: Tuesday, October 08, 2013 11:21 AM
> To: boost_at_[hidden]
> Subject: Re: [boost] How to center an element in Boost QuickBook?
>
> On 8 October 2013 09:00, Paul A. Bristow <pbristow_at_[hidden]> wrote:
> >
> > I've finally got round to trying this with Quickbook 1.7 and I find it
> > very neat to be able to control the alignment, both in text, and most
> > usefully, in tables, so that the heading and/or body text can be centered or even right aligned.
(justify
> seems less useful).
> >
> > /* alignment and coloring use role feature, available from Quickbook
> > 1.7 up. */
>
> It's a 1.6 feature. There are still changes to be made in 1.7, so it's best to stick with 1.6 for
now. I've got
> a lot of changes that haven't been made to trunk yet.
>
> > I'd like to add a few to the boostbook.css
> >
> > /* Text colors (names at
> > http://www.w3schools.com/cssref/css_colornames.asp) */ span.red {
> > color: red; } span.green { color: green; } span.lime { color: #00FF00;
> > } span.blue { color: blue; } span.navy { color: navy; } span.yellow {
> > color: yellow; } span.magenta { color: magenta; } span.indigo { color:
> > #4B0082; } span.cyan { color: cyan; } span.purple { color: purple; }
> > span.gold { color: gold; } span.silver { color: silver; } span.grey {
> > color: grey; }
>
> Go for it.
>
> > It will also be useful to have a few defs in your Quickbook file.
> >
> > [/ ticks and crosses from dingbats
> > http://www.unicodemap.org/range/56/Dingbats/ eg
> > http://www.unicodemap.org/details/0x2714/]
> >
> > [def __tick [role aligncenter [role green \u2714]]] [/ u2714 is a
> > HEAVY CHECK MARK tick (2713 check mark)] [def __cross [role
> > aligncenter [role red \u2718]]] [/ u2718 is a heavy cross] [def __star
> > [role aligncenter [role red \u2736]]] [/ 6-point star]
>
> Personally, I'd use templates, but it's your choice.

OK, I'll try that instead. I'll put them in the html_symbols.qbk file, hoping they won't clash with
users other symbols (if they use that file - uncommon).

> >> 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.html
>
> 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.

Thanks

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