
MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph. \\
\input{some_figure}
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}
donde some_figure.txt
contiene
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
El salto de línea \\
después del "Segundo párrafo (largo)". provoca una sangría automática en la línea siguiente "Tercer párrafo (largo)". como se puede ver en la siguiente figura.
¿Hay alguna manera de evitar/deshabilitar (automáticamente) estas sangrías?
Normalmente me muevo \input{some_figure}
al principio o al final de una sección para evitar este problema. Sin embargo, si el texto se vuelve demasiado grande, esta no es realmente una opción.
Respuesta1
Si te refieres a "párrafos" reales, sigue el consejo de egreg ("No utilices \\
el final de los párrafos, sino una línea en blanco"). Pero si simplemente está forzando saltos de línea, entonces el problema no es de sangría, sino de espacios perdidos.
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx,filecontents}
\begin{filecontents*}{some_figure}
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
\end{filecontents*}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph. \\
\input some_figure \unskip
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}
Alternativamente,
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx,filecontents}
\begin{filecontents*}{some_figure}
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\end{figure}
\end{filecontents*}
\begin{document}
\section{Some Section}
First (long) paragraph. \\
Second (long) paragraph.
\input some_figure \\
Third (long) paragraph. \\
Fourth (long) paragraph.
\end{document}