我想缩进一些引用的内容(左侧缩进 1cm,右侧缩进 1cm),因此我定义了一个新环境(MWE),如下所示
\documentclass[11pt,a4paper,openany]{book}
\usepackage{latexsym}
\usepackage{cases}
\usepackage{indentfirst}
\usepackage{changepage} % for the adjustwidth environment
\newenvironment{qt}{\begin{adjustwidth}{1cm}{1cm}}{\end{adjustwidth}}
\begin{document}
\chapter{Group Theory}
\subsection{Homomorphism from S4 to S3} % not sure if the structure matters in this problem..
It is not hard to check that
To show it is surjective, thanks to the answer provided by @David Wheeler on MSE:
\begin{qt}
No indent here No indent here No indent here No indent here
Let's examine the mapping is surjective surjective surjective surjective surjective surjective surjective surjective surjective surjective
\end{qt}
no indent for the first line..
\end{document}
当我将所有引用的内容放入新定义的qt
环境中时,编译后我注意到引用内容的第一行没有缩进,尽管我使用了该indentfirst
包:
当然,adjustwidth 环境确实起作用了,因为所包含内容的最左边和最右边都缩进了 1cm,如图所示。问题只是第一行(“Denote ....”)没有到位。应该在“Denote”一词之前缩进,就像在所有其他行的第一个单词之前一样,但是没有。
我还尝试在\indent
“Denote”之前插入一个,但仍然没有作用。
那么我该如何使第一行缩进(确切地说,从左侧缩进)?提前致谢!
PS:MWE 终于修好了..很抱歉,这是我第一次写 MWE,我犯了很多错误,直到两分钟前才修好,现在已经好了。
答案1
目前已经有一个内置环境:
\documentclass[11pt,a4paper,openany]{book}
\usepackage{indentfirst}
\begin{document}
\chapter{Group Theory}
\subsection{Homomorphism from $S_4$ to $S_3$}
It is not hard to check that
To show it is surjective, thanks to the answer provided by @David Wheeler on MSE:
\begin{quote}
No indent here No indent here No indent here No indent here
Let's examine the mapping is surjective surjective surjective surjective surjective surjective surjective surjective surjective surjective
\end{quote}
no indent for the first line..
\end{document}