Skip to content

Instantly share code, notes, and snippets.

@dusenberrymw
Last active February 10, 2018 02:04
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 dusenberrymw/1c5190f2a25279c9ddf4e30153bc4c7d to your computer and use it in GitHub Desktop.
Save dusenberrymw/1c5190f2a25279c9ddf4e30153bc4c7d to your computer and use it in GitHub Desktop.
LaTeX Tips & Tricks

LaTeX Tips & Tricks

Continuous compilation

latexmk -pdf -pvc myfile.tex

In neovim, the following command will open up a separate terminal in a small split window to compile the current file: :sp | resize 5 | term latexmk -pdf -pvc %

Best practices

  • Always include usepackage[utf8]{inputenc} within every document.

Convert to Word (why would anyone want to do this??!)

pandoc -s file.tex -o file.docx

If that doesn't work, then try htlatex file.tex, which generates file.html, then open file.html in Word and save as file.docx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment