垂直方向上一行的间距是多少?

垂直方向上一行的间距是多少?

一行的垂直间距是多少?例如“1.5em”?

答案1

这通常是从一行的基线到另一行的基线测量的,或者由 给出\baselineskip,并且取决于加载/指定的字体大小以及当前活动的字体大小。例如,以下\baselineskips 与类加载的相应默认字体大小相关联:

  • 10pt 默认字体意味着 12pt \baselineskip(见size10.clo(英文):

  • 11pt 默认字体意味着 13.6pt \baselineskip(见size11.clo(英文):

  • 12pt 默认字体意味着 14.5pt \baselineskip(见size12.clo

然而,在 11pt 默认字体下,\LARGE设置字体大小为 17.28pt长度为\baselineskip22pt。点的长度转换在pt 转换为 mm 或 cm

\baselineskip您可以通过选择字体来调整行距(或)

答案2

\documentclass[a5paper]{article}
\usepackage{xcolor}
\def\someText{And now follows some text to
show the distance of lines. The value is saved in \texttt{\textbackslash baselineskip}.}
\begin{document}
\the\baselineskip%%% The current distance between two baselines 
\vbox to 0pt {\hbox to 0pt {\textcolor{red}{\rule[0pt]{1cm}{\baselineskip}}}} \someText

\small\the\baselineskip
\vbox to 0pt {\hbox to 0pt {\textcolor{red}{\rule[0pt]{1cm}{\baselineskip}}}}  \someText

\tiny\the\baselineskip
\vbox to 0pt {\hbox to 0pt {\textcolor{red}{\rule[0pt]{1cm}{\baselineskip}}}}  \someText

\huge\the\baselineskip
\vbox to 0pt {\hbox to 0pt {\textcolor{red}{\rule[0pt]{1cm}{\baselineskip}}}}  \someText
\end{document}

在此处输入图片描述

相关内容