将整个段落移动一段距离的正确方法是什么?不仅仅是缩进。
在代码中,我展示的前两行是好的,但是当它是一个段落时,人们可以看到只是缩进被修改了。因此,\parindent 不是答案。
\documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
\usepackage{blindtext}
\title{Documento de Prueba}
\author{Martin}
\begin{document}
\maketitle
\vspace{18cm}
\section{seccion 3}
{\setlength{\parindent}{2cm}
\textbf{One line One line One line One line One line One line}
One line One line One line One line One line One line
\blindtext
}
\end{document}
答案1
看看以下建议是否适合您:
\documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
%---------------- Show page layout. Don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{blindtext}
\usepackage[strict]{changepage}
\title{Documento de Prueba}
\author{Martin}
\begin{document}
\maketitle
\vspace{18cm}
\section{seccion three}
\begin{adjustwidth}{2cm}{}\setlength\parindent{0pt}
\textbf{One line One line One line One line One line One line}
One line One line One line One line One line One line
\blindtext
\end{adjustwidth}
\blindtext
\blindtext
\end{document}
(红线显示部分页面布局)
答案2
这个怎么样?
\documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
\usepackage{quoting}
\usepackage{blindtext}
\title{Documento de Prueba}
\author{Martin}
\begin{document}
\maketitle
\vspace{18cm}
\section{seccion 3}
\begin{quoting}[leftmargin=5\parindent,rightmargin=0pt]
\textbf{One line One line One line One line One line One line}
One line One line One line One line One line One line
\blindtext
\end{quoting}
\end{document}