tcolorbox - 打破 2 页以上的框

问题描述 投票:0回答:1

我使用乳胶时间不长,有一个问题。 是否有任何选项可以将 tcolorbox 分成 2 页?有些定义太长,我不想使用

[tbh]

` ewtcolorbox[自动计数器,章节内的数字,]{myDefinition}[3][]{ (...)

“易碎”不起作用。谢谢您的帮助。

latex
1个回答
0
投票

盒子定义代码:

\newtcolorbox[auto counter,number within=chapter,]{myDefinition}[3][]{
arc=5mm,
lower separated=false,
fonttitle=\bfseries,
colbacktitle=blue!10,
coltitle=blue!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
        yshift=-2mm},
colframe=blue!50!black,
colback=blue!10,
overlay={
\node[draw=blue!50!black,thick,
%inner sep=2mm,
fill= blue!10,rounded corners=1mm, 
yshift=0pt, 
xshift=-0.5cm, 
left, 
text=blue!50!black,
anchor=east,
font=\bfseries] 
at (frame.north east) {#3};},
overlay={
\node[draw=blue!50!black,thick,
%inner sep=2mm,
fill= blue!10,rounded corners=1mm, 
yshift=+1.2mm, %hier geaendert
xshift=-0.5cm, 
left, 
text=blue!50!black,
anchor=east,
font=\bfseries] 
at (frame.north east) {#3};},
title=#2 \thetcbcounter,#1}

示例代码

\begin{myDefinition}[]{Definition}{title}
text
\end{myDefinition}
© www.soinside.com 2019 - 2024. All rights reserved.