Created
August 17, 2017 14:10
-
-
Save harryscholes/b7f7889c6b84d44bbf13efd8d530e65c to your computer and use it in GitHub Desktop.
Convert Dropbox Paper document to LaTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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