Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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.

share|improve this answer

Two solutions:

(1) Use the sepfootnotes package for the greatest readability:

\usepackage{sepfootnotes}
\newfootnotes{a}
\begin{document}

\anotecontent{foo}{bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla.}

asdf asdf asdf asdf.\anote{foo}
asdf asdf asdf

\end{document}

(2) Or just put the command in the first line but the argument in the second.

asdf asdf asdf asdf.\footnote
{bla bla bla}
asdf asdf asdf
share|improve this answer
3  
Thirs solution: end the line before \footnote with %. –  cgnieder Jan 20 '13 at 10:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.