为什么 tcolorbox 会增加垂直空间?

为什么 tcolorbox 会增加垂直空间?

tcolorbox在数学试卷的解答部分使用了一些 es。出于某种原因,添加了一些垂直空间。

我怎样才能将解决方案编号与 tcolorbox 的顶部对齐?
(下图中的红色框是我不想要的添加空间。)

截屏

在此处输入图片描述

平均能量损失

\documentclass[12pt, a4paper]{scrbook}
\usepackage{exsheets}

\DeclareInstance{exsheets-heading}{hugeIndent}{default}{
  runin = true,
  attach = {main[r,vc]number[l,vc](-3em,0pt)}
}

\SetupExSheets{
  headings=hugeIndent,
  question/pre-hook=\begin{addmargin}[3em]{0cm},
  question/post-hook=\end{addmargin},
  solution/pre-hook=\begin{addmargin}[3em]{0cm},
  solution/post-hook=\end{addmargin},
  counter-within={section},
  counter-format=ch.se.qu[1]
}

\usepackage{tikz}
\usepackage[most]{tcolorbox}

\begin{document}
  \part{EXCERCISES}
    \chapter{Topic 1}

      \section{Section}

        \begin{question}[ID=111]
        I'm an excercise.
        \end{question}
        \begin{solution}
\tcbsidebyside[
    sidebyside adapt=left,
    blanker,
    sidebyside gap=0.5\baselineskip,
    sidebyside align=top seam
]
{
    \begin{tikzpicture}[scale=\linewidth/20cm, baseline=(current bounding box.north)]
        \draw[step=1,help lines,black!20] (-4.95,-3.45) grid (4.95,3.45);
        \draw[thick] (-2.5,0) ellipse [x radius=2.25, y radius=3.4];
        \draw[thick] (2.5,0) ellipse [x radius=2.25, y radius=3.4];
    \end{tikzpicture}%
}
{
    Bad aligned!
}
        \end{solution}

      \section{Section}

        \begin{question}[ID=121]
        I'm an excercise.
        \end{question}
        \begin{solution}
\tcbsidebyside[
    sidebyside adapt=left,
    blanker,
    sidebyside gap=0.5\baselineskip,
    sidebyside align=top seam
]
{
    I'm a bad
}
{
    aligned solution.
}
        \end{solution}

        \begin{question}[ID=122]
        I'm an excercise.
        \end{question}
        \begin{solution}
        I'm a perfectly aligned solution.
        \end{solution}

  \setcounter{chapter}{0}
  \part{SOLUTIONS}

    \chapter{Topic 1}

      \section{Section}
        \printsolutions[byID={111}]

      \section{Section}
        \printsolutions[byID={121}]

       \section{Section}
        \printsolutions[byID={122}]

\end{document}

相关内容