2010-11-01 3 views

Répondre

17

Cela dépend de la façon dont vous voulez éradiquer l'indentation. Mais la première chose que je vais essayer est mise \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. 
+0

Cela fonctionne pour moi. Je vous remercie. –

+3

Je pense que dans LaTeX, vous devriez vraiment utiliser '\ setlength {\ parindent} {0pt}' à la place. '\ parindent0pt' est du pur TeX et son utilisation peut confondre LaTeX. – Nikratio

+0

@Nikratio: Il ne confondra pas LaTeX, mais vous pouvez utiliser \ setlength comme vous le dites. – godbyk

3

\ noindent Je pense que c'est ce que vous voulez.

+6

\ noindent désactive indentation seulement dans un paragraphe. –

3

Un environnement qui fixe le tiret pourrait être une solution possible? Vous définissez dans le préambule comme:

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

Dans votre document vous écrire quelque chose comme:

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

Ou si vous voulez un grand tiret du paragraphe

\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

Pourquoi pensez-vous qu'une question avec une réponse déjà acceptée depuis 2010 a besoin d'une autre réponse? –

+1

@ Michał: Ceci est utile si vous voulez utiliser un environnement. – tricasse

Questions connexes