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

org-ref in source blocks #1071

Open
drghirlanda opened this issue Mar 23, 2023 · 2 comments
Open

org-ref in source blocks #1071

drghirlanda opened this issue Mar 23, 2023 · 2 comments

Comments

@drghirlanda
Copy link

Would it be possible to have org-ref and org-ref-refproc resolve references in source blocks? Right now, I can use something like \cref{eq:alice} inside a source block and it works nicely when exporting to LaTeX (when using the listings package). It would be great to be able to use cref:eq:alice because then one could also use org-ref-refproc to export to other formats.

@jkitchin
Copy link
Owner

Can you provide an example of what you are doing and what you would like?

My guess is probably not. I don't think links are recognized by org-mode when they are in src blocks. you would have to do some preprocessing of your own to handle those I think, probably using regular expressions to find them.

@drghirlanda
Copy link
Author

drghirlanda commented Mar 26, 2023 via email

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