使用 parskip 时更改引用环境前后的垂直间距

使用 parskip 时更改引用环境前后的垂直间距

我正在与quoting环境,但我不知道如何调整它前后的垂直空间。我希望环境像现在这样在两侧缩进,但前后没有完整的段落返回。

文档quoting说引号顶部的空间由 控制vskip。我尝试将vskip选项调整为,vskip=-8pt但没有任何效果。我也尝试在环境\noindent前添加quoting-- ,但也没有效果。

这是一个最小的工作示例。

\documentclass[11pt, oneside]{article}% use "amsart" instead of "article" for AMSLaTeX format
% TeX will automatically convert eps --> pdf in pdflatex        
\usepackage{amssymb}

\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage[parfill]{parskip}           %use line breaks instead of indentation

\usepackage{quoting}    %For inset quotes more than three lines

\title{Brief Article}
\author{The Author}
%\date{}                            % Activate to display a given date or no date

\begin{document}
\maketitle
%\section{}
%\subsection{}
\blindtext

\begin{quoting} 
This is a quote which should be indented but should not have a full
paragraph line before it or after it. In other words it should be
indented on either side but shouldn't have a full paragraph skip before.
\end{quoting}

\Blindtext

\end{document}  

答案1

使用该vskip=-\parskip选项似乎可以解决问题。

\documentclass[11pt]{article}

\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage[parfill]{parskip}

\usepackage[vskip=-\parskip]{quoting}

\begin{document}

\blindtext

\begin{quoting} 
This is a quote which should be indented but should not have a full
paragraph line before it or after it. In other words it should be
indented on either side but shouldn't have a full paragraph skip before.
\end{quoting}

\blindtext

\blindtext

\end{document}  

在此处输入图片描述

答案2

quoting看起来和之间存在一些冲突parskip。如果您注释掉该\usepackage[parfill]{parskip}行,则[vskip=0pt]后面的选项\begin{quoting}将按预期工作。 在此处输入图片描述

此外,这看起来像是如何修改引用环境周围的间距?

相关内容