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.

I would like to put my \footnotes{} on a separate line in code, to make code easier to maintain and read. But I don't want any whitespace in between the foot note, and the preceeding word in the output. Is this possible?

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

Make it this way:

word%
\footnote{footnote text}
more text

In other words set a percent sign directly after the word, where the footnote belongs to. See also What is the use of percent signs at the end of lines?.

share|improve this answer
    
Thanks for the speedy answer and the link! –  naught101 Apr 26 '12 at 2:41
    
I do exactly the same, but the end of my footnote looks like this: } %. This way I can use wrap the lines in emacs (e.g., M-q) and it won't put the 'more text' on the same line as the end of the footnote. –  jon Apr 26 '12 at 16:17
    
This works great... –  ATOzTOA Feb 28 '13 at 8:20
add comment

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.