1

fnpct seems to do an excellent job adjusting the kerning between periods/commas and footnote symbols. This AdaptNote command does switch positions with interpunction, but does no kerning. Can I use fnpct to perform the kerning?

enter image description here

\documentclass{article}
\usepackage{natbib}
\setcitestyle{super,comma,open=,close=}
\usepackage{fnpct}
\AdaptNote\cite{o+m}[\@mpfn]{\IfNoValueTF{#1}{#NOTE{#2}}{#NOTE[#1]{#2}}}
\begin{document}
    Footnotes \footnote{foo}, and citations \cite{citekey1}, exhibit different kerning \cite{citekey1,citekey2}.
    \begin{thebibliography}{9}
        \bibitem{citekey1} First citation.
        \bibitem{citekey2} Second citation.
    \end{thebibliography}
\end{document}

1 Answer 1

1

I guess you want to move the footnote markers a little above punctuation.

\documentclass{article}
\usepackage{natbib}
\setcitestyle{super,comma,open=,close=}
\usepackage{fnpct}

\setfnpct{
  after-comma-space={-0.2em},
  after-dot-space={-0.2em},
}

\makeatletter
\AdaptNote\cite{o+m}[\@mpfn]{\IfNoValueTF{#1}{#NOTE{#2}}{#NOTE[#1]{#2}}}
\makeatother

\begin{document}
Footnote\footnote{x} footnote\footnote{foo}, and citations \cite{citekey1}, 
exhibit different kerning \cite{citekey1,citekey2}.

\begin{thebibliography}{9}

\bibitem{citekey1} First citation.

\bibitem{citekey2} Second citation.

\end{thebibliography}

\end{document}

enter image description here

1
  • That's perfect, thank you! I didn't realise that other fnpct functionality worked for non-footnotes.
    – Anna
    Commented Feb 29 at 12:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .