如何仅更改一个部分的缩进

如何仅更改一个部分的缩进

问题描述

我想对我的文学部分使用不同的缩进。

现在它看起来是这样的:在此处输入图片描述

编辑:我的MWE

\documentclass[12pt,a4paper]{article}
\usepackage[english, slovene]{babel}     
\usepackage[utf8]{inputenc}    
\usepackage{fontspec}           
\setmainfont{Times New Roman}   
\usepackage{setspace}          
\singlespacing

% Nastavitve strani
\usepackage{geometry}
 \geometry{
 a4paper,
 total={170mm,257mm},
 left=30mm,
 top=30mm,
 right=30mm,
 bottom=30mm,
 marginparwidth=0mm,
 }

\begin{document}
\sloppy 

\section{Other section's style}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla volutpat congue justo, at hendrerit metus dictum sed. Nulla facilisi. 

Suspendisse pretium metus quis purus volutpat aliquam. Integer pellentesque nec mi tempus fermentum. Integer fermentum quam ac nulla euismod, et commodo turpis condimentum. Praesent eu tempor sem. Quisque tristique felis sapien, in scelerisque velit varius euismod. 

Fusce est orci, pellentesque at ex vel, vestibulum luctus risus. Etiam nec dictum ante, et tincidunt enim. Vestibulum vulputate porta leo. Maecenas rutrum turpis a imperdiet luctus. Nunc pretium nibh nec neque iaculis ultrices. Maecenas id malesuada felis. Nullam id mauris eget felis rhoncus tempor. Phasellus quis cursus massa, eget facilisis purus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras rutrum, neque quis laoreet sodales, ligula diam tempor diam, ac viverra velit elit ac risus.

\section{Literatura}
\noindent Vu, T., Hu, B., Munkhdalai, T. in Yu, H. (2018). Sentence simplification with memory-augmented neural networks. \emph{Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers)} (str. 97-85)

\noindent Xu, W., Napoles, C., Pavlick, E., Chen, Q. in Callison-Burch, C. (2016). Optimizing statistical machine translation for text simplification. \emph{Transactions of the Association for Computational Linguistics, 4}, 401-415.


\end{document}

我希望以这样的方式列出参考文献:如果一个参考文献延伸到多行,其缩进会发生变化,如下图所示:在此处输入图片描述 其他部分不应受到影响。

编辑:我正在使用 APA 引用样式。

答案1

我不建议手动进行引用,但这是你的选择。

您可以使用悬挂缩进。

\documentclass[12pt,a4paper]{article}
\usepackage[english, slovene]{babel}     
\usepackage{fontspec}           

% Nastavitve strani
\usepackage{geometry}
\geometry{
 a4paper,
% total={170mm,257mm}, % either this or all margins
 left=30mm,
 top=30mm,
 right=30mm,
 bottom=30mm,
 marginparwidth=0mm,
}

\setmainfont{Times New Roman}

\newcommand{\litem}{%
  \par
  \addvspace{\smallskipamount}
  \hangindent=1em
  \noindent\ignorespaces
}

\begin{document}

\section{Other section's style}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla volutpat 
congue justo, at hendrerit metus dictum sed. Nulla facilisi. 

Suspendisse pretium metus quis purus volutpat aliquam. Integer pellentesque 
nec mi tempus fermentum. Integer fermentum quam ac nulla euismod, et commodo 
turpis condimentum. Praesent eu tempor sem. Quisque tristique felis sapien, 
in scelerisque velit varius euismod. 

Fusce est orci, pellentesque at ex vel, vestibulum luctus risus. Etiam nec 
dictum ante, et tincidunt enim. Vestibulum vulputate porta leo. Maecenas 
rutrum turpis a imperdiet luctus. Nunc pretium nibh nec neque iaculis 
ultrices. Maecenas id malesuada felis. Nullam id mauris eget felis rhoncus 
tempor. Phasellus quis cursus massa, eget facilisis purus. Pellentesque 
habitant morbi tristique senectus et netus et malesuada fames ac turpis 
egestas. Cras rutrum, neque quis laoreet sodales, ligula diam tempor diam, 
ac viverra velit elit ac risus.

\section{Literatura}

\litem Vu, T., Hu, B., Munkhdalai, T. in Yu, H. (2018). 
  Sentence simplification with memory-augmented neural networks.
  \emph{Proceedings of the 2018 Conference of the North American Chapter of 
  the Association for Computational Linguistics: Human Language Technologies, 
  Volume 2 (Short Papers)} (str. 97-85)

\litem Xu, W., Napoles, C., Pavlick, E., Chen, Q. in Callison-Burch, C. (2016).
  Optimizing statistical machine translation for text simplification.
  \emph{Transactions of the Association for Computational Linguistics, 4}, 401-415.

\end{document}

需要注意以下几点:

  1. 您过度指定了geometry参数,我留下了 3cm 的边距。

  2. inputenc不应与 XeLaTeX 或 LuaLaTeX 一起使用。

  3. 我在参考书目项目之间添加了一个小的垂直空间。

在此处输入图片描述

相关内容