|
I am encountering a strange issue. My main asciidoc file is like this:
include::chap01.adoc[]
include::chap02.adoc[]
include::chap03.adoc[]
include::chap04.adoc[]
include::chap05.adoc[]
include::chap06.adoc[]
include::chap07.adoc[]
include::chap08.adoc[]
include::chap09.adoc[]
in every chapter I have following code in the beginning:
include::common-settings.adoc[]
in common-settings.adoc I have following among other things:
:xrefstyle: short
With this setup my cross chapter references appeared correctly until Chapter 6. But from Chapter 7 they are broken. For example, I have a cross reference to Listing 4.14 which appears as Listing 7.14. Note that the number following the chapter number is correct and if I click on the cross reference it takes me to correct position in the PDF. But the chapter number appears incorrectly as 7 instead of 4.
Does anyone know what's going on here and how to fix it?
|