Exporting LaTeX as plain text

Sometimes you need your latex as plain text to copy and paste into online forms and the like. Doing it this way will bring all of your refs and what not correctly. I would recomend turning off page numbers, headers, footers, etc before doing this.

You can convert a pdf to plaintext by using pdftotext pdftotext <target>.pdf which generates <target>.txt using the -raw option might be useuful for tables and the like