Skip to content

Instantly share code, notes, and snippets.

@njames
Forked from briandk/InstallingPandocOnMac.md
Created April 9, 2025 01:10
Show Gist options
  • Save njames/6880531414d3b65b4bf90c53a4cd2c04 to your computer and use it in GitHub Desktop.
Save njames/6880531414d3b65b4bf90c53a4cd2c04 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