浓缩乳胶标题

浓缩乳胶标题

我希望我的 Latex 标题能够缩短,以便它在页面上占用更少的空间。

这是我当前的来源:

\documentclass[12pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{graphicx,ctable,booktabs}

% ----------------------------------------------------------------------------------------------------------------------------------------------                            
% Commands                                                                                                                                                                  
%-----------------------------------------------------------------------------------------------------------------------------------------------                            
\newcommand{\justif}[2]{&{#1}&\text{#2}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\begin{document}
% --------------------------------------------------------------                                                                                                            
% Start here                                                                                                                                                                
% --------------------------------------------------------------                                                                                                            
\title{This is a title that need not take up half the page! (How do I fix this?)}%replace X with the appropriate number                                                     

 %if necessary, replace with your course title                                                                                                                              
\maketitle
This is the rest of my document...
\end{document}
  1. 如何让标题占用更少的空间?

如果您需要更多信息,请告诉我。提前谢谢!

答案1

您可以\@maketitle按照 中的定义重新定义article.cls,并对跳过、字体和任何其他您希望的元素进行一些更改,以减少为标题保留的间距。在下面的示例代码中,我展示了一种可能的修改(原始代码已标记%ORIGINAL,行已更改,带有%NEW);showframe 包用于生成一个框架作为视觉指南:

\documentclass{article}
\usepackage{showframe}

\makeatletter
\def\@maketitle{%
  \newpage
  %\null%ORIGINAL
  %\vskip 2em%ORIGINAL
  \begin{center}%
  \let \footnote \thanks
    {\Large\@title \par}%ORIGINAL: \LARGE
    \vskip 0.3em%NEW
    %\vskip 1.5em%ORIGINAL
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 0.3em%NEW
    %\vskip 1em%ORIGINAL
    {\large \@date}%
  \end{center}%
  \par
  \vskip 0.5em%ORIGINAL
  %\vskip 1.5em%ORIGINAL
}
\makeatother
\title{This is a title that does not take up half the page! (You can introduce further modifications)}

\begin{document}

\maketitle
This is the rest of my document...

\end{document}

在此处输入图片描述

另一种选择是根本不使用\maketitle,而是根据所需的规格从头开始设计标题。

答案2

使用titling包:

\documentclass[12pt]{article}

\usepackage[margin=1in,showframe]{geometry}

\usepackage{titling}

\pretitle{\begin{center}\large}
\posttitle{\end{center}}
\preauthor{\begin{center}\normalsize}
\postauthor{\end{center}}
\predate{\begin{center}\footnotesize}
\postdate{\end{center}}
\setlength{\droptitle}{-40pt}

\begin{document}

\title{This is a title that need not take up half the page!
       (How do I fix this?)}
\author{A. U. Thor}

\maketitle

This is the rest of my document...

\end{document}

在此处输入图片描述

相关内容