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

Can't set identifier together with .unnumbered class (or any class) #461

Closed
josineto opened this issue Jan 21, 2025 · 2 comments
Closed

Comments

@josineto
Copy link

Hi! Thank you for this great filter, I've been using it for years now.

I'm trying to make a heading with class unnumbered together with an identifier and a label to pandoc-crossref, but it doesn't work. If I omit the class, letting only the identifier and the label, the cross-reference works (but then the heading in question is numbered, which is incorrect in my document).

The document below, when rendered, throws the message "Undefined cross-reference: sec:glossario", the cross-reference is rendered as ¿sec:glossario? but the heading is (correctly) unnumbered.

Verifique a @sec:glossario.

# Glossário {#sec:glossario .unnumbered label=Glossário}

If I put class=unnumbered instead of .unnumbered, or even identifier="sec:glossario" instead of #sec:glossario, the result is the same as above.

With autoSectionLabels=true, the result is the same as above if I completely omit the identifier and use @sec:glossario (or @sec:glossário, it's also the same result).

@lierdakil
Copy link
Owner

That is the intended behaviour. The thought process here is, you can't generally reference an unnumbered section, on account of it not having a number to reference. Consider just making a regular link to it?

@josineto
Copy link
Author

Hmm, I haven't thought of making a regular link, I'll try that. Thank you!

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