[英]Remove Extra Space After Each Paragraph in LaTex
我正在使用报告 class 在 LaTex 中写我的论文。 我必须使用我使用\doublespacing
的双倍间距来编写它。 但是,我在每个段落之后都得到了一个额外的空间,比我想要减少的正常双倍空间要多。
我试过\vspace*{-\baselineskip}
, \setlength{\parskip}{-\baselineskip}
和\setlength{\parskip}{-0.5\baselineskip}
但他们都没有工作。
我什至试图完全删除{\parskip}
,但它仍然没有用。 我正在展示我的文档看起来像段落之间的额外空间的示例。
有什么建议么?
这些是我正在使用的包和命令
\documentclass[12pt,letterpaper,notitlepage]{report}
% To prevent the widows and orphans
\widowpenalty=10000
\clubpenalty=10000
\usepackage{indentfirst}
\usepackage{multirow}
\usepackage[autopunct=true]{csquotes}
\usepackage[none]{hyphenat}
\usepackage{anysize} % Set up the margin: similar to GEOMETRY
\usepackage{setspace} % Line spacing
\usepackage{parskip}
\usepackage{titletoc}
\usepackage[compact]{titlesec} % Title
\usepackage{textcomp} % Just for the copyright symbol....
\usepackage{afterpage}
\usepackage{apacite} % APA style references
\usepackage[titletoc]{appendix} % Appendices
\usepackage{fancyhdr} % Page numbering position
\usepackage[top=1.0in, bottom=1.0in, left=1.5in, right=1.0in]{geometry}
\usepackage{enumerate} % For customized enumeration
\usepackage[normalem]{ulem} % Underline
\usepackage{graphicx} % Insert graphs
\usepackage{url} % Insert URL in the text
%\usepackage{subfig} % Have subfigures
\usepackage{subfigure}
%\usepackage[format=plain]{caption} %to edit captions: don't have figure captions hang
\usepackage{caption}
\AtBeginCaption{\doublespacing} % For the caption of tables/figures
\captionsetup[figure]{labelfont=it,labelsep=period,singlelinecheck=false}
\captionsetup[subfigure]{labelsep=space,labelfont=it,justification=justified,
singlelinecheck=false,font=doublespacing,position=below}
\captionsetup[table]{aboveskip=0pt,belowskip=12pt, justification=raggedright,
labelsep=period,singlelinecheck=false,textfont=it,labelsep=newline}
\usepackage{amsmath,amsthm, amssymb,commath}
\renewcommand*\theequation{\textup{\arabic{chapter}.\arabic{equation}}}
\renewcommand*\thetable{\textup{\arabic{chapter}.\arabic{table}.}}
\renewcommand*\thefigure{\textup{\textit{\arabic{chapter}.\arabic{figure}}}}
\usepackage{adjustbox} % Fit the table in one page
\usepackage[super]{nth} % For the "th" in superscript
\usepackage{chngcntr}
\usepackage{natbib}
\usepackage{lipsum}
\usepackage[titles,subfigure]{tocloft} % For Table of Contents
\usepackage{booktabs} % For makeing the table layout
\usepackage{rotating} % For the tables in landscape
\usepackage{arydshln} % Have dashline in Table environment
\usepackage[encapsulated]{CJK} % Chinese
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage{listings}
\usepackage[flushleft]{threeparttable} % To make footnote for the table
\usepackage{float}
\usepackage{enumitem} % For the margin of the ENUMERATION
\usepackage{adjustbox}
\usepackage{pdfpages} % for pdf
\usepackage{mathptmx} % for times new roman
\usepackage{parskip}
\theoremstyle{definition}
\newtheorem{theo}{Theorem}
\theoremstyle{definition}
\newtheorem{prop}{Proposition}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\theoremstyle{definition}
\newtheorem{eg}{Example}
% % CHAPTER
% Center the chapter title
\renewcommand{\chaptername}{CHAPTER}{\normalsize}
\titleformat{\chapter}[display]
{\normalfont\normalsize\bfseries\centering}{\chaptertitlename\ \thechapter}{0pt}{\normalsize\uppercase}
\titlespacing*{\chapter}{0pt}{1in}{0pt} % 1st page of each new section
%starts 2in from top of page - Don't ask me why it's 0.5in
% % SECTION
% Change the font size for heading and section
\titleformat{\section}{\normalsize\bfseries\centering\singlespacing}{\thesection}{12pt}{\normalsize}
\titlespacing*{\section}{0pt}{0pt}{0pt}
% % SUBSECTION
\titleformat{\subsection}
{\normalfont\normalsize\bfseries\centering\singlespacing}{\thesubsection}{12pt}{}
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
% % SUBSUBSECTION
\titleformat{\subsubsection}
{\normalfont\normalsize\bfseries\singlespacing}{\thesubsubsection}{12pt}{}
\titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
\doublespacing
\setlength{\parindent}{0.5in}
\begin{document}
\begin{flushleft} % Remove the justification and make it left-aligned)
\pagenumbering{gobble}
您可以通过多次加载parskip
package 来添加此空间。 尝试使用和不使用parskip
package 的示例:
\documentclass{report}
%\usepackage{parskip}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\lipsum[2]
\end{document}
您可以通过以下方式避免此类问题:
只装载你真正需要的包裹,而不是只装载除了厨房水槽之外的所有东西
不多次加载相同的包
我能够解决我在输入章节之前而不是在文档开头添加\setlength{\parskip}{0pt}
的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.