Skip to content

Instantly share code, notes, and snippets.

@briandk
Last active September 28, 2021 18:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briandk/a64c81a3342717f10aab to your computer and use it in GitHub Desktop.
Save briandk/a64c81a3342717f10aab to your computer and use it in GitHub Desktop.
How to install pandoc on a mac

Step 0 - Installing the XCode Development tools

Paste the following in your terminal, then press Enter and follow any prompts:

xcode-select --install

Step 1 - Install homebrew

Install Homebrew by pasting this line in the terminal and pressing Enter

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2 - Install pandoc

Again, at the terminal, paste this line and press enter

brew update && brew install pandoc

Using pandoc

Converting from LaTeX to Word (docx)

$ pandoc --from latex --to docx -o myConvertedFile.docx myLatexSource.tex

Converting from Word (docx) to LaTeX

$ pandoc --from docx --to latex -o myConvertedFile.tex myLatexSource.docx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment