对于memoir
文档类中的标题我使用以下设置:
\captiondelim{\null\newline}
\captionnamefont{\small\sffamily\bfseries}
\captiontitlefont{\small\sffamily}
\captionstyle[\raggedright]{}
\normalcaptionwidth
\captiontitlefinal{.}
我想将标题中的行距缩小到与使用 sanserif 字体 ( \usepackage[scaled=0.83]{helvet}
) 时相同的大小,即 83%。如何操作?
编辑: MWE 询问 Johannes_B:
\documentclass[12pt]{memoir}
\usepackage{fouriernc}
\usepackage[scaled=0.83]{helvet}
\usepackage[scaled=0.82]{luximono}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\captiondelim{\null\newline}
\captionnamefont{\small\sffamily\bfseries}
\captiontitlefont{\small\sffamily}
\captionstyle[\raggedright]{}
\normalcaptionwidth
\captiontitlefinal{.}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\begin{figure}[h]\centering
\fbox{some figure}
\caption{In long caption text I like to have smaller line spacing as it is now, for example reduced to 83\% of this one. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text of caption}
\end{figure}
\lipsum[3]
\end{document}
答案1
\linespread
期望的倍数\baelineskip
,所以这里我使用了 .83,或者换句话说,是通常的 baselineskip 的 83%。
如果这是您要找的,不确定。
\documentclass[12pt]{memoir}
\usepackage{blindtext}
\usepackage{fouriernc}
\usepackage[scaled=0.83]{helvet}
% \usepackage[scaled=0.82]{luximono}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\captiondelim{\null\newline}
\captionnamefont{\small\sffamily\bfseries}
\captiontitlefont{\small\sffamily\linespread{.83}\selectfont}
\captionstyle[\raggedright]{}
\normalcaptionwidth
\captiontitlefinal{.}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\begin{figure}[h]\centering
\fbox{some figure}
\caption{\blindtext}
\end{figure}
\lipsum[3]
\end{document}