为什么 LaTeX 文档的顶部有一个巨大的 space?
Why do LaTeX documents have a whacking great big space at the top?
我对 LaTeX 非常陌生,但注意到在我看到的 LaTeX 文档示例中,编译后的 pdf 文件的顶部总是有大量空行。似乎没有人对此说一句话!这是某种学术会议吗?
这是一个例子:
\documentclass[]{article}
\usepackage{graphicx}
\title{Here is my title}
\author{Kevin Wright}
\begin{document}
\maketitle
\begin{abstract}
This is my abstract stuff
\end{abstract}
hello $\sqrt{x+y-10}$
\end{document}
是的,默认情况下 文章 class 在论文标题上方使用了很多白色space。如果用单独的扉页大概60分吧。
关于常规页面顶部的 space,
将 \usepackage{layout}
添加到您的示例中,并在 \end{document}
之前添加:
\section{Layout}
\layout
现在处理并查看文档,您将确切地看到页面顶部的 space 由什么组成。
如果你想修改它,看看例如geometry
和 fancyhdr
包。
我对 LaTeX 非常陌生,但注意到在我看到的 LaTeX 文档示例中,编译后的 pdf 文件的顶部总是有大量空行。似乎没有人对此说一句话!这是某种学术会议吗?
这是一个例子:
\documentclass[]{article}
\usepackage{graphicx}
\title{Here is my title}
\author{Kevin Wright}
\begin{document}
\maketitle
\begin{abstract}
This is my abstract stuff
\end{abstract}
hello $\sqrt{x+y-10}$
\end{document}
是的,默认情况下 文章 class 在论文标题上方使用了很多白色space。如果用单独的扉页大概60分吧。
关于常规页面顶部的 space,
将 \usepackage{layout}
添加到您的示例中,并在 \end{document}
之前添加:
\section{Layout}
\layout
现在处理并查看文档,您将确切地看到页面顶部的 space 由什么组成。
如果你想修改它,看看例如geometry
和 fancyhdr
包。