我正在尝试在双栏文章中使用\thanks
inside \author
。文档在作者姓名旁边显示一个星号,但脚注并未出现在第一页底部或文档中的任何其他位置。
摘要是一列,\thanks
如果使用 multicol 包,则可行,但如果文章只有两列,则更简单。这是一个有效示例。
\documentclass [11pt, twocolumn] {article}
\usepackage[affil-it]{authblk}
\usepackage{blindtext}
\usepackage{abstract}
\begin{document}
\title{Latin text\\ \textit{and}\\ It's in Latin}
\author{James Smith%
\thanks{The author would like to thank someone.}}
\affil{USA University}
\date{November 2012}
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
\begin{abstract}
\blindtext
\vspace{1cm}
\end{abstract}
\end{@twocolumnfalse}
]
\section{Introduction}
\blindtext
\end {document}
答案1
TeX FAQ 中讨论了这个问题https://texfaq.org/FAQ-onecolabs
twocolumn
(您最初是从哪里得到这个黑客想法的?)
\saythanks
黑客攻击后你需要做的就是twocolumn
:
\documentclass [11pt, twocolumn] {article}
\usepackage[affil-it]{authblk}
\usepackage{blindtext}
\usepackage{abstract}
\begin{document}
\title{Latin text\\ \textit{and}\\ It's in Latin}
\author{James Smith%
\thanks{The author would like to thank someone.}}
\affil{USA University}
\date{November 2012}
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
\begin{abstract}
\blindtext
\vspace{1cm}
\end{abstract}
\end{@twocolumnfalse}
]
\saythanks
\section{Introduction}
\blindtext
\end {document}
答案2
我相信abstract
最好将其作为其中的一部分进行处理\maketitle
,就像 AMS 类一样,但不幸的是事实并非如此。
不过,您可以自己这样做,这样可以避免丢失\thanks
:
\documentclass [11pt, twocolumn] {article}
\usepackage[affil-it]{authblk}
\usepackage{blindtext}
\makeatletter
\newbox\abstract@box
\renewenvironment{abstract}
{\global\setbox\abstract@box=\vbox\bgroup
\hsize=\textwidth\linewidth=\textwidth
\small
\begin{center}%
{\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
\end{center}%
\quotation}
{\endquotation\egroup}
\expandafter\def\expandafter\@maketitle\expandafter{\@maketitle
\ifvoid\abstract@box\else\unvbox\abstract@box\if@twocolumn\vskip1.5em\fi\fi}
\makeatother
\begin{document}
\title{Latin text\\ \textit{and}\\ It's in Latin}
\author{James Smith%
\thanks{The author would like to thank someone.}}
\affil{USA University}
\date{November 2012}
\begin{abstract}
\blindtext
\vspace{1cm}
\end{abstract}
\maketitle
\section{Introduction}
\blindtext
\end {document}
请注意必须abstract
在之前输入环境\maketitle
,这应该不是什么大问题。
笔记我已将原始代码更改为在单列模式下也能正常工作
答案3
如果您想要两列的摘要,请按如下方式使用:
\documentclass [11pt,twocolumn] {article}
\usepackage[affil-it]{authblk}
\usepackage{blindtext}
\usepackage{abstract}
\begin{document}
\title{Latin text\\ \textit{and}\\ It's in Latin}
\author{James Smith%
\thanks{The author would like to thank someone.}}
\affil{USA University}
\date{November 2012\\[1cm]
\begin{abstract}
\blindtext
\end{abstract}}
\maketitle
\section{Introduction}
\blindtext
\end {document}