Improve footnotes

Footnotes are like \cite in latex, they don't have to be single-char, and they don't have to be at the end of a line.

Also add relevant regexp to formatlistpat.