
使用 LyX,我將文件設為 1.5 間距,title
由於我的標題進入第二行,因此它適用於我,導致奇怪的空格。文件中的其他位置手動將段落設定更改為單行間距(段落設定 -> 行間距)效果很好,但在標題中不起作用。有什麼辦法可以讓我的標題行間距變成單行距而不是 1.5 嗎?
這是標題的程式碼:
\begin{singlespace}
\title{Long title Long title Long title Long title Long title Long title Long title Long title Long title}
\end{singlespace}
\maketitle
答案1
這裡的問題是段落間距是圍繞著\title
巨集設定的,這並沒有設定任何內容。標題僅透過呼叫 來設置\maketitle
,它仍然具有原始OneHalf
間距。您必須更新\maketitle
以透過適當的間距包圍自身。
將以下內容新增至您的文件 > 設定... > LaTeX 序言中:
\let\oldmaketitle\maketitle% Store old \maketitle
\renewcommand{\maketitle}{% Update \maketitle
\begin{singlespace}
\oldmaketitle% Use singlespace
\end{singlespace}}