bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makeinfo --docbook bug with index


From: Patrice Dumas
Subject: Re: makeinfo --docbook bug with index
Date: Thu, 7 Apr 2016 00:16:01 +0200
User-agent: Mutt/1.5.20 (2009-12-10)

On Wed, Apr 06, 2016 at 06:44:47AM -0600, address@hidden wrote:
> Hi.
> 
> In docbook output, given something like this input:
> 
>       ....
>       @node Concept Index
>       @unnumbered Index
> 
>       @printindex cp
> 
>       @bye
> 
> The generated docbook is
> 
>       ....
>       </chapter>
>       <chapter label="" id="Concept-Index">
>       <title>Index</title>
> 
>       <index role="cp"></index>
> 
>       </chapter>
>       </book>
> 
> This isn't valid docbook. It should be
> 
>       ....
>       </chapter>
> 
>       <index role="cp"></index>
> 
>       </book>

Indeed, this is one of the few cases where DocBook is incompatible with
Texinfo, as where an index can happen is very restricted in DocBook
(at the beginning or the end of a document) while an index can appear
almost everywhere in Texinfo. 

(The other case, if I recall well is in the @def* equivalent of DocBook
where what can be is very restricted, while it is not in Texinfo.)

I did not find anything to solve this issue.  Maybe what could be
possible would be to collect indices in output them only at the end of
the document.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]