Skip to content

Instantly share code, notes, and snippets.

@harryscholes
Created August 17, 2017 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harryscholes/b7f7889c6b84d44bbf13efd8d530e65c to your computer and use it in GitHub Desktop.
Save harryscholes/b7f7889c6b84d44bbf13efd8d530e65c to your computer and use it in GitHub Desktop.
Convert Dropbox Paper document to LaTeX
# set these to the name of the markdown file exported from Dropbox Paper and the desired name of the LaTeX file
MARKDOWN_FILE=
LATEX_FILE=
# Dropbox uses '$$' for markdown math, so this must be replaced with '$'
sed -i '' -e 's/\$\$/\$/g' $MARKDOWN_FILE
# convert markdown to LaTeX
pandoc $MARKDOWN_FILE -f markdown -t latex -o $LATEX_FILE --mathjax --top-level-division=chapter --wrap=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment