I am trying to use
<$include:/filepath/filename>
to programmatically load a table.
I am compiling from mmd to LaTeX. I have tried three tests.
When I explicitly defined the location for the source the file, it is included and the table is rendered as expected.
Source
<$include:/Users/mmynsted/projects/writing/tla-plus-for-scala/includes/c4model_levels.md>
Result
… the correctly rendered table…
When I use replacements to identify the source file location I get replaced text but no included file.
Source
<$include:%!includedirectory!/c4model_levels.md>
Result
<$include:/Users/mmynsted/projects/writing/tla-plus-for-scala/includes/c4model_levels.md>
When I use a custom metadata field of type, List, with the None value set to the includes path, I also get text replacement and no include.
Source
<$include:<$custom:includesdir>/c4model_levels.md>
Result
<$include:/Users/mmynsted/projects/writing/tla-plus-for-scala/includes/c4model_levels.md>
This is not working the way I would expect.
Section 24.2.8 of the User manual describes <$include> as a placeholder where compound placeholders can be used. There is even an example <$include:<$custom:Epigraph>> that would include the item with the binder name referenced by the custom metadata term Epigraph.
Here are the tests together showing the source file and the result. (The tests are not in the same order in the source file as shown above.)
Scrivener Source
Result (Rendered as a PDF, as I think this is easier to see than the LaTeX.)
How can I make this work?


