使用 cutwin 调整行距

使用 cutwin 调整行距

问题在于第一行和最后一行与文本的其余部分相比具有不同的行距。这是代码:

\documentclass[10pt]{tufte-book}

\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[russian]{babel}
\usepackage[OT1]{fontenc}
\usepackage[demo]{graphicx}
\usepackage{euler,beton}
\usepackage{tikz,tkz-euclide}
\usetikzlibrary{calc}
\usetkzobj{all}
\usetikzlibrary{fpu}
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{patterns}
\usepackage{cutwin}

\geometry{
  paperwidth=145mm,
  paperheight=215mm,
  inner=16mm,
  outer=10mm,
  top=10mm,
  bottom=40mm,
  marginparsep=5mm,
  marginparwidth=40mm,
  includemp,
  includehead
}


\usepackage[nopar]{lipsum}
\usepackage{xstring}
% https://tex.stackexchange.com/a/26808/2595
\makeatletter
\def\unpacklipsum#1#2#3{%
  \count@=#1\relax
  \advance\count@\m@ne
  \def#3{}%
  \loop\ifnum\count@<#2\relax
    \advance\count@\@ne
    \edef#3{#3\csname lipsum@\romannumeral\count@\endcsname}%
  \repeat}
\makeatother

\def\loremnchars[#1]#2{%
  \unpacklipsum{#1}{#1}{\myunpacked}%
  \StrMid{\myunpacked}{1}{#2}% same as \StrLeft{\myunpacked}{#2}
}


\begin{document}

\loremnchars[1]{255}

\opencutright
\begin{shapedcutout}{2}{16}{0.90\textwidth, 0.79\textwidth,0.7\textwidth, 0.65\textwidth,0.61\textwidth, 0.6\textwidth, 0.55\textwidth, 0.58\textwidth, 0.58\textwidth, 0.58\textwidth, 0.6\textwidth,0.61\textwidth, 0.65\textwidth,0.7\textwidth, 0.79\textwidth,0.90\textwidth}
\loremnchars[1]{600}
\end{shapedcutout}


\begin{marginfigure}[-8.5cm]

    {\caption{ }\label{Brahmagupta1}}
    \rightline{\begin{tikzpicture}[scale=1]
        %=============================
        \tkzInit[xmin=-0.5, xmax=6.6, ymin=-5, ymax=2.5]
        \tkzClip
        %==========================================   
        \tkzDefPoints{0/0/A, 2.5/2/B, 6/0/C}
        \tkzDefLine[orthogonal=through B](C,A) \tkzGetPoint{t}
        \tkzInterLL(B,t)(C,A) \tkzGetPoint{P}
        \tkzCircumCenter(A,B,C)\tkzGetPoint{O}
        \tkzInterLC(t,B)(O,A) \tkzGetPoints{D}{a}
        \tkzDefMidPoint(A,D) \tkzGetPoint{T}
        \tkzInterLL(T,P)(C,B) \tkzGetPoint{F}
        %==================================================
        \tkzDrawPolygon[very thick](A,B,C,D)
        \tkzDrawCircle(O,A)
        \tkzDrawSegments(A,C B,D T,F)
        %\tkzFillPolygon[color = gray,opacity=0.3](C,T,F)
        %================================================      
        \tkzLabelPoint[left](A){$A$}
        \tkzLabelPoint[above](B){$B$}
        \tkzLabelPoint[right](C){$C$}
        \tkzLabelPoint[below](D){$D$}
        \tkzLabelPoint[above left](P){$P$}
        \tkzLabelPoint[below left](T){$T$}
        \tkzLabelPoint[above right](F){$F$}
        \tkzMarkRightAngle[size=0.2](C,P,D);
        \tkzMarkRightAngle[size=0.2](P,F,C);
        \tkzLabelAngle[pos=0.4](T,A,P){$\alpha$}
        \tkzLabelAngle[pos=-0.4](T,P,A){$\alpha$}
        \tkzLabelAngle[pos=0.4](C,P,F){$\alpha$}
        \tkzLabelAngle[pos=0.4](P,B,F){$\alpha$}
        \tkzLabelAngle[pos=0.5](T,P,D){$\beta$}
        \tkzLabelAngle[pos=0.7](P,D,T){$\beta$}
        \tkzLabelAngle[pos=0.5](F,P,B){$\beta$}
        \tkzLabelAngle[pos=0.8](F,C,P){$\beta$}
        \tkzMarkSegment[pos=0.5, mark=|](A,T)
        \tkzMarkSegment[pos=0.5, mark=|](T,D)
        %============================================      
        \tkzDrawPoints(A,B,C,D,P,T,F)
        \end{tikzpicture}}
\end{marginfigure}
\loremnchars[1]{255}
\end{document}

这是输出: 在此处输入图片描述 在此处输入图片描述 您可以在第一张图片上看到明显的重叠。第二张图片上不太明显,但确实存在。第一个重叠可以通过\bigskip在段落之间插入类似内容来手动修复,但如何折叠第二个重叠?

相关内容