仅在第一行不缩进

仅在第一行不缩进

我正在尝试在文本中重现以下格式,其中我不必只缩进第一行。

在此处输入图片描述

使用\noindent我可以格式化第一行,但我不知道如何缩进另一行。我该怎么办?

答案1

itemize与空标签一起使用:

\documentclass{article}
\usepackage{enumitem}

\usepackage{showframe} % just for the example

\begin{document}

\begin{itemize}[
  label=,
  leftmargin=2em,
  itemindent=-2em,
  nosep,
]

\item Barone G. (2012) Inquinamento atmosferico: il Progetto Regionale sulla Qualità
dell'Aria in Campania; il contributo della Modellistica numerica. Rend.\ Acc.\ Fis.,\ Mat.\ di
Napoli, LXXIX, 11-18.

\item Barone G. (2012) Recente accumulo di metano in atmosfera: origini, influenza sul clima.
Acc.\ Sc.\ Fis.,\ Mat.\ di Napoli. Conversazione del 9/12.

\item Barone G. (2013) Formazione e preservazione di molecole organiche nelle condizioni
estreme del Sistema Solare. Rend.\ Acc.\ Sc.\ Fis.,\ Mat.\ di Napoli, LXXX, 41-50.

\item Barone G. (2014) Nuove informazioni dalle missioni spaziali sulle basi chimiche delle 
origini della vita. Acc.\ Sc.\ Fis.,\ Mat.\ di Napoli. Conversazione del 7/2.

\item Barone G. (2014) L'acqua: le proprietà chimiche e fisiche e interazioni con molecole 
biologiche. Acc.\ Sc.\ Fis.\ Mat. di Napoli. e Acc.\ Pontaniana: XIV Giornata mondiale
dell'acqua, 28/3.

\end{itemize}

\end{document}

请检查一致性:三个条目在“Fis.”后有一个逗号,但最后一个没有。

showframe包仅用于显示文本块边界。

在此处输入图片描述

答案2

您可以使用描述环境。加载包枚举项因此您可以轻松更改格式和样式。

如果描述不适合您,您可以加载包悬挂,并使用compacthang环境。

示例 1

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}
\usepackage{hang}

\begin{document}

\begin{compacthang}
\item Barone G. (2012)  This is a text without meaning produced to force a linebreak or two. Is it long enough?
\item Barone G. (2012) This is a text without meaning produced to force a linebreak or two. Is it long enough? And here I add more text without meaning, so you can see three lines of text''
\item Barone G. (2012) This is a text without meaning produced to force a linebreak or two. Is it long enough?
\item Barone G. (2012) This is a text without meaning produced to force a linebreak or two. Is it long enough?
\end{compacthang}

\end{document}

示例 2

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}

\begin{document}

\begin{description}[itemsep=0pt, font=\normalfont]
\item[Barone G. (2012)] The option font=normalfont remove the bold letters. This is a text without meaning produced to force a linebreak or two. Is it long enough?
\item[Barone G. (2012)] This is a text without meaning produced to force a linebreak or two. Is it long enough? And here I add more text without meaning, so you can see three lines of text''
\item[Barone G. (2012)] This is a text without meaning produced to force a linebreak or two. Is it long enough?
\item[Barone G. (2012)] This is a text without meaning produced to force a linebreak or two. Is it long enough?
\end{description}

\end{document}

相关内容