如何禁用乳胶中的自动缩进?

Max*_*xxx 5 latex

我想创建一个 pdf 文件,其中有短文本,后跟图像。

\documentclass{article}

\usepackage{graphicx}

\begin{document}
    \section*{some title}
    A text... \\
    More text... \\
    \includegraphics{example.png}
    \newpage
    A text... \\
    More text... \\
    \includegraphics{example.png}
    \newpage
    A text... \\
    More text... \\
    \includegraphics{example.png}
    \newpage
    \section*{some title}
    A text... \\
    More text... \\
    \includegraphics{example.png}
\end{document}
Run Code Online (Sandbox Code Playgroud)

我的问题是 LaTex 自动缩进“A 文本”。“更多文本”没有缩进。如果“A text”出现在 \section*{} 之后,它也不会缩进。

sam*_*ter 10

您可以通过更改来控制缩进的宽度\parindent

\documentclass{article}

\usepackage{graphicx}

\setlength{\parindent}{0pt}

\begin{document}
    \section*{some title}
    A text... 
    
    More text...
    
    \includegraphics{example-image-duck}
    \newpage
    A text... 
    
    More text... 
    
    \includegraphics{example-image-duck}
    \newpage
    A text... 
    
    More text... 
    
    \includegraphics{example-image-duck}
    \newpage
    \section*{some title}
    A text... 
    
    More text... 
    
    \includegraphics{example-image-duck}
\end{document}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

(你不应该滥用\\ 换行符,而是留一个空行)