rsvg-convert
(from librsvg, covering formats without SVG support), Python (to use Pandoc filters), and MiKTeX (to typeset PDFs with LaTeX):perl uninstall-pandoc.pl
.rsvg-convert
covers formats without SVG support), Python (to use Pandoc filters), and BasicTeX (to typeset PDFs with LaTeX):ghc
compiler and dependent Haskell libraries.tlmgr
tool to install additional packages as needed. If you receive errors warning of fonts not found:pandoc
and pandoc-citeproc
. The executables are statically linked and have no dynamic dependencies or dependencies on external data files. Note: because of the static linking, the pandoc binary from this package cannot use lua filters that require external lua modules written in C.$DEB
is the path to the downloaded deb. This will install the pandoc
and pandoc-citeproc
executables and man pages.alien
.$DEST
(say, /usr/local/
or $HOME/.local
) by doing$TGZ
is the path to the downloaded zipped tarball. For Pandoc versions before 2.0, which don’t provide a tarball, try insteadapt-get install haskell-platform
.apt-get install texlive
.)pandoc
and pandoc-citeproc
.README.md
to README.pdf
:stack setup
will automatically download the ghc compiler if you don’t have it. stack install
will install the pandoc
executable into ~/.local/bin
, which you should add to your PATH
. This process will take a while, and will consume a considerable amount of disk space.cabal
to install pandoc and its dependencies:$CABALDIR/bin
directory is in your path. You should now be able to run pandoc
:pandoc-citeproc
. This can be installed using cabal:pandoc-citeproc
uses the “i;unicode-casemap” method to sort bibliography entries (RFC 5051). If you would like to use the locale-sensitive unicode collation algorithm instead, specify the unicode_collation
flag:text-icu
library, which in turn depends on the C library icu4c
. Installation directions vary by platform. Here is how it might work on macOS with Homebrew:pandoc.1
man page will be installed automatically. cabal shows you where it is installed: you may need to set your MANPATH
accordingly. If MANUAL.txt
has been modified, the man page can be rebuilt: make man/pandoc.1
.pandoc-citeproc.1
man page will also be installed automatically.FLAGSPEC
is a list of Cabal configuration flags, optionally preceded by a -
(to force the flag to false
), and separated by spaces. Pandoc’s flags include:embed_data_files
: embed all data files into the binary (default no). This is helpful if you want to create a relocatable binary.https
: enable support for downloading resources over https (using the http-client
and http-client-tls
libraries)./
.--gen-script
option to generate a script that can be run to register the package at install time.-fembed_data_files
to the cabal configure
or cabal install
commands.--flag pandoc:embed_data_files
.cabal test
; to run with stack, stack test
.-p
option:-j4
(run tests in parallel) and --hide-successes
(don’t clutter output with successes) to the test arguments as well.test/test-pandoc.hs
. If you are adding a new reader or writer, it is probably easiest to add some data files to the test
directory, and modify test/Tests/Old.hs
. Otherwise, it is better to modify the module under the test/Tests
hierarchy corresponding to the pandoc module you are changing.stack
command globally: a project-centric build tool to automatically download and manage Haskell dependencies on a project-by-project basis.cabal
or stack
, each having different workflows. For details on their usage, see the documentation above.cabal sandbox init
.