Một môi trường mà bộ thụt lề có thể là một giải pháp khả thi? Bạn định nghĩa nó trong lời mở đầu như sau:
\newlength\mystoreparindent
\newenvironment{myparindent}[1]{%
\setlength{\mystoreparindent}{\the\parindent}
\setlength{\parindent}{#1}
}{%
\setlength{\parindent}{\mystoreparindent}
}
Trong tài liệu của bạn thì bạn sẽ viết một cái gì đó như:
\begin{myparindent}{0pt}
This paragraph is not indented, ehm well, actually it is indented by 0pt
which is the same as not indented.
And this paragraph neither\ldots
\end{myparindent}
Hoặc nếu bạn muốn có một thụt lề đoạn lớn
\begin{myparindent}{5cm}
The first line of this paragraph is indented by 5 cm.
And so is the first line of the next paragraph.
\end{myparindent}
Nguồn
2015-07-03 14:12:29
Điều này phù hợp với tôi. Cảm ơn bạn. –
Tôi nghĩ rằng trong LaTeX bạn thực sự nên sử dụng '\ setlength {\ parindent} {0pt}' thay thế. '\ parindent0pt' là TeX thuần túy và việc sử dụng nó có thể gây nhầm lẫn cho LaTeX. – Nikratio
@Nikratio: Nó sẽ không gây nhầm lẫn cho LaTeX, nhưng bạn có thể sử dụng \ setlength như bạn nói. – godbyk