我正在使用这个包csquotes
生成一个块引用。csquotes
在引用中的段落之间插入看起来像半个空白行的内容。
我希望没有垂直空间,但有缩进,就像普通文本中的新段落一样。我该怎么做?
我准备了以下例子:
\documentclass{article}
\usepackage{csquotes}
\begin{document}
\section{}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer a purus vel lacus eleifend feugiat sed id eros.
%
\blockquote{Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia Curae; Nunc congue,
\emph{here ends the first paragraph within the blockquote.}
\emph{This should be indented.} Aenean vulputate dolor id nulla
sollicitudin quis facilisis sem ultrices. Sed congue consequat
viverra. Suspendisse malesuada sodales viverra.}
%
Nullam eget elit vel nunc interdum accumsan. Phasellus posuere
enim eu eros blandit viverra.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer a purus vel lacus eleifend feugiat sed id eros.
\end{document}
答案1
\blockquote
您可以更改使用 的块环境\SetBlockEnvironment
。默认情况下,它使用quote
在段落之间留出一些垂直空间的环境。将其设置为使用环境quotation
,\SetBlockEnvironment{quotation}
,以在段落之间获得换行符和缩进。请注意,这也会缩进块引用中的第一个段落(并且它将应用于csquotes
创建块引用的每个命令)。
\documentclass{article}
\usepackage{csquotes}
\SetBlockEnvironment{quotation}% I've only added this
\begin{document}
\section{}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer a purus vel lacus eleifend feugiat sed id eros.
%
\blockquote{Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia Curae; Nunc congue,
\emph{here ends the first paragraph within the blockquote.}
\emph{This should be indented.} Aenean vulputate dolor id nulla
sollicitudin quis facilisis sem ultrices. Sed congue consequat
viverra. Suspendisse malesuada sodales viverra.}
%
Nullam eget elit vel nunc interdum accumsan. Phasellus posuere
enim eu eros blandit viverra.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer a purus vel lacus eleifend feugiat sed id eros.
\end{document}
。
答案2
您还可以quoting
使用包裹同名(披露:我是包的作者)。quoting
将使用周围文本的缩进parskip
(即它将与 LaTeX 的默认设置相似quotation
),但通过在环境前添加空行来激活第一行缩进。
\documentclass{article}
\usepackage{quoting}
\usepackage{csquotes}
\SetBlockEnvironment{quoting}
\newcommand*{\sometext}{Hello, here is some text without a meaning. This
text should show, how a printed text will look like at this place.
If you read this text, you will get no information.}
\begin{document}
\sometext
%
\blockquote{% First line not indented
\sometext
\sometext
}
\sometext
\blockquote{% First line indented
\sometext
\sometext
}
\end{document}
编辑:与quotation
LaTeX 标准类的环境不同,该quoting
环境还将模仿普通文本段落缩进的变化(例如使用 完成\setlength{\parindent}{1em}
)。