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

Why not using pandoc-crossref? #53

Closed
sbacelar opened this issue Mar 16, 2017 · 6 comments · Fixed by #118
Closed

Why not using pandoc-crossref? #53

sbacelar opened this issue Mar 16, 2017 · 6 comments · Fixed by #118

Comments

@sbacelar
Copy link

To cross-reference figures, display equations, tables and sections.

@tompollard
Copy link
Owner

I'm not familiar with pandoc-crossref. Please could you explain a little more about how it will help?

@sbacelar
Copy link
Author

It's a very useful pandoc filter. You can read all the information about it in https://github.com/lierdakil/pandoc-crossref

@FlxVctr
Copy link

FlxVctr commented Jun 12, 2017

@sbacelar I had a look at it considering whether I could need it for my thesis, but don't really get the benefits to just referencing via Latex-commands. Am I missing something?

@Fankbai
Copy link

Fankbai commented Mar 26, 2018

@JamesOwers
Copy link
Contributor

@sbacelar I had a look at it considering whether I could need it for my thesis, but don't really get the benefits to just referencing via Latex-commands. Am I missing something?

If you're only interested in generating pdf, then no. If you want to generate thesis.html, none of the \latex you put in the *.md files will render.

At the moment, I don't think we can reference listings and other stuff like that. So pandoc-crossref may be a good option to look into in future to minimise dependencies. I'll have a look if I get time.

@JamesOwers
Copy link
Contributor

Ah, and, unless I'm missing something, I think we can't refer to sections by number just now, other than using \ref{name-of-header} (which only works when rendering pdf), or using [manually written header name](#name-of-header). So this may be the reason to switch to pandoc-crossref http://lierdakil.github.io/pandoc-crossref/#section-labels.

I've fixed the travis build in #100, so this should be easy to test.

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