Latex真實文字寬度小於文檔類文章中的\textwidth,但不在報告中

Latex真實文字寬度小於文檔類文章中的\textwidth,但不在報告中

我在 Latex 中的文字寬度中看到了奇怪的行為。當我使用 \documentclass[a4paper]{article} 時,實際文字寬度並不真正是 \textwidth。如果我在幾何中使用顯示框架,我可以看到這一點。 \documentclass[a4paper]{report} 中不會出現該問題。

範例1:

\documentclass[a4paper]{article} % use larger type; default would be 10pt
\usepackage[top=1in, bottom=1in, left=0.5in, right=0.5in,showframe]{geometry} % to change the page dimensions top=1in, bottom=1in, left=0.5in, right=0.5in,
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{array}

\title{TEST}
\author{?}

\begin{document}
\maketitle
\abstract{???}
\tableofcontents
\newpage


\section{Introduction}\label{sec:Introdu}
\lipsum

\end{document}

範例2:

\documentclass[a4paper]{report} % use larger type; default would be 10pt
\usepackage[top=1in, bottom=1in, left=0.5in, right=0.5in,showframe]{geometry} % to change the page dimensions top=1in, bottom=1in, left=0.5in, right=0.5in,
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{array}

\title{TEST}
\author{?}

\begin{document}
\maketitle
\abstract{???}
\tableofcontents
\newpage


\section{Introduction}\label{sec:Introdu}
\lipsum

\end{document}

文章

報告

答案1

在文章類摘要中,是一個以較窄寬度排版摘要的環境。\abstract相當於\begin{abstract}你永遠不會真正結束摘要,因此整個文件以較窄的寬度排版。

使用

\begin{abstract} 
... 
 \end{abstract} 

相關內容