1

I would like cross-reference figures in rMarkdown, and pandoc-crossref seems to be a common solution (see here). The instructions on pandoc's Github page say:

Assuming you already installed Haskell platform, you can install pandoc-crossref with cabal:
cabal update
cabal install pandoc-crossref

So I installed Haskell from here. However, when I try to run cabal update in the GHCi terminal, I just get an error: enter image description here

So, how do I install pandoc-crossref?

filups21
  • 1,611
  • 1
  • 19
  • 22

1 Answers1

2

cabal is a binary from the cabal-install package and not a Haskell function. You should execute programs from a command line and not within GHCi. It looks like you are using windows so there might be some steps to find the program but once you do you should be able to call it directly.

Thomas M. DuBuisson
  • 64,245
  • 7
  • 109
  • 166