Skip to content
Discussion options

You must be logged in to vote

这部分间距调起来比较复杂,参考《LaTeX 如何在设置行距后让字体垂直居中?》1

解决方案:在导言区加上

\makeatletter
\patchcmd{\@addtocurcol}%
  {\vskip \intextsep}%
  {\edef\save@first@penalty{\the\lastpenalty}\unpenalty
   \ifnum \lastpenalty = \@M  % hopefully the OR penalty
     \unpenalty
   \else
     \penalty \save@first@penalty \relax % put it back
   \fi
   \ifnum\outputpenalty <-\@Mii
     \addvspace\intextsep
     \vskip\parskip
   \else
     \addvspace\intextsep
   \fi}%
  {\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}
\patchcmd{\@addtocurcol}%
  {\vskip\intextsep \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi}%
  {\ifnum\outputpenalty <-\@Mii
     \aftergroup\vskip\aftergroup\intextsep
     \aftergroup\nointerlineskip

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@SiriusFang2020
Comment options

@sikouhjw
Comment options

@SiriusFang2020
Comment options

@tengxiao24
Comment options

@SiriusFang2020
Comment options

Answer selected by sikouhjw
Comment options

You must be logged in to vote
4 replies
@sikouhjw
Comment options

@still-modest
Comment options

@sikouhjw
Comment options

@still-modest
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #49 on March 18, 2022 02:53.