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

Custom reference types #331

Open
andrewacashner opened this issue Sep 17, 2021 · 1 comment
Open

Custom reference types #331

andrewacashner opened this issue Sep 17, 2021 · 1 comment

Comments

@andrewacashner
Copy link

Typically I need multiple reference types: diagrams, music examples, poem examples, maps, etc. In LaTeX there are several ways to create custom reference types. Is this possible with pandoc-crossref or is it limited to just figures, tables, and listings?
I apologize if I missed this in the documentation. I do know Haskell so I might be able to add this in myself if you can show me where to look.

@lierdakil
Copy link
Owner

Hi. With the current "stable" release, only figures, tables and listings, and sections are supported, if I'm not forgetting something from the top of my head. The regrettable fact is that the architecture isn't flexible enough to support user-defined objects, and hardcoding each and every possible object is a fool's errand.

There's some work done on rewriting those regrettable parts, but it's at the moment of writing not entirely completed, and I don't have an estimation. It mostly works, though, but I don't think I've updated it for the latest pandoc releases. See #174 and the last build is in https://github.com/lierdakil/pandoc-crossref/releases/tag/v0.4.0.0-alpha6d. The config format is pretty different, and there's no documentation yet, but there are examples in tests. If you want to try using prerelease software, let me know, I'll update the branch for the latest pandoc release.

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