[英]How to disable automatic indentation in latex?
I want to create a pdf in which there are short texts followed by images.我想创建一个 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}
My problem is that LaTex automatically indents "A text".我的问题是 LaTex 自动缩进“A text”。 "More text" is not indented. “更多文本”不缩进。 If "A text" comes after \section*{} it is also not indented.如果 "A text" 出现在 \section*{} 之后,它也不会缩进。
You can control the width of the indentation by changing \parindent
您可以通过更改\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}
(you shouldn't abuse \\
for line breaks, leave an empty line instead) (你不应该滥用\\
换行,而是留下一个空行)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.