Scenario:
I have a document I created using LaTeX (my resume in this case), it\'s compiling in pdflatex
correctly and outputting exactly what I\'
The solution that works best for me is the following. Assuming you have the latex document name (without extension) stored in ${BASENAME}
you apply these 3 steps:
htlatex ${BASENAME}.tex
iconv -f iso-8859-1 -t utf-8 ${BASENAME}.html > ${BASENAME}-utf8.html
html2markdown ${BASENAME}-utf8.html > ${BASENAME}.txt
Apparently, you need to have tex4ht
and python-html2text
installed.