Я сейчас пишу свою бакалаврскую диссертацию с помощью LaTeX и мне нужна сноска без ссылки. Я использовал пустую сноску с:
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup}
Он делает мне сноску в конце страницы без номера, как я и хотел, но затем в конце страницы в pdf появляется красная рамка. С помощью \footnotetext
я могу создать сноску без ссылки, но ей нужен номер. Есть ли возможность избавиться от ссылки И номера?
В настоящее время это выглядит так: (мне нужны hyperref-package
URL-адреса, ссылки и другие сноски)
\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}