回答
這取決於你如何普遍地根除縮進。但我想嘗試的第一件事就是設置\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.
\ noindent我認爲是你想要的。
\ noindent,會禁用縮進只有一段。 – 2010-11-01 22:48:08
,設置縮進可能是一個可行的解決方案的環境?
\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}
爲什麼您認爲自2010年以來已接受答案的問題需要另一個答案? – 2015-07-03 14:27:51
@Michał:如果您想使用環境,這非常有用。 – tricasse 2017-06-04 09:38:46
- 1. 如何禁用LaTeX列表項目的縮進?
- 2. 如何縮放UIScrollView的特定部分?
- 3. 如何使文本行的特定部分正確縮進?
- 4. 如何在jsf中禁用應用程序的特定部分?
- 5. 如何以自定義的方式在LaTeX中縮進文本
- 6. JSCS如何禁用代碼規則的特定部分requireDotNotation?
- 7. 如何選擇圖像的特定部分並使用jquery縮放該部分?
- 8. 在Visual Studio 2005中禁用自動縮進特定項目?
- 9. LaTeX:從第二行縮進
- 10. 如何禁用Xcode的自動縮進?
- 11. 如何在LaTeX中控制腳註的縮進?
- 12. 禁用特定UITableView部分的分隔符
- 13. 如何禁用部分ToolStripSplitButton
- 14. 如何禁用特定內部id的外部css?
- 15. CKEditor,如何禁用HTML縮進格式
- 16. 僅對特定文件禁用JSHint縮進檢查
- 17. 如何在LaTeX的下劃線部分使用製表位?
- 18. 如何禁用特定域
- 19. 如何啓用或禁用某個元素特定部分的指針事件?
- 20. 如何使用箭頭鍵選擇時禁用特定的行部分?
- 21. LaTeX中的縮進單詞換行
- 22. 禁用/啓用右鍵點擊html body的特定部分
- 23. 如何僅對列表的特定部分進行排序?
- 24. 如何僅將字符串的特定部分進行識別?
- 25. 如何對特定部分中的行進行排序uitableview
- 26. 如何在特定位置禁用DataTemplate?
- 27. 我如何縮進文本的一部分,在一個UITextView
- 28. 如何渲染ERB縮進在Rails的部分
- 29. 如何在Vim中縮進嵌套的部分HTML標籤?
- 30. 如何禁用UITableView單元格中特定部分的tableViewCell選擇iOS
這適用於我。謝謝。 – 2010-11-02 10:14:38
我認爲在LaTeX中你應該使用'\ setlength {\ parindent} {0pt}'來代替。 '\ parindent0pt'是純TeX,它的使用可能會混淆LaTeX。 – Nikratio 2012-10-11 20:58:43
@Nikratio:它不會混淆LaTeX,但你可以像你說的那樣使用\ setlength。 – godbyk 2012-10-12 00:22:51