[英]How to disable automatic indentation in 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}
我的問題是 LaTex 自動縮進“A text”。 “更多文本”不縮進。 如果 "A text" 出現在 \section*{} 之后,它也不會縮進。
您可以通過更改\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}
(你不應該濫用\\
換行,而是留下一個空行)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.