Well, that worked on the way down the hierarchy, but coming up had some 
issues.  So the complete solution looks like this:

:leveloffset: {counter:leveloffset}

include::<filename>

:leveloffset: {eval:{leveloffset} - 1}

Now any of my files can be rendered at any level of document hierarchy.

Regards,

--Jeremy

On Monday, May 25, 2015 at 7:03:30 PM UTC-5, Jeremiah Leary wrote:
>
> I just figured out the solution.  Instead of using a set value for the 
> leveloffset, you need to use a variable:
>
> :leveloffset: {counter:leveloffset}
>
> Now my nested documents have the correct heading levels regardless of the 
> level they are called out.
>
> --Jeremy
>
> On Monday, May 25, 2015 at 6:37:47 PM UTC-5, Jeremiah Leary wrote:
>>
>> Hey everyone,
>>
>> I am having an issue with title levels and nested included files.  I am 
>> trying to create modular documentation and I have several files that call 
>> other files, that then call other files.  Unfortunately, the title levels 
>> do not reflect this hierarchy of files.  I tried using the :leveloffset: 
>> command, but it doesn't seem to understand the current "title level" of the 
>> current document.  I hope I am just missing something simple.
>>
>> If anyone can point me in the right direction, I would greatly appreciate 
>> it.
>>
>> Regards,
>>
>> --Jeremy
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to