環境末端的註腳

環境末端的註腳

我希望腳註出現在枚舉環境的末尾,而不是頁面的底部。我將如何更改以下程式碼:

\documentclass{article}
\begin{document}

\begin{enumerate}
    \item Item 1 \footnotemark[1]
    \item Item 2 \footnotemark[1]
    \item Item 3 \footnotemark[2]
    \item Item 4
    \footnotetext[1]{Complete}
    \footnotetext[2]{Requires selection from existing algorithms}
\end{enumerate}

\end{document}

導致這樣的結果:

枚舉末尾的註腳

答案1

將其放入一個minipage.當然,minipage調用\footnotetext將使用字母而不是與頁面腳註相關的數字,除非按照 Mico 的建議\renewcommand{\thempfootnote}{\arabic{mpfootnote}}minipage.

但是,請注意,minipage腳註不是全域索引腳註序列的一部分,但實際上每個腳註都重新開始編號minipage

編輯為使用實際的\footnotes 而不僅僅是\footnotemark\footnotetext

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\noindent\begin{minipage}{\textwidth}
\renewcommand{\thempfootnote}{\arabic{mpfootnote}}
\begin{enumerate}
    \item Item 1 \footnote{Complete}
    \item Item 2 \footnotemark[1]
    \item Item 3 \footnote{Requires selection from existing algorithms}
    \item Item 4
\end{enumerate}
\end{minipage}
\bigskip

\lipsum[1-2]
\end{document}

在此輸入影像描述

答案2

這增強了塞格萊斯 (Steven B.Segletes)在此回答郵政

在小型頁面中使用枚舉給我帶來了很多問題,特別是對於子項目中包含大量文本的長列表。我發現僅將其移動\footnotetext到小型頁面,而不是整個enumerate環境來解決問題。

\documentclass{article}
\usepackage{lipsum}
\begin{document}
    \renewcommand{\thempfootnote}{\arabic{mpfootnote}}
    \begin{enumerate}
        \item Item 1 \footnotemark[1]
        \item Item 2 \footnotemark[1]
        \item Item 3 \footnotemark[2]
        \item Item 4
    \end{enumerate}
    \noindent\begin{minipage}{\textwidth}
        \footnotetext[1]{Complete}
        \footnotetext[2]{Requires selection from existing algorithms}
    \end{minipage}
    \bigskip

    \lipsum[1-2]
\end{document}

在此輸入影像描述

相關內容