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'm writing my thesis for my Computer Science degree. I have a lot of footnotes and my advisor has told me to remove the spacing generated by the superscript of the footnote.

This footnotes are generated using the glossaries package using the option:

\usepackage[nonumberlist,toc,style=long3col,footnote,acronym]{glossaries}

this makes that the first time a glossary entry is mentioned it's added as a footnote.

This is how it looks:

Acimut1 : Explanation

And this is how I want it to look:

Acimut1: Explanation

without the space after the superscripted 1, is there a way to achieve this.

Minimal working example:

\documentclass[11pt,letterpaper]{book}
\usepackage[spanish,mexico]{babel}
\usepackage[utf8]{inputenc}
\usepackage[nonumberlist,toc,style=long3col,footnote,acronym]{glossaries}
\makeglossaries
\makeatletter
\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}
}
\makeatother


\newglossaryentry{acimut}{
  name=acimut,
  description={En náutica, el acimut es el ángulo o longitud de arco entre el punto cardinal norte en sentido horario de $0^\circ$ a $360^\circ$ y otro punto.}
}

\begin{document}
\Gls{acimut}, en la figura podemos ver un ejemplo.

\printglossary[type=main,toctitle={Glosario}]
\end{document}

produces:

Acimut1 , en la figura 2.2 podemos ver un ejemplo.

and shoud produce:

Acimut1, en la figura 2.2 podemos ver un ejemplo.

Answer:

I figured it out, it was just a small mistake in my command to show the first appearance of a glossary entry in a footnote, it should be:

\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}}
\makeatother

without that extra line before the }

Thanks

share|improve this question
    
Under "normal" circumstances, that space shouldn't be there, unless explicitly added. Can you please add to your question a minimal working example illustrating how your footnotes generate the extra spacing? –  Gonzalo Medina Jun 8 '11 at 1:33
    
Edited to note I'm using glossaries package –  lander16 Jun 8 '11 at 1:56
    
I added a working example. Thanks. –  lander16 Jun 8 '11 at 2:00
    
I figured it out, it was just a small mistake in my command to show the first appearance of a glossary entry in a footnote, it should be: \renewcommand{\gls@main@displayfirst}[4]{ #1#4\protect\footnote{#2}} \makeatother without that extra line before the }. I would have answer my own question but I can't due to reputation. Thanks –  lander16 Jun 8 '11 at 2:34
add comment

1 Answer 1

up vote 8 down vote accepted

There's a spurious trailing space in the redefinition of \gls@main@displayfirst. Replace

\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}
}

with

\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}%
}

(notice the % character at the end of the second line).

share|improve this answer
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.