![我怎样才能让 fnpct kern \cite 上标像 kerns \footnote 那样?](https://linux22.com/image/474263/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E8%AE%A9%20fnpct%20kern%20%5Ccite%20%E4%B8%8A%E6%A0%87%E5%83%8F%20kerns%20%5Cfootnote%20%E9%82%A3%E6%A0%B7%EF%BC%9F.png)
fnpct
似乎可以出色地调整句号/逗号和脚注符号之间的字距。此 AdaptNote 命令确实会切换标点符号的位置,但不进行字距调整。我可以使用fnpct
来执行字距调整吗?
\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
我猜您想将脚注标记稍微移动到标点符号上方。
\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}