-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Niall Douglas Sent: Wednesday, August 07, 2013 4:26 PM To: boost@lists.boost.org Subject: Re: [boost] How to center an element in Boost QuickBook?
The DocBook documentation suggests one can do a '''<entry align="center">'''__tick__'''</entry>''' (the triple single ticks escape from QuickBook into BoostBook). However unfortunately BoostBook defines CSS which overrides the per-cell alignment :(
How about trying <colspec align="center"> instead? If I understand the documentation right, you should put that in the table heading.
I actually stumbled across an answer to this quite by accident, and at the same time I solved how to do coloured text in Boost Quickbook.
<snip>
The key here is the [role styleclass text] modifier: this just happens to spit out <span class="styleclass">text</span>. By adding suitable extra CSS to the main CSS file, one can make
coloured > text, or in my case, turn a span into a display:inline-block; and therefore can do text-align:center. > > I hope this is useful to someone someday. If [role] will continue to always do this, and it's not just by > accident, it might be worth adding to the Quickbook FAQ. That said, a proper formally specified > typesetting mechanism would be a lot better again.
Whoops of delight! Please can we have this in Quickbook asap. Please can you provide the extra CSS and the cross and tick templates - commonly useful to go in the Quickbook toolkit. Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com