Closed marlondecol closed 1 month ago
Unfortunately, the extension does not have the capability of expanding macros. We use regex and static grammar parsing to build the structure of a document.
It is highly unlikely to provide such support, as it requires reimplementing the whole TeX macro expansion logic, which is way to complex.
Pre-checks
Environment
The Issue
The structure panel doesn't show anything when my document uses a custom file inclusion macro.
Let's suppose I have the following file:
When this file is included as shown below, the structure panel works as expected:
But when it is included using a custom macro, the structure panel is empty:
The thing is that the structure panel only interpret standard file inclusion commands.
Expected Behavior
What I expect is that the structure panel considers files included by custom inclusion macros that implement the standard ones. The extension could, e.g., offer a setting to define the macros to be considered.
I believe this is enough to understand the issue. If not, I can include other information as needed.