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

For subfigures in LaTeX: subfig incompatible with hyperref -> use subcaption instead? #182

Open
gandalfsaxe opened this issue Jun 11, 2018 · 2 comments
Milestone

Comments

@gandalfsaxe
Copy link

gandalfsaxe commented Jun 11, 2018

@lierdakil
Have you encountered any incompatibility issues between hyperref and subfig? Apparently there are some issues with the two. This is also apparent if you just google "hyperref subfig".

You could consider using subcaption instead of subfig.

Only complication is that subcaption requires caption, which itself have some incompatibilities with some document classes, but from what I can gather, consensus is that the hyperref incompatibility with subfig is a more frequently a problem in general.

Perhaps not something you want to change, but I did notice that you're using hyperref in pandoc-crossref also, so I just wanted you to be aware of it.

@lierdakil
Copy link
Owner

Personally, didn't encounter any problems, but I don't use hyperref with LaTeX all that often (since I usually produce LaTeX for print, therefore hyperlinks don't make any sense). I don't remember why exactly I chose subfig and not subcaption, but pretty sure because it was just easier for one reason or another (most likely I ran into problems with subcaption).
I'll revisit this after I finally get around to polishing #174. In the meantime, PRs are welcome.

@gandalfsaxe
Copy link
Author

I haven't used hyperref enough to encounter any problems either. I'd say this could be considered pretty low-priority, at least until someone perhaps encounters problems. If I encounter problems myself, I could dare a PR if I could read the Haskell/LaTeX code well enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants