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

--filter pandoc-xnos ignoring figure reference #27

Open
adityac95 opened this issue Oct 25, 2022 · 1 comment
Open

--filter pandoc-xnos ignoring figure reference #27

adityac95 opened this issue Oct 25, 2022 · 1 comment

Comments

@adityac95
Copy link

adityac95 commented Oct 25, 2022

I'm trying to convert a .md file (thesis chapter with references) into a .pdf using pandoc and pandoc-xnos. My makefile contains the following:

%.pdf : %.md
	@echo --- Generating PDF ---
	@pandoc --filter pandoc-xnos --citeproc \
	 --bibliography ../../../zotero_lib_betterbibtex/MyLibrary.bib --csl ../chicago.csl \
	 -V papersize:letter -V linestretch:1.5 -V geometry:margin=2.54cm -V numbersections:true \
	 --pdf-engine xelatex -o $@ $<

but for some reason when I execute it, I get the following warning:

[WARNING] Citeproc: citation fig:fig1 not found

This suggests that pandoc-xnos is ignoring the figure references, even though I've specified my figures appropriately in the markdown file:

image

Do you have any ideas as to what's going on? I should note that I tried putting the in-text reference to the figure in curly braces and the same warning came up.

@TimothyElder
Copy link

Have you tried making sure that pandoc-fignos got properly installed by running pandoc-fignos --version? I am having a similar issue but with equations and tables. When I check that pandoc-xnos is installed by running pandoc-xnos --version everything looks good as it returns pandoc-xnos 2.4.0. The same is true for pandoc-fignos --version which returns pandoc-fignos 2.4.0.

When I try to check that pandoc-tablenos and pandoc-eqnos individually were installed they both return:

zsh: command not found: pandoc-tablenos
zsh: command not found: pandoc-eqnos

I am not having issues with figure labels but when trying to include table and equation labels I have the bad labels get picked up by --citeproc as it looks they are not getting defined by tablenos or eqnos. Haven't figured out a solution yet as running pip install again, adding the directories they get installed to, adn restarting terminal does not work.

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

2 participants