删除摘要的左右缩进

删除摘要的左右缩进

尝试删除由于某些未知原因出现在摘要周围的缩进。MWE 如下:

\documentclass[a4paper,oneside,10pt]{article}
\usepackage[english]{babel} % formatting rules for the English language
\usepackage[T1]{fontenc} % proper formatting for accented characters and non-standard characters such as pipelines
\usepackage{mathptmx}% fot a font which looks like Times New Roman (serif/roman)
%\usepackage{tgtermes}% an altternative
\usepackage[scaled=.90]{helvet}% for a font which looks like Helvetica, scaled to match TNR (sans)
%\usepackage{tgheros}% an altternative
\usepackage{courier}% for a font which looks like Courier (typewriter/monospaced)
%\usepackage{tgcursor}% an altternative
\usepackage[top=15mm, bottom=15mm, left=30mm, right=30mm]{geometry} % page layout
\setlength{\parindent}{0mm} % Do not indent the 1st line of a paragraph.
\setlength{\parskip}{3mm}   % Add space between paragraphs.


%% redefine \footnoterule for using the whole text width
\renewcommand\footnoterule{%
  \kern-3\p@\hrule\@width\columnwidth\kern 2.6\p@
}

\begin{document}

\renewcommand*\abstractname{\flushleft\textbf{ABSTRACT}\hfill}
\begin{abstract}
\noindent This is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstract
\end{abstract}

Some other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuff
\end{document} 

答案1

使用abstract允许通过\setlength定义设置缩进/边距的包。请参阅http://mirrors.ctan.org/macros/latex/contrib/abstract/abstract.pdf用于文档。

在这种情况下,我已经设置\absleftindent\absrightindent0 毫米.随意改变。

\documentclass[a4paper,oneside,10pt]{article}
\usepackage[english]{babel} % formatting rules for the English language
\usepackage[T1]{fontenc} % proper formatting for accented characters and non-standard characters such as pipelines
\usepackage{mathptmx}% fot a font which looks like Times New Roman (serif/roman)
%\usepackage{tgtermes}% an altternative
\usepackage[scaled=.90]{helvet}% for a font which looks like Helvetica, scaled to match TNR (sans)
%\usepackage{tgheros}% an altternative
\usepackage{courier}% for a font which looks like Courier (typewriter/monospaced)
%\usepackage{tgcursor}% an altternative
\usepackage[top=15mm, bottom=15mm, left=30mm, right=30mm]{geometry} % page layout

%%%% Additions for TeX.StackExchange
\usepackage{abstract}
\setlength{\absleftindent}{0mm}
\setlength{\absrightindent}{0mm}


\setlength{\parindent}{0mm} % Do not indent the 1st line of a paragraph.
\setlength{\parskip}{3mm}   % Add space between paragraphs.


%% redefine \footnoterule for using the whole text width
\renewcommand\footnoterule{%
  \kern-3\p@\hrule\@width\columnwidth\kern 2.6\p@
}

\begin{document}

\renewcommand*\abstractname{\flushleft\textbf{ABSTRACT}\hfill}
\begin{abstract}
\noindent This is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstractThis is my abstract
\end{abstract}

Some other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other stuffSome other

 stuff
\end{document} 

在此处输入图片描述

相关内容