我想设置行距:正文为 1.8,脚注为 1.1。该软件包parskip
似乎是一个不错的选择,它有一些有效的选项。但是,我无法对脚注进行不同的设置(行距)。
我已经研究过解决方案此解决方案:更改脚注行和正文之间的间距
或者其他解决方案:当正文和脚注的间距不同时,脚注中会出现奇怪的空格
两者都建议将setspace
脚注设置为单倍行距,将正文设置为双倍行距或半倍行距。但这并不能完全解决我的问题。
因此,如果有人能为我提供解决方案,我将不胜感激。请参阅以下我的尝试。
\documentclass[a4paper,12pt]{article}
\usepackage{blindtext}
\usepackage{parskip}
\renewcommand{\baselinestretch}{1.8}
\setlength{\parskip}{12pt plus 3pt minus 3pt}
\usepackage{footmisc}
\renewcommand{\footnotelayout}{\setstretch{1.1}}
\renewcommand{\footnotelayout}{\linespread{1.1}}
\addtolength{\skip\footins}{2pt} % vertical space between rule and main text
\setlength{\footnotesep}{12pt} % vertical space between footnotes
\begin{document}
\blindtext\footnote{I want the line spacing to be 1.8 for the main text; 1.1 for the footnote. In my understanding, package \textbf{setspace} can not help since it does not have the option to select the specific line-spacing for the footnote.}
\end{document}
答案1
如果我理解了这个问题,那么只需将setspace
包添加到包含列表中并选择\setstrech
解决\footnotelayout
问题即可。
\documentclass[a4paper,12pt]{article}
\usepackage{blindtext}
\usepackage{parskip,setspace}
\setstretch{1.8}% REPLACES \renewcommand{\baselinestretch}{1.8}
\setlength{\parskip}{12pt plus 3pt minus 3pt}
\usepackage{footmisc}
\renewcommand{\footnotelayout}{\setstretch{1.1}}
%INSTEAD OF \renewcommand{\footnotelayout}{\linespread{1.1}}
\addtolength{\skip\footins}{2pt} % vertical space between rule and main text
\setlength{\footnotesep}{12pt} % vertical space between footnotes
\begin{document}
\blindtext\footnote{I want the line spacing of the main text to be 1.8; of the footnote to be 1.1. Package \textbf{setspace} can not help since it does not have the option to select the line spacing 1.8 (not mentioning others)}
\end{document}