tufte-latex: \section 之後的 \newthought

tufte-latex: \section 之後的 \newthought

在新的節標題後使用\newthought會插入不尋常的垂直空格,如下例所示。

\documentclass{tufte-book}
\usepackage{kantlipsum,cleveref}


\begin{document}

\section{Monday}
\kant[1]

\section{Tuesday}
\newthought{Let us suppose} that the noumena have nothing to do with necessity,
since knowledge of the Categories is a posteriori. 
\kant[3]

\end{document}

在此輸入影像描述

  1. 有沒有一種(最好是自動的)方法來修正這個問題?
  2. \newthought由於排版原因,應該避免在章節標題之後使用嗎?如果答案是肯定的,我希望得到解釋為什麼

答案1

的定義\tuftebreak可以改進:

\documentclass{tufte-book}
\usepackage{kantlipsum,cleveref}

\makeatletter
\def\tuftebreak{%
  \if@nobreak\else
    \par
    \ifdim\lastskip<\tufteskipamount
      \removelastskip \penalty -100
      \tufteskip
    \fi
  \fi
}
\makeatother

\begin{document}

\section{Monday}
\kant[1]

\section{Tuesday}
\newthought{Let us suppose} that the noumena have nothing to do with necessity,
since knowledge of the Categories is a posteriori.
\kant[3]

\end{document}

在此輸入影像描述

相關內容