[Tex/LaTex] New line for footnote without blank space

footnotesline-breaking

Writing texts I found it visually more appealing to type footnotes in a new line, because it enhances the readability of the document. The problem is that it leads to a blank character in the output. Could there anything be done about this problem?

So what I write looks like this:

asdf asdf asdf asdf.
\footnote{bla bla bla}
asdf asdf asdf

Note: I am aware that the problem doesnt occur when I place a % following the last character (or punctuation) in the previous line. To me that doesnt seem elegant.

Best Answer

Just add \unskip at the beginning of the definition of \footnote:

\documentclass{article}
\usepackage{xpatch}
\xpretocmd{\footnote}{\unskip}{}{}

\begin{document}
asdf asdf asdf asdf.
\footnote{bla bla bla}
asdf asdf asdf
\end{document}

But I don't think this is a good way to type one's documents. A good editor will highlight differently the argument of \footnote.

Related Question