图片与正文间距问题 #50
Answered
by
sikouhjw
tengxiao24
asked this question in
Q&A
图片与正文间距问题
#50
Replies: 2 comments 10 replies
|
这部分间距调起来比较复杂,参考《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
\else
\vskip\intextsep
\fi}%
{\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}
\patchcmd{\@getpen}{\@M}{\@Mi}
{\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}
\makeatother其实模板也做了相应的处理 Lines 1061 to 1089 in 54b0d45 只是 latex3 的语法让这段代码没有成功 patch。 Footnotes |
6 replies
Answer selected by
sikouhjw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment













这部分间距调起来比较复杂,参考《LaTeX 如何在设置行距后让字体垂直居中?》1。
解决方案:在导言区加上