fboehm / qtl2hotspots

Code for analysis of Keller et al. 2018 expression hotspots
Other
1 stars 0 forks source link

Add equation labels for use with pandoc #8

Closed fboehm closed 5 years ago

fboehm commented 5 years ago

This stackexchange post might help:

https://tex.stackexchange.com/questions/111868/pandoc-how-can-i-get-numbered-latex-equations-to-show-up-in-both-pdf-and-html-o

fboehm commented 5 years ago

/usr/local/Cellar/pandoc-crossref/0.3.4.1/bin/pandoc-crossref

I want to start using pandoc-crossref, which is on my mac book pro at the above path.

I still need to figure out the syntax for using pandoc-crossref, which should not be too hard (I hope).

fboehm commented 5 years ago

Note that I installed via homebrew: brew install pandoc-crossref

fboehm commented 5 years ago

http://lierdakil.github.io/pandoc-crossref/

The above url has a helpful discussion of syntax for pandoc-crossref

fboehm commented 5 years ago

It's super-easy to do with Yihui's bookdown package. Just use bookdown::html_document2 and bookdown::pdf_document2 in place of rmarkdown::html_document and rmarkdown::pdf_document. Yihui documents the syntax for references (to tables, equations, figures) in the bookdown website.

fboehm commented 5 years ago

I've since started using the bookdown output formats