除了新段落之外,如何才能使项目中不缩进?

除了新段落之外,如何才能使项目中不缩进?

我想使用item不缩进 except。我希望新行后的行都以新行开始。

在此示例中,当我在换行符后添加一个句子时,它不会以缩进开头。我可以强制段落缩进吗?

documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{enumitem}
\begin{document}
\begin{itemize}[noitemsep,topsep=0pt,wide=0pt,nosep]
    \item I am a very long sentences. I am a very long sentences. I am a very long sentences.
    \item I am a very long sentences. I am a very long sentences. I am a very long sentences.
    I am a very long sentences. I am a very long sentences. I am a very long sentences.

    I am a very long sentences after the new line. I am a very long sentences after the new line.
    \item The end.
\end{itemize}
\end{document}

输出:

• I am a very long sentences. I am a very long sentences. I 
am a very long sentences.
• I am a very long sentences. I am a very long sentences. I 
am a very long sentences. I am a very long sentences. I am 
a very long sentences. I am a very long sentences.
I am a very long sentences after the new line.  I am a very 
long sentences after the new line. 
• The end.

想要的输出:

• I am a very long sentences. I am a very long sentences. I 
am a very long sentences.
• I am a very long sentences. I am a very long sentences. I 
am a very long sentences. I am a very long sentences. I am 
a very long sentences. I am a very long sentences.
    I am a very long sentences after the new line.  I am a 
very long sentences after the new line. 
• The end.

答案1

您可以使用listparindent密钥。在此示例中,我将其设置为与\parindent文档其余部分匹配。

\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{enumitem}
\begin{document}

\begin{itemize}[noitemsep,topsep=0pt,wide=0pt,nosep,listparindent=\parindent]
    \item I am a very long sentences. I am a very long sentences. I am a very long sentences. 

    \item I am a very long sentences. I am a very long sentences. I am a very long sentences.
    I am a very long sentences. I am a very long sentences. I am a very long sentences.

    I am a very long sentences after the new line. I am a very long sentences after the new line.
    \item The end.
\end{itemize}
\end{document}

代码输出

相关内容