我定义了一个证明环境与 tcolorbox 并且需要可破坏选项来获得更大的证明,但它似乎干扰了其他选项并产生了不受欢迎的框架。
这些是我用来定义环境的设置:
\newtcolorbox{preuve}{
breakable,
fonttitle=\bfseries,
enhanced,
top=2mm,
boxrule=0pt,
frame empty,
borderline west={2pt}{5pt}{black},
coltitle=black,
colback=white,
sharp corners,
title = Preuve }
这是一个最小的工作示例:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\newtcolorbox{preuve}{
breakable,
fonttitle=\bfseries,
enhanced,
top=2mm,
boxrule=0pt,
frame empty,
borderline west={2pt}{5pt}{black},
coltitle=black,
colback=white,
sharp corners,
title = Preuve
}
\begin{document}
\begin{preuve}
\lipsum[1]
\end{preuve}
\begin{preuve}
\lipsum[1-4]
\end{preuve}
\end{document}
答案1
虽然我不清楚这个问题的原因,但似乎可以通过完全隐藏框架来解决opacityframe = 0
。(我还添加了一个pad at break*=0mm
以减少断点处的额外 sep。)
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\newtcolorbox{preuve}{
breakable,
pad at break*=0mm,
fonttitle=\bfseries,
enhanced,
top=2mm,
boxrule=0pt,
frame empty,
opacityframe = 0,
borderline west={2pt}{5pt}{black},
coltitle=black,
colback=white,
sharp corners,
title = Preuve
}
\begin{document}
\begin{preuve}
\lipsum[1]
\end{preuve}
\begin{preuve}
\lipsum[1-4]
\end{preuve}
\end{document}