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

List of Tables not generated #441

Open
sbs-jms opened this issue Jun 14, 2024 · 1 comment
Open

List of Tables not generated #441

sbs-jms opened this issue Jun 14, 2024 · 1 comment

Comments

@sbs-jms
Copy link

sbs-jms commented Jun 14, 2024

Pandoc: 2.9.2.1 (as provided by WSL)
pandoc-crossref: 0.3.6.4

Source is in markdown. Output is HTML.
Template file includes:

$if(lot)$
<p id="toc-header">List of Tables</p>
<nav class="toc">
$listoftables$
</nav>
$endif$

pandoc command line is:

pandoc -M title=" " \
      --css spec.css \
      --columns 80 \
      --metadata-file=variables.yaml \
      --metadata-file=format_overrides.yaml \
      --metadata-file=$DOC_ROOT/crossref.yaml \
      --filter $DOC_ROOT/pandoc-crossref \
      --from markdown+gfm_auto_identifiers+implicit_header_references \
      SOURCE.md \
      -o SOURCE.html

Header is produced (so if statement is properly parsed), but neither \listoftables, \$listoftables\$, nor \$list-of-tables\$ (which mimics the toc code just above to toc section of he template file) produces any output

@lierdakil
Copy link
Owner

Apologies for the late response, this slipped through the cracks.

Long story short, \listoftables is not a template thing. If pandoc-crossref sees \listoftables, it will replace that with a list of tables. However, pandoc-crossref doesn't have access to templates.

Now, there may be a way to pass something to the template engine, and it sounds like a reasonable idea, but nothing of the sort is done currently. I'll treat it as a feature request, and we'll see what I can cook up. Provided I have some free time over the upcoming holidays, which is, unfortunately, not a given.

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

No branches or pull requests

2 participants