For the most part, I write in Google Docs; process citations with Paperpile; and then export to Word.
But, if I have a document with a lot of mathematics, I don’t like using Google Docs’ feeble equation editor. Instead, I put the math in LaTeX between dollar signs; download to Word; use pandoc to convert to Markdown; unescape the dollar signs and other escaped characters in the Markdown file; and then process the md file to Word.
What about files with Paperpile citations as well? Here is my workflow - a bit complicated, but it works perfectly:
-
Using the Paperpile add-on, Export the document with BibTeX citation codes; and download that new document as a Word file
-
From the same Export panel, export the references as BibTeX (as references.bib by default)
-
Process the Word file to Markdown using pandoc (e.g., pandoc -o file.md file.docx
-
Open the markdown file (I use emacs). Replace each \\cite{ with [@ and the matching } with ]
-
Clean up the math, removing the backslash escapes (both these steps can be done easily in Emacs with regular expressions)
-
Process again with pandoc: pandoc -C --bibliography=references.bib -o final.docx file.md
In the final step, you can convert to any format you want, including LaTeX, instead of docx.
I thought this might be useful to other Paperpile users who, like me, use Google Docs, but have to handle complicated mathematics as well as references.