一行的垂直间距是多少?例如“1.5em”?
答案1
这通常是从一行的基线到另一行的基线测量的,或者由 给出\baselineskip
,并且取决于加载/指定的字体大小以及当前活动的字体大小。例如,以下\baselineskip
s 与类加载的相应默认字体大小相关联:
10pt 默认字体意味着 12pt
\baselineskip
(见size10.clo
(英文):11pt 默认字体意味着 13.6pt
\baselineskip
(见size11.clo
(英文):12pt 默认字体意味着 14.5pt
\baselineskip
(见size12.clo
)
然而,在 11pt 默认字体下,\LARGE
设置字体大小为 17.28pt长度为\baselineskip
22pt。点的长度转换在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}