註腳無參考

註腳無參考

我目前正在用 LaTeX 寫我的學士論文,我想要一個沒有參考文獻的腳註。我使用了一個空白註腳:

    \begingroup
    \renewcommand\thefootnote{}\footnote{#1}%
    \addtocounter{footnote}{-1}%
    \endgroup}

它讓我在頁面末尾添加了一個沒有數字的腳註,如我所願,但隨後 pdf 中的頁面末尾出現了一個紅色框。使用\footnotetext,我可以在沒有參考的情況下建立腳註,但它需要一個編號。是否有選項可以去掉參考號碼和編號?

目前是這樣的:(我需要hyperref-packageurl 和引用以及其他腳註)

\documentclass[a4paper, 12pt, bibtotocnumbered]{scrartcl}
\usepackage{hyperref}
\newcommand\blfootnote[1]{%
    \begingroup
    \renewcommand\thefootnote{}\footnote{#1}%
    \addtocounter{footnote}{-1}%
    \endgroup
}
\begin{document}
I want a footnote without reference and without a number.\blfootnote{This creates a footnote without number but with reference.}
\end{document}

答案1

在這裡,\freefootnote將創建所需的腳註,不帶數字和連結。正如 MWE 中所示,它不會幹擾文件其他地方連結的編號腳註的使用。

\documentclass[a4paper, 12pt, bibtotocnumbered]{scrartcl}
\usepackage{hyperref}
\let\svthefootnote\thefootnote
\newcommand\freefootnote[1]{%
  \let\thefootnote\relax%
  \footnotetext{#1}%
  \let\thefootnote\svthefootnote%
}
\begin{document}
I want a footnote without reference and without a number.%
\freefootnote{This creates a footnote without number 
  and no longer with reference.}

Regular footnote.\footnote{Test}
\end{document}

在此輸入影像描述

在此輸入影像描述

答案2

hidelinks在序言中新增選項到 hyperref 應該可以解決問題(請參閱這裡)。放入 MWE 中:

\documentclass[a4paper, 12pt, bibtotocnumbered]{scrartcl}
\usepackage[
hidelinks % hide link outlines
]{hyperref}
\newcommand\blfootnote[1]{%
    \begingroup
    \renewcommand\thefootnote{}\footnote{#1}%
    \addtocounter{footnote}{-1}%
    \endgroup
}
\begin{document}
I want a footnote without reference and without a number.\blfootnote{This creates a footnote without number but with reference.}
\end{document}

相關內容