暂时更改报价边距

暂时更改报价边距

我希望改变环境的边距quote,但只是一次性改变。我不希望改变quote整个文档的环境。

我尝试执行以下操作,但是没有效果

\documentclass{article}

\begin{document}
This is a normal paragraph. This is a normal paragraph. 
This is a normal paragraph. This is a normal paragraph. This is a normal paragraph. 

\begin{quote}
This is a quote, normally with margins. This is a quote, normally with margins. 
This is a quote, normally with margins. This is a quote, normally with margins. 
\end{quote}

\begin{quote}
\setlength{\leftmargin}{0.1in}
\setlength{\rightmargin}{0.1in}
This other quote needs slimmer margins. This other quote needs slimmer margins. 
This other quote needs slimmer margins. This other quote needs slimmer margins. 
\end{quote}

\end{document}

答案1

您应该在报价环境之外进行更改。

\documentclass{article}

\begin{document}
This is a normal paragraph. This is a normal paragraph.
This is a normal paragraph. This is a normal paragraph. This is a normal paragraph.

\begin{quote}
This is a quote, normally with margins. This is a quote, normally with margins.
This is a quote, normally with margins. This is a quote, normally with margins.
\end{quote}

\begingroup
\addtolength\leftmargini{0.1in}
\begin{quote}
This other quote needs slimmer margins. This other quote needs slimmer margins.
This other quote needs slimmer margins. This other quote needs slimmer margins.
\end{quote}
\endgroup

\begin{quote}
This is a quote, normally with margins. This is a quote, normally with margins.
This is a quote, normally with margins. This is a quote, normally with margins.
\end{quote}

\end{document}

在此处输入图片描述

(您也可以使用两个引号环境)

相关内容