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.

For a particular work, I need old style footnotes, that are typeset before the word they refer to.

So I call \footnote before the word and it works fine, but it adds a space after the footnote mark. How can I get read of this space (in essence, the opposite of \xspace)?

share|improve this question
1  
Just use \ignorespaces. See also Simulate the % in a \newcommand –  Leo Liu Jul 30 '11 at 5:44

2 Answers 2

up vote 4 down vote accepted
\documentclass{article}
\begin{document}
  A test \footnote{a test foot}sentence.
\end{document}

Sample foot

I did not see the space you talked about in the question. Did you left a space or newline between the } and the letters following it?

share|improve this answer
    
My bad, I was introducing a space in the wrapper for my notes. –  ℝaphink Jul 30 '11 at 6:20
    
Alternativ you may finish your \footnote{...} with a % and continue on the thext line. (I edited the answer, please wait for a peer review). –  knut Jul 30 '11 at 18:17

Yan Zhou has probably given the irght answer, but I'd add that in similar cases, \ignorespaces or \unskip can be useful. Assume for instance that a macro you are using starts and ends with spurious spaces. Then you may be able to fix it without redefining it:

\newcommand{\badmacro}{ Hello }
\newcommand{\fixedmacro}{\ignorespaces\badmacro\unskip}

\documentclass{article}
\begin{document}
x\badmacro x\fixedmacro x
\end{document}
share|improve this answer
    
Good to know, thanks. –  ℝaphink Jul 30 '11 at 21: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.