調整 tcb 定理內和段落之間的間距

調整 tcb 定理內和段落之間的間距

作為參考,這是我目前的 tcbtheorem 區塊

\newtcbtheorem[number within=section, list inside = theoremlist, list type = thrm]{thrm}{Theorem}%
{enhanced, breakable,
colback=r!7, colbacktitle=r!17, coltitle=RedViolet,
frame hidden, parbox=false,
arc=1.85pt, titlerule=0pt, toptitle=2pt, bottomtitle=2pt,
fonttitle=\bfseries,separator sign= : \hspace{0.005cm},
segmentation style={solid, draw=r!55, line width=1pt},
before upper=\csname @nobreakfalse\endcsname, halign=left
}{th}

在這種環境和整個文件中,如何才能使段落之間的間距更大。我怎樣才能使 tcbline 和證明之間的空間更小。

在此輸入影像描述

這是一些測試程式碼

\documentclass{article}

\usepackage[many]{tcolorbox}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsthm}


\newtcbtheorem[number within=section, list inside = theoremlist, list type = thrm]{thrm}{Theorem}%
{enhanced, breakable,
colback=Red!7, colbacktitle=Red!17, coltitle=Black,
frame hidden, parbox=false,
arc=1.85pt, titlerule=0pt, toptitle=2pt, bottomtitle=2pt,
fonttitle=\bfseries,separator sign= : \hspace{0.005cm},
segmentation style={solid, draw=Red!55, line width=1pt},
before upper=\csname @nobreakfalse\endcsname, halign=left
}{th}


\begin{document}
Testing out the spacing.

Hello. 

\begin{thrm}{Test}{}
His

this is a test 

\tcbline
\begin{proof}
Test

This is not enough space between lines.
\end{proof}
\end{thrm}
\end{document}

相關內容