[英]Latex Indentation
I have a list which I want to indent from the section title. 我有一个要从节标题缩进的列表。 I have tried \\indent
and \\hspace{1cm}
without success. 我尝试了\\indent
和\\hspace{1cm}
没有成功。
Here is my code 这是我的代码
\vspace{0.2in}
\section{Affiliations}
\vspace{0.1in}
\indent The American Geophysical Union.\\
\hspace{1cm} The Seismological Society of America.
For consistent indentation of a "somewhat list-like structure", use adjustwidth
from changepage
: 为了一致缩进“类似列表的结构”,请使用changepage
adjustwidth
:
\documentclass{article}
\usepackage{changepage}
\begin{document}
\section{Affiliations}
\begin{adjustwidth}{1cm}{0pt}
\setlength{\parindent}{0pt}%
The American Geophysical Union.
The Seismological Society of America.
\end{adjustwidth}
\end{document}
However, I'd suggest a regular list-like structure like itemize
: 但是,我建议使用像itemize
这样的常规列表式结构:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{Affiliations}
\begin{itemize}[leftmargin=1cm]
\item The American Geophysical Union.
\item The Seismological Society of America.
\end{itemize}
\end{document}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.