简单易懂的段落跳过功能

简单易懂的段落跳过功能

我使用的是 XeLaTeX,我需要段落之间只用垂直空格隔开,并且没有缩进。但是,无论我怎么尝试,我总是得到缩进的段落。这是我的完整序言(在它之后是\begin{document}正常文本):

\documentclass[a4paper,10pt]{article}
\usepackage{listings}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage[pdfusetitle,bookmarks=true,
  bookmarksnumbered=true,bookmarksopen=false,
  breaklinks=false,pdfborder={0 0 0},backref=false,
  colorlinks=false]{hyperref}
\usepackage{fontspec}
\usepackage{fancyvrb}
\usepackage{marginnote}
\usepackage[outer=4cm, heightrounded, marginparwidth=3cm,
  marginparsep=0.5cm]{geometry}
\usepackage[parfill]{parskip}

% Bug in TexLive 2010
\DeclareUTFcharacter[\UTFencname]{x00A0}{\nobreakspace}

\setmainfont[Mapping=tex-text,Scale=MatchLowercase,Ligatures=Common]{Garamond Premier Pro}
\setsansfont[Mapping=tex-text,Scale=MatchLowercase,Ligatures=Common]{Myriad Pro}
\setmonofont[Scale=MatchLowercase,BoldFont={PragmataPro Bold},ItalicFont={PragmataPro Italic},BoldItalicFont={PragmataPro Bold Italic}]{PragmataPro}

我也尝试过:

% Paragraphs
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\setlength{\intextsep}{0pt}

这两种方法都不起作用。我做错了什么?


我在用:

XeTeX 3.1415926-2.4-0.9998 (TeX Live 2012/Arch Linux)
kpathsea version 6.1.0
Copyright 2012 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 49.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.7; using 1.2.7
Compiled with FreeType2 version 2.4.11; using 2.4.11
Compiled with fontconfig version 2.10.92; using 2.10.92
Compiled with libpng version 1.5.15; using 1.5.15
Compiled with poppler version 0.22.3

演示该问题的测试文档:

\documentclass[a4paper,10pt]{article}
\usepackage[pdfusetitle,bookmarks=true,
 bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 0},backref=false,
 colorlinks=false]{hyperref}
\usepackage[parfill]{parskip}

\title{Test}
\author{Me \and You}
\date{\today}

\begin{document}

\maketitle

\abstract{
  Something something

  Something something
}

\pagebreak

\tableofcontents

\pagebreak

\section{Introduction}

I don't want to change the prelude in case I mess something up. I
don't want to change the prelude in case I mess something up. I don't
want to change the prelude in case I mess something up. I don't want
to change the prelude in case I mess something up. I don't want to
change the prelude in case I mess something up.

So here is just normal text instead of lipsum. So here is just normal
text instead of lipsum. So here is just normal text instead of
lipsum. So here is just normal text instead of lipsum. So here is just
normal text instead of lipsum. So here is just normal text instead of
lipsum.

\end{document}

答案1

摘要应该作为一个环境:

\begin{abstract}
Something something

Something something
\end{abstract}

不是带有参数的命令。

article这是针对、和 KoMa-script 类的一般建议report。专业类可能需要摘要作为命令的参数(检查其文档)。


在文章类中,的定义\abstract(作为的一部分执行)\begin{abstract}

  \if@twocolumn
    \section*{\abstractname}
  \else
    \small
    \begin{center}
    {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}
    \end {center}
    \quotation
   \fi

所以你基本上得到了一个quotation永远持续的环境。

相关内容