Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables not substituted in TOC #38

Closed
d-gregorczyk opened this issue Sep 7, 2022 · 3 comments
Closed

Variables not substituted in TOC #38

d-gregorczyk opened this issue Sep 7, 2022 · 3 comments

Comments

@d-gregorczyk
Copy link

d-gregorczyk commented Sep 7, 2022

I converted a document of type book that contains variables in headings, for which a TOC (aligned left) included unresolved data:

:var-label: FooBar

[#foobar]
=== {var-label}

The section heading is rendered in the TOC as {var-label} whereas it appears to be correctly substituted with FooBar within the actual content.

@owenh000
Copy link
Owner

owenh000 commented Sep 8, 2022

Hi @d-gregorczyk, I'm not able to reproduce this. Please make sure you are using v0.0.16 (or unreleased v0.0.17.dev—it is identical at this moment).

If it still happens, please reopen this issue, providing a full working example document source and the full command used to test.

@owenh000 owenh000 closed this as completed Sep 8, 2022
@d-gregorczyk
Copy link
Author

Thanks, will do!

@rwoldu
Copy link

rwoldu commented Apr 19, 2023

Hi this happened to me too.
Solution: the file containing the variables must be on the same level as the actual content files - in my case, they are referenced from the bookToc file (included), i.e. the variables-file is now on the same level as all other "include::" files even though not visible in the content structure:

= Title
:sectnums:

<!---here not correct-->
...

:leveloffset: +1
include::../../../shared_files/variables.adoc[] <--here correct
include::../content/topics/introduction.adoc[]
:leveloffset: -1

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants