
私は Springer LNCS 形式で執筆しており、図のキャプションに脚注を追加しました。
\documentclass[runningheads]{llncs}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{appendix}
\begin{document}
\title{TITLE}
\author{AUTHOR}
\institute{INSTITUTE} \\
\maketitle
\begin{figure}
\includegraphics[width=\textwidth]{Beta.eps}
\caption{When $m=k=6$, and $500$ samples of $\mathbf{X}$ are generated from the bimodal distribution, $Beta(0.5,0.5)$, $\mathcal{L}_{co}$ fluctuates so drastically that in about half of the $20$ simulations, the MDL approach would miss the causality between $\mathbf{X}$ and $Y$ and leads to the wrong conclusion. $(\mathbf{X},Y)$ purely confounded by $Beta$ sources, on the other hand, work well with the CoCa model.\footnotemark}
\label{Fig.2}
\end{figure}
\footnotetext{https://github.com/PawinData/CoCa}
\end{document}
これは記事内の唯一の脚注ですが、どういうわけか PDF 出力では 2 番目として表示されます。これはなぜでしょうか。どうすれば修正できますか。
@UlrikeFischer によって問題が解決されました
答え1
提供されたのはコードの一部のみであるため、ドキュメントに関する情報 (問題を再現する小さな完全なドキュメントの形式) がないため、テストして何が問題なのかを確認することができません。
ただし、コードフラグメントにはいくつか問題があります。
- 図のラベルは
\caption{...}
\footnotemark
「保護」されなければならなかった:\caption{abcdefg\protect\footnotemark}
編集(1):
前述のことを考慮すると、MWE (Minimal Working Example) およびllncs
ドキュメント クラスは次のようになります。
\documentclass[runningheads]{llncs}
\usepackage[demo]{graphicx} % in real document remove option "demo"
\usepackage{lipsum}
\begin{document}
\lipsum[1-3]
\begin{figure}[ht]
\includegraphics[width=\textwidth]{Beta.eps}
\caption{abcdefg\protect\footnotemark} % <---
\label{Fig.2} % <---
\end{figure}
\footnotetext{https://github/com}
\end{document}
これは(依然として)正しい結果をもたらします:
編集2footnotemark
どうやら、キャプション内に ともう\footnotetext
1 つ\footnotemark
(または) の間にあるため、問題が発生しているようです。この問題は、テキスト内の次の(または}の直後に\footnote
を挿入することで解消できます。\footnotetext
figure
\footnotemark
\footnote
答え2
このクラスは独自のキャプション処理メカニズムを定義します。実際のキャプションを設定する部分は次のとおりです。
\long\def\@makecaption#1#2{%
\small
\vskip\abovecaptionskip
\sbox\@tempboxa{{\bfseries #1.} #2}%
\ifdim \wd\@tempboxa >\hsize
{\bfseries #1.} #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
ボックスにキャプションを設定するには
\sbox\@tempboxa{{\bfseries #1.} #2}%
そして、このボックスが現在の許容ボックス幅よりも広いかどうかを測定します。これが当てはまる場合、リセット適切な改行を可能にします。この二重設定は、 の必須引数内で使用されるカウンタを増加させます\caption[<ToC>]{<main>}
。次の最小限の例でこれを確認できます。
\documentclass{llncs}
\begin{document}
\begin{figure}
\caption[short caption]{%
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnotemark\space
%Nunc id nulla at dui facilisis pharetra non scelerisque mi.% <- Uncomment
}
\end{figure}
\footnotetext{https://github.com/PawinData/CoCa}
\end{document}
の 2 行目を追加すると、\caption
は より広くなり\textwidth
、 は 2 回処理されるため、は 2 回増分されます。これに対処するための簡潔で便利な方法は、環境内でカウンターをステップし、固定の を使用することfootnote
です。footnote
figure
\footnotemark[<mark>]
\documentclass{llncs}
\begin{document}
\begin{figure}
\stepcounter{footnote}% Increment footnote counter
\caption[short caption]{%
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnotemark[\thefootnote]\space
%Nunc id nulla at dui facilisis pharetra non scelerisque mi.
}
\end{figure}
\footnotetext{https://github.com/PawinData/CoCa}
\end{document}