几何图形向我展示的显示框选项是什么?

几何图形向我展示的显示框选项是什么?

我编写了一份文档,以 \usepackage[showframe]{geometry}生成下面的文档,其中用红色标注了一些感兴趣的维度。维度a和之间b,或g和之间有什么区别h?基本上,来自显示框架的线条表示什么?我原以为边距top应该是a+b而不是两个不同的维度。

在一个上一个问题我被告知如何控制每个维度,这里是供参考的链接。

在此处输入图片描述

以下是生成此文档的 MWE:

% arara: pdflatex
\documentclass[10pt,twocolumn]{article}
\usepackage[margin=0.5in,showframe]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{authblk}
\usepackage{setspace}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{helvet}
\usepackage{lipsum}

\makeatletter
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
    \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
    \lineskip .5em%
    \begin{tabular}[t]{c}%
        \baselineskip=12pt
        \@author
    \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
\end{center}%
\par
\vskip 1.5em}
\makeatother

\begin{document}
    \large
    \title{Title}
    \scriptsize
    \setstretch{0.1}
    \author[1]{Author 1}
    \author[2]{Author 2}
    \author[3]{Author 3}
    \author[4]{Author 4}
    \author[5]{Author 5}
    \author[1]{Author 6}
    \author[1]{Author 7}
    \author[1]{Author 8}
    \author[1]{Author 9}
    \author[1]{Author 10}
    \author[1]{Author 11}
    \author[1]{Author 12}
    \author[1]{Author 13}
    \author[1]{Author 14}
    \author[1]{Author 15}
    \author[1]{Author 16}
    \author[1]{Author 17}
    \author[1]{Author 18}
    \author[1]{Author 19}
    \author[1]{Author 20}
    \author[1]{Author 21}
    \author[1]{Author 22}
    \author[1]{Author 23}
    \author[1]{Author 24}
    \author[1]{Author 25}
    \author[1]{Author 26}
    \author[1]{Author 27}
    \author[1]{Author 28}
    \author[1]{Author 29}
    \affil[1]{Affiliation 1}
    \affil[2]{Affiliation 2}
    \affil[3]{Affiliation 3}
    \affil[4]{Affiliation 4}
    \affil[5]{Affiliation 5}
    \date{}
    {\let\clearpage\relax%
    \maketitle }
    \lipsum[1-10]
\end{document}

答案1

好吧,请检查包的文档geometry。在第 3 页上,您将找到以下图片:

文档图像

你可以看到

  • 你的 g) 类似于marginparsep
  • 你的 h) 类似于marginparwidth
  • 你的 b) 类似于headsep
  • 你的a)是类似或更好的部分headheight

由于您给出的边距(对于topbottom和)非常小(0.5 英寸) leftright因此您无法在文档中打印完整headmarginal note...

请查看以下 MWE,其中我更改了geometryheadsep中的值marginparsep

\documentclass[10pt,twocolumn]{article}
\usepackage[%
  margin=0.5in,
  headsep=3mm, % <======================================================
  marginparsep=3mm, % <=================================================
  showframe
]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{authblk}
\usepackage{setspace}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{helvet}
\usepackage{lipsum}

\makeatletter
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
    \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
    \lineskip .5em%
    \begin{tabular}[t]{c}%
        \baselineskip=12pt
        \@author
    \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
\end{center}%
\par
\vskip 1.5em}
\makeatother

\begin{document}
    \large
    \title{Title}
    \scriptsize
    \setstretch{0.1}
    \author[1]{Author 1}
    \author[2]{Author 2}
    \author[3]{Author 3}
    \author[4]{Author 4}
    \author[5]{Author 5}
    \author[1]{Author 6}
    \author[1]{Author 7}
    \author[1]{Author 8}
    \author[1]{Author 9}
    \author[1]{Author 10}
    \author[1]{Author 11}
    \author[1]{Author 12}
    \author[1]{Author 13}
    \author[1]{Author 14}
    \author[1]{Author 15}
    \author[1]{Author 16}
    \author[1]{Author 17}
    \author[1]{Author 18}
    \author[1]{Author 19}
    \author[1]{Author 20}
    \author[1]{Author 21}
    \author[1]{Author 22}
    \author[1]{Author 23}
    \author[1]{Author 24}
    \author[1]{Author 25}
    \author[1]{Author 26}
    \author[1]{Author 27}
    \author[1]{Author 28}
    \author[1]{Author 29}
    \affil[1]{Affiliation 1}
    \affil[2]{Affiliation 2}
    \affil[3]{Affiliation 3}
    \affil[4]{Affiliation 4}
    \affil[5]{Affiliation 5}
    \date{}
    {\let\clearpage\relax%
    \maketitle }
    \lipsum[1-10]
\end{document}

结果改变如下:

生成的 pdf

正如您所看到的,geometry根据选项中给定的值计算其他值geometry......

相关内容