Как отключить отступ в определенном разделе в LaTeX? - PullRequest
13 голосов
/ 02 ноября 2010

Мне нужно отключить отступ только в одном разделе моего документа (в частности, подразделе). Как я могу это сделать?

Отступ по умолчанию предоставляется пакетом indentfirst.

Ответы [ 3 ]

22 голосов
/ 02 ноября 2010

Это зависит от того, насколько широко вы хотите искоренить отступы. Но первое, что я попробую, это установить \parindent в 0pt:

Some text with normal indentation...

{\parindent0pt % disables indentation for all the text between { and }

Text with no indentation.

Still no indentation.

}% restore indentation

Indented again.
6 голосов
/ 03 июля 2015

Среда, которая устанавливает отступ, может быть возможным решением?Вы определяете его в преамбуле следующим образом:

\newlength\mystoreparindent
\newenvironment{myparindent}[1]{%
\setlength{\mystoreparindent}{\the\parindent}
\setlength{\parindent}{#1}
}{%
\setlength{\parindent}{\mystoreparindent}
}

В своем документе вы должны написать что-то вроде:

\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}

Или, если вы хотите большой отступ абзаца

\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}
3 голосов
/ 02 ноября 2010

\ noindent Я думаю, это то, что вы хотите.

...