我想在 \maketitle 命令之前定义摘要,但摘要打印在单独的页面上。我正在使用基本文章类文件。
我在 tex 文件中使用了下面提到的编码。
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective}
\author[1]{Junli Liu}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\begin{abstract}
Plants are sessile organisms and therefore they must adapt their growth and architecture to a changing environment.
\end{abstract}
\maketitle
我正在按照下面提到的方式设计模板 maketitle 命令:
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{minipage}[b]{10pc}
{\@editor\par}
\vskip 1.5em%
{\@reviewer\par}
\end{minipage}
\hspace*{12pt}
\begin{minipage}[b]{31pc} \begin{raggedleft}%
\let \footnote \thanks
{\raggedright\fontsize{18pt}{20pt}\selectfont\@title \par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{l}%
\raggedright\@author
\end{tabular}\par}%
\vskip 1em%
% {\large \@date}%
\end{raggedleft}
\end{minipage}%
\par
\vskip 8.5em}
答案1
abstract
如果在命令中配置环境\maketitle
,请使用框概念。打印命令中的环境很容易\maketitle
。
解决方案如下:
\documentclass{article}
\usepackage{authblk}
\makeatletter
\newbox\@abstract%
\def\abstitle{\textbf{Abstract}}%
\renewenvironment{abstract}{%
\setlength{\parskip}{6pt}%
\setlength{\parindent}{\z@}%
\global\setbox\@abstract\vbox\bgroup%
\noindent\ignorespaces%
}{%
\egroup%
}%
\def\@maketitle{%
\newpage
\null
\let \footnote \thanks
{\raggedright\fontsize{18pt}{20pt}\selectfont \@title \par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{l}%
\raggedright \@author %
\end{tabular}\par}%
\raggedright\abstitle\par
\vskip 1em
{\unvbox\@abstract\par}%
\par
\vskip 8.5em}
\makeatother
\begin{document}
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective}
\author[1]{Junli Liu}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\begin{abstract}
Plants are sessile organisms and therefore they must adapt their growth and architecture to a changing environment.
\end{abstract}
\maketitle
\end{document}
输出: