修復回憶錄類別中列表項目和段落之間不需要的間距

修復回憶錄類別中列表項目和段落之間不需要的間距

在回憶錄類別中編寫文件時,我會在清單和段落之間出現一些不需要的間距等。之間。它似乎是回憶錄類別的屬性,因為它不會發生在文章中;不幸的是,更改文檔類別不是一個選擇。如何更改頁面底部顯示的空白區域?

微量元素:

'''

% \documentclass[]{article}

\documentclass[]{memoir}

\usepackage{graphicx}

\begin{document}

\begin{itemize}
\item One

\item Two

\item Three

\end{itemize}

\includegraphics[width=120mm]{example-image-9x16} 

\end{document}

答案1

memoir您的圖形對於標準邊距或頂部和底部邊距來說太大article,並且會覆蓋頁碼或運行頁腳。對於現有邊距,您可以使用的最大值是width=108.7mm。然後它將適合現有的文字區域。

這個問題之前已經被問過幾次,並連結到 LaTeX 標準文件類別和類似的類別使用\flushbottom\raggedbuttom。如果您打算雙面列印文字並將其裝訂到書籍或小冊子上,您通常更喜歡跨頁中的文字在頁面的頂部和底部對齊。因此,此類使用類別使用\flushbottom.為了填充頁面,LaTeX 拉伸了段落、顯示、標題等之間的空間,這看起來很糟糕。然而,LaTeX 並不意味著 100% 自動排版,但假設一個明智的作者,在她完成所有的創意寫作併校對文件的拼字錯誤和語法至少三次之後,開始繁瑣的工作,在文件的每一頁上應用所有類型的印刷“feinschmecker”內容。

注意!當您使用memoir作為前兩個步驟時:

  1. oneside您設定了將適用的選項raggedbottom,並且
  2. 您將圖形和表格封裝在浮動環境中

那是:

\begin{figure}
\includegraphics[width=108.75mm]{example-image-9x16} 
\end{figure}

\begin{table}
  <example-table> 
\end{table}

如果您出於某種原因無法使用該oneside選項,則可以將文件設為\raggedbottom.

忘記分頁符號等,直到完成所有寫作和校對。請記住,如果您不使用浮動環境,圖形可能會被推送到下一頁,並使頁面的大部分內容沒有任何文字。

為了幫助避免錯誤的分頁,我鼓勵您閱讀 Frank Mittelbach 在 TUGboat 39:3, 2018 上發表的兩篇優秀文章

  1. 在 LaTeX 中管理孤立的段落行(又稱寡婦和孤兒)
  2. 寡婦和孤兒一攬子計劃

另外,你應該閱讀他關於浮動的類似優秀答案:如何影響 LaTeX 中圖形和表格等浮動環境的位置?

範例 1:沒有oneside,raggedbottom或圖形環境

在此輸入影像描述

\documentclass[]{memoir}
\usepackage{graphicx}

\begin{document}

\begin{itemize}
\item One
\item Two
\item Three
\end{itemize}

% If you do not encapsulate in a figure environment, you need a \noindent first
\noindent\includegraphics[width=108.7mm]{example-image-9x16} 
\end{document}

範例 2:使用oneside- 選項和圖形環境

在此輸入影像描述在此輸入影像描述

\documentclass[oneside]{memoir}
\usepackage{graphicx}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}

\begin{itemize}
\item One
\item Two
\item Three
\end{itemize}

% Encapsulating the graphic make it ‘float’. Encapsulate tables in a table-environment
\begin{figure}
\includegraphics[width=108.7mm]{example-image-9x16} 
\end{figure}
\end{document}

相關內容