2010-11-01 42 views

Respuesta

17

Depende de qué tan penetrante desee erradicar la sangría. Pero lo primero que iba a tratar es la creación \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

Esto funciona para mí. Gracias. –

+3

Creo que en LaTeX realmente debería usar '\ setlength {\ parindent} {0pt}' en su lugar. '\ parindent0pt' es TeX puro y su uso puede confundir a LaTeX. – Nikratio

+0

@Nikratio: No confundirá a LaTeX, pero puede usar \ setlength como usted dice. – godbyk

3

\ noindent Creo que es lo que quieres.

+6

\ noindent desactiva muesca solo en un párrafo –

3

Un entorno que establece el guión podría ser una posible solución? Se define en el preámbulo como:

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

En el documento que a continuación, escribir algo como:

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

O si quieres una gran sangría de párrafo

\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

¿Por qué piensas que la pregunta con una respuesta ya aceptada desde 2010 necesita otra respuesta? –

+1

@ Michał: esto es útil si quiere usar un entorno. – tricasse

Cuestiones relacionadas