我正在使用report
类。我有几个章节,每个章节我都使用单独的标题页。为了在作者中插入隶属关系,我使用每次\author{SOMEONE\thanks{affiliations}}
。
这种方法完全没问题,但在后续的每一章中,每个新章节的标题页都会重复致谢,包括前几章的致谢。我发现,要解决这个问题,只需按照此处的建议在定义\let\footnote\relax\let\thanks\relax
中添加类似内容即可\maketitle
\thanks{} 在 AAAI21 sty 中创建重复的脚注。但是,我找不到如何访问后者。我可以以某种方式定义一个\renewcommand
来执行此操作吗?我正在使用 Overleaf,所以我不知道如何访问\maketitle
以下是 MWE:
\documentclass[notitlepage]{report}
\usepackage[utf8]{inputenc}
\usepackage{hyperref,todonotes,longtable}
\usepackage{graphics,epsfig,lscape,setspace,url,setspace,morefloats,comment,booktabs,color}
\usepackage{natbib}
\usepackage[labelfont=sc, singlelinecheck=false, font={small}]{caption}
\usepackage{amsfonts,amsmath,amsthm,amssymb}
\usepackage{blindtext}
\usepackage[flushmargin,hang,marginal,multiple, stable]{footmisc}
\usepackage{titling}
\hypersetup{pdfborder = {0 0 0}}
\renewcommand{\abstractname}{\bf ABSTRACT}
\makeatletter
\newenvironment{chapquote}[2][2em]
{\setlength{\@tempdima}{#1}%
\def\chapquote@author{#2}%
\parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax%
\itshape}
{\par\normalfont\hfill \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother
\pagestyle{plain}
\renewcommand{\abstractname}{\bf ABSTRACT}
\makeatletter
\def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
\makeatother
\title{main title\\
{\Large somewhere}}
\author{Author 1}
\date{}
\begin{document}
\maketitle
\tableofcontents
\chapter{My chapter 1}
\title{\LARGE{\bf My chap 1 \vspace{0.5cm}} }
\author{\small \sc{Author1\thanks{Affiliation 1}}} %to mute
\date{}
\maketitle
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty} \newpage
\section{Sec1}
\section{Sec2}
\chapter{My chapter 2}
\title{\LARGE{\bf My chap 2 \vspace{0.5cm}} }
\author{\small \sc{Author2\thanks{Affiliation 2}}} %to mute
\date{}
\maketitle
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty} \newpage
\section{Sec1}
\section{Sec2}
\chapter{My chapter 3}
\title{\LARGE{\bf My chap 3 \vspace{0.5cm}} }
\author{\small \sc{Author3\thanks{Affiliation 3}}} %to mute
\date{}
\maketitle
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty} \newpage
\section{Sec1}
\section{Sec2}
\end{document}
如你所见,第三章与前两章的作者有隶属关系
答案1
由于您正在使用该包,因此每次使用后都titling
必须插入一个命令:\emptythanks
\maketitle
\thanks
\documentclass[notitlepage]{report}
\usepackage[utf8]{inputenc}
\usepackage{hyperref,todonotes,longtable}
\usepackage{graphics,epsfig,lscape,setspace,url,setspace,morefloats,comment,booktabs,color}
\usepackage{natbib}
\usepackage[labelfont=sc, singlelinecheck=false, font={small}]{caption}
\usepackage{amsfonts,amsmath,amsthm,amssymb}
\usepackage{blindtext}
\usepackage[flushmargin,hang,marginal,multiple, stable]{footmisc}
\usepackage{titling}
\hypersetup{pdfborder = {0 0 0}}
\renewcommand{\abstractname}{\bf ABSTRACT}
\makeatletter
\newenvironment{chapquote}[2][2em]
{\setlength{\@tempdima}{#1}%
\def\chapquote@author{#2}%
\parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax%
\itshape}
{\par\normalfont\hfill \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother
\pagestyle{plain}
\renewcommand{\abstractname}{\bf ABSTRACT}
\makeatletter
\def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
\makeatother
\title{main title\\
{\Large somewhere}}
\author{Author 1}
\date{}
\begin{document}
\maketitle
\tableofcontents
\chapter{My chapter 1}
\title{\LARGE{\bf My chap 1 \vspace{0.5cm}} }
\author{\small \sc{Author1\thanks{Affiliation 1}}} %to mute
\date{}
\maketitle\emptythanks % <--- always emptythanks after \maketitle
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty}
\newpage
\section{Sec1}
\section{Sec2}
\chapter{My chapter 2}
\title{\LARGE{\bf My chap 2 \vspace{0.5cm}} }
\author{\small \sc{Author2\thanks{Affiliation 2}}} %to mute
\date{}
\maketitle\emptythanks % <--- !
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty} \newpage
\section{Sec1}
\section{Sec2}
\chapter{My chapter 3}
\title{\LARGE{\bf My chap 3 \vspace{0.5cm}} }
\author{\small \sc{Author3\thanks{Affiliation 3}}} %to mute
\date{}
\maketitle\emptythanks % <--- !
\begin{abstract}{\noindent An abstract
\blfootnote{We thank X} %to mute
}
\end{abstract}
\thispagestyle{empty} \newpage
\section{Sec1}
\section{Sec2}
\end{document}
查看文档中使用的软件包的文档总是一个好主意;)文档在第 7 页titling
明确指出了需要\emptythanks
!
离题了,但仍然值得了解:不要使用诸如\bf
粗体或\sc
小型大写字母之类的命令,而要使用更新、因此更安全的命令\textbf{}
/\bfseries
和\textsc{}
/ \scshape
。