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

Figure reference/label doesn't work when I label my figure methods #26

Open
nleroy917 opened this issue Apr 16, 2024 · 1 comment
Open

Comments

@nleroy917
Copy link
Member

nleroy917 commented Apr 16, 2024

Something odd I ran into the other day was that if I label my figure with \label{methods}, the figure references fail to populate in the output. Switching to \label{methods1}, then the figure appears. Not sure if its a reserved word that gets parsed, but it was odd.

Concrete example:

  1. Label figure as such:
![**\label{methods}Figure \ref{methods}. Overview of methods.](path/to/fig.pdf){fullwidth=t}
  1. Observe output:
image image
  1. Switch to:
![**\label{methods1}Figure \ref{methods1}. Overview of methods.](path/to/fig.pdf){fullwidth=t}
  1. Observe output:
image image
@nsheff
Copy link
Member

nsheff commented Aug 16, 2024

I have run into this before, with another common word like 'method'. I don't have an explanation. It's got to be something clashing somewhere, either in pandoc or latex, with some reserved word.

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