2010-11-01 22 views
12

मुझे अपने दस्तावेज़ (उपखंड, विशिष्ट होने के लिए) के केवल एक खंड में इंडेंटेशन अक्षम करने की आवश्यकता है। मैं उसे कैसे कर सकता हूँ?लाटेक्स में विशेष अनुभाग में इंडेंटेशन को अक्षम कैसे करें?

इंडेंट फर्स्ट पैकेज द्वारा डिफ़ॉल्ट इंडेंटेशन प्रदान किया जाता है।

उत्तर

17

यह इस बात पर निर्भर करता है कि आप इंडेंटेशन को कितना व्यापक रूप से खत्म करना चाहते हैं। लेकिन पहली बात मैं कोशिश करता हूँ 0pt करने के लिए \parindent स्थापित कर रही है:

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. 
+0

यह मेरे लिए काम करता है। धन्यवाद। –

+3

मुझे लगता है कि लाटेक्स में आपको वास्तव में '\ setlength {\ parindent} {0pt}' का उपयोग करना चाहिए। 'parindent0pt' शुद्ध टीएक्स है और इसका उपयोग लाटेक्स को भ्रमित कर सकता है। – Nikratio

+0

@ निक्रैरियो: यह लाटेक्स को भ्रमित नहीं करेगा, लेकिन आप जैसा कहते हैं \ setlength का उपयोग कर सकते हैं। – godbyk

3

\ noindent मुझे लगता है कि आप क्या चाहते हैं।

+6

\ noindent खरोज को निष्क्रिय केवल एक पैराग्राफ में। –

3

एक वातावरण है कि सेट मांगपत्र एक संभव समाधान हो सकता है?

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

2010 से पहले से ही स्वीकृत उत्तर के साथ सवाल क्यों आपको लगता है कि एक और जवाब चाहिए? –

+1

@ माइकल: यदि आप पर्यावरण का उपयोग करना चाहते हैं तो यह उपयोगी है। – tricasse

संबंधित मुद्दे