段落缩进不起作用

段落缩进不起作用

我已经包含了缩进每段第一行的包,但它在我的论文中不起作用。任何建议都将不胜感激。

\documentclass[letterpaper,hidelinks,12pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[nottoc]{tocbibind}
\usepackage{breakcites}
\usepackage{float}

%Import the natbib package and sets a bibliography  and citation styles
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}} %Citation-related commands
\usepackage{etoolbox}
\AtBeginEnvironment{thebibliography}{\linespread{1}\selectfont}

\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\usepackage{amssymb, amsfonts, amsmath}
\usepackage{bm}
\usepackage[margin=1in]{geometry} % full-width
    \topskip        =   20pt
    \parskip        =   10pt
    \parindent      =   0 pt
    \baselineskip   =   15pt



\usepackage{setspace}               % line spacing
    \onehalfspacing
\usepackage{adjustbox}              % resizing
\usepackage{caption}                % to reset the cations etc 
\usepackage{rotating}               % for the sidewaystable
\usepackage{booktabs}               % neatly formatting lines
\usepackage{dcolumn}                % aligning decimals
    \newcolumntype{d}[1]{D{.}{.}{#1}}
\usepackage{natbib}                 % bibliography
%% \bibliographystyle{plainnat}

\newcommand{\sym}[1]{\rlap{#1}} % for the stars


\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage{graphics}
\usepackage{subcaption}
\usepackage{lscape}
\usepackage{amsmath}
\usepackage{mwe}
\usepackage{ragged2e}
\usepackage{setspace}
\usepackage{chngcntr}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{autobreak}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{indentfirst}

答案1

更合理的示例文件是

\documentclass{article}

    \topskip        =   20pt
    \parskip        =   10pt
    \parindent      =   0 pt
    \baselineskip   =   15pt

\begin{document}

One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 


One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
\end{document}

制作

在此处输入图片描述

如果你删除设置\parskip\parindent你将获得默认的缩进布局

\documentclass{article}

    \topskip        =   20pt
%    \parskip        =   10pt
%    \parindent      =   0 pt
    \baselineskip   =   15pt

\begin{document}

One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 


One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
One two three. One two three. One two three. 
\end{document}

在此处输入图片描述

一般情况下,避免随意将行复制到前言中。始终从空的前言开始,并在需要时添加包。一旦您获得包含大量不可用代码(例如重复的包)的过大前言,就很难发现影响文档的代码。

相关内容