![无法创建没有标记的脚注](https://linux22.com/image/462486/%E6%97%A0%E6%B3%95%E5%88%9B%E5%BB%BA%E6%B2%A1%E6%9C%89%E6%A0%87%E8%AE%B0%E7%9A%84%E8%84%9A%E6%B3%A8.png)
我正在使用这个模板https://www.overleaf.com/latex/templates/aaai-2023-author-kit/wxnmhzcrjbpc并想删除我的脚注的标记。
我尝试使用来自的代码无标记的脚注删除标记,但仍然不起作用。您可以在下面看到“无标记的脚注”仍然有标记。
\makeatletter
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand{\@makefntext}[1]{\noindent\makebox[1.8em][r]#1}
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\makeatother
我无法在这里发布 MWE,因为还有其他几个文件,但这里是可编辑的 MWEhttps://www.overleaf.com/6147694589pmbfyhnqdrcy
这是我可以发布的 MWE。
\def\year{2022}\relax
%File: formatting-instructions-latex-2022.tex
%release 2022.1
\documentclass[letterpaper]{article} % DO NOT CHANGE THIS
\usepackage{aaai22} % DO NOT CHANGE THIS
\usepackage{times} % DO NOT CHANGE THIS
\usepackage{helvet} % DO NOT CHANGE THIS
\usepackage{courier} % DO NOT CHANGE THIS
\usepackage[hyphens]{url} % DO NOT CHANGE THIS
\usepackage{graphicx} % DO NOT CHANGE THIS
\urlstyle{rm} % DO NOT CHANGE THIS
\def\UrlFont{\rm} % DO NOT CHANGE THIS
\usepackage{natbib} % DO NOT CHANGE THIS AND DO NOT ADD ANY OPTIONS TO IT
\usepackage{caption} % DO NOT CHANGE THIS AND DO NOT ADD ANY OPTIONS TO IT
\DeclareCaptionStyle{ruled}{labelfont=normalfont,labelsep=colon,strut=off} % DO NOT CHANGE THIS
\frenchspacing % DO NOT CHANGE THIS
\setlength{\pdfpagewidth}{8.5in} % DO NOT CHANGE THIS
\setlength{\pdfpageheight}{11in} % DO NOT CHANGE THIS
%
% These are recommended to typeset algorithms but not required. See the subsubsection on algorithms. Remove them if you don't have algorithms in your paper.
\usepackage{algorithm}
\usepackage{algorithmic}
\makeatletter
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand{\@makefntext}[1]{\noindent\makebox[1.8em][r]#1}
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\makeatother
% These are are recommended to typeset listings but not required. See the subsubsection on listing. Remove this block if you don't have listings in your paper.
\usepackage{newfloat}
\usepackage{listings}
\lstset{%
basicstyle={\footnotesize\ttfamily},% footnotesize acceptable for monospace
numbers=left,numberstyle=\footnotesize,xleftmargin=2em,% show line numbers, remove this entire line if you don't want the numbers.
aboveskip=0pt,belowskip=0pt,%
showstringspaces=false,tabsize=2,breaklines=true}
\floatstyle{ruled}
\newfloat{listing}{tb}{lst}{}
\floatname{listing}{Listing}
\pdfinfo{
}
\setcounter{secnumdepth}{0} %May be changed to 1 or 2 if section numbers are desired.
\title{}
\author{
\blfootnote{footnote without marker}
}
\affiliations{
}
%Example, Single Author, ->> remove \iffalse,\fi and place them surrounding AAAI title to use it
\iffalse
\title{}
\author {
}
\affiliations{
}
\fi
\iffalse
%Example, Multiple Authors, ->> remove \iffalse,\fi and place them surrounding AAAI title to use it
\title{}
\author {
}
\affiliations {
}
\fi
\begin{document}
\maketitle
\begin{abstract}
\end{abstract}
\end{document}
答案1
我使用不同的(自定义)文档类,因此我的代码可能不完全适合这个问题。但这在我的自定义类中有效,因此类似的代码应该对你有用:
脚注标记放置\@thefnmark
在 LaTeX 基础文档类中。在文档正文中
This text has normal footnotes, with marker.
\begingroup%
\makeatletter\def\@thefnmarker{}\makeatother%
This text would have an empty footnote marker.
\endgroup%
This text has normal footnote marker. You may need to subtract 1 from the marker count.
请注意在代码行末尾使用百分号。这可以避免出现多余的段落中断。
另一种方法是使用不同的宏定义两种脚注。一种是\@thefnmarker
其定义的一部分,另一种不是。