Subject: Re: [boost] [quickbook] Question about macros and templates
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-07-08 17:45:28


----- Original Message -----
From: "Andrey Semashev" <andrey.semashev_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, July 08, 2010 8:34 PM
Subject: [boost] [quickbook] Question about macros and templates

>
> Hi,
>
> I'm writing docs in quickbook and stumbled upon a problem. I have this
> document structure:
>
> main.qbk
> [include a.qbk]
> [include b.qbk]
> [include c.qbk]
> [include x.qbk]
> [include y.qbk]
> [include z.qbk]
> [xinclude r.xml]
>
> In files a, b and c I define macros that would unfold into headerref,
> classref, etc. for the items described in the auto-generated r.xml
> Reference. I want to use these macros in x, y and z, both in text and
> code samples.
>
> The problem is that, it seems, quickbook doesn't unfold these macros in
> x, y and z. My guess is that the scope of the macros is limited to the
> files they are defined in. Is that true?
>
> I tried to do the same with templates. It seems that templates are
> visible in x, y and z, but still are not unfolded in code samples. Is
> there a way around this problem?

Could you define the macros on main.qbk? If yes this works for me.
 
Best,
Vicente