![文章标题与摘要在同一页的两栏中,只有一栏摘要](https://linux22.com/image/428116/%E6%96%87%E7%AB%A0%E6%A0%87%E9%A2%98%E4%B8%8E%E6%91%98%E8%A6%81%E5%9C%A8%E5%90%8C%E4%B8%80%E9%A1%B5%E7%9A%84%E4%B8%A4%E6%A0%8F%E4%B8%AD%EF%BC%8C%E5%8F%AA%E6%9C%89%E4%B8%80%E6%A0%8F%E6%91%98%E8%A6%81.png)
这应该是一个简单的问题,但我找不到错误。有了这些行,就会为摘要和标题创建两个不同的页面。我需要在同一页面上同时显示这两个页面,并且已经尝试过类似 的方法\nopagebreak
。
\documentclass[a4paper, 10pt, twocolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\begin{document}
\maketitle
\twocolumn[
\begin{@twocolumnfalse}
\begin{abstract}
...
\end{abstract}
\end{@twocolumnfalse}
]
答案1
尝试这个。
% twocolproc.tex SE 581632
\documentclass[a4paper, 10pt, twocolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage{lipsum}
\title{The Title}
\author{A. Writer}
\begin{document}
\maketitle
\let\oldclearpage\clearpage
\renewcommand{\clearpage}{} % \onecolumn starts with a \clearpage
\onecolumn
\begin{abstract}
This is the abstract text for this document. It should be in one, not
two columns.
\end{abstract}
\twocolumn
\let\clearpage\oldclearpage % restore \clearpage to its normal operation
\section{A section}
\lipsum[1]
\end{document}
编辑
由于第二列的文本与摘要的文本重叠,上述代码无法正常工作。下面的代码产生了合理的不重叠结果。
% twocolprob2.tex SE 581632
\documentclass[a4paper, 10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage{lipsum}
% do this to get the original abstract typesetting
\renewenvironment{abstract}{%
\small
\begin{center}%
{\bfseries \abstractname\vspace{-0.5em}\vspace{0pt}}%
\end{center}%
\quotation}
{\endquotation}
\title{The Title}
\author{A. Writer}
\begin{document}
% twocolumn but with one column text beforehand
\twocolumn[
\maketitle
\begin{abstract}
This is the abstract text for this document. It should be in one, not
two columns as it is hopefully here.
\end{abstract}
\vspace{\baselineskip}
]
\section{A section}
\lipsum[1-3]
\end{document}
答案2
移至\maketitle
适当位置:
\documentclass[a4paper, 10pt, twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage{lipsum} % for mock text
\begin{document}
\title{Title}
\author{Author}
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
\begin{abstract}
This is the abstract.
This is the abstract.
This is the abstract.
This is the abstract.
This is the abstract.
\end{abstract}
\end{@twocolumnfalse}
]
\lipsum
\end{document}
请注意,\usepackage[utf8]{inputenc}
不再需要。另一方面,德语排版做要求\usepackage[T1]{fontenc}
。