I use LaTeX to take notes, record TODO lists, the shopping and everything in between.
Oftentimes, I’ll need to copy my notes to somewhere: a wiki, this blog, or to put in an email. It’s at this point I need to quickly convert to my target format.
So, to satisfy the above, I wrote a wrapper script that takes a file name and corresponding target format for output (according to Pandoc):
if [ $# -lt 2 ]; then
echo "Please provide a filename and output format compatible with pandoc"
pandoc -f latex -t $2 $1
Very simple. Like I said, take a file name and the pandoc output format and then pass it all to pandoc to convert the LaTeX original to a format of my choosing. Very handy!