\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage{scalerel}
\usepackage{stackengine}
\usepackage{xcolor}
\usepackage{scalerel}
\usepackage{tcolorbox}
\usepackage{amscd}
\usepackage[all,cmtip]{xy}
\usepackage{calrsfs}
\usepackage[all]{xy}
\textheight=22.75truecm \textwidth=17cm \evensidemargin=-0.5cm
\oddsidemargin=-0.5cm \voffset-1.5cm
\pagestyle{headings}
\def\Spec{{\mathrm{Spec}\,}}
\def\Hom{{\mathrm{Hom}}}
\def\bHom{{\mathbf{Hom}}}
\def\bAut{{\mathbf{Aut}}}
\def\End{{\mathrm{End}}}
\def\Ext{{\mathrm{Ext}^1}}
\def\FEt{{\mathrm{FEt}}}
\def\Sets{{\mathrm{Sets}}}
\newenvironment{pf}
{\begin{proof}}
{ \end{proof}}
\newenvironment{function}
{\begin{center}
\begin{tabular}{rl}}
{\end{tabular}
\end{center}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}
\begin{tcolorbox}[colback=white!5!white,colframe=white!50!black, colbacktitle=white!75!black]
\begin{flushleft}
\textbf{\underline{How can we test whether a given set of polynomials $G$ is a Gröbner basis or not?}}
\end{flushleft}
\end{tcolorbox}
\end{document}
我该如何解决这个问题?我的写作超出了 T 色框的范围。
答案1
- 不要
\underline
尝试使用\ul
包中定义的soul
。 - 对于可破坏的盒子你需要加载
breakable
库:
\documentclass[a4paper,12pt]{article}
\usepackage{tcolorbox}
\tcbuselibrary{breakable} % <---
\usepackage{soul}
\begin{document}
\begin{tcolorbox}[colback=white!5!white,colframe=white!50!black,
colbacktitle=white!75!black,
fontupper=\bfseries, halign=left, breakable
]
\ul{How can we test whether a given set of polynomials $G$ is a Gröbner basis or not?}
\end{tcolorbox}
\end{document}
编辑:
如果您更喜欢使用该ulem
包,则需要在代码中将其替换\ul
为\uline
:
\documentclass[a4paper,12pt]{article}
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\usepackage{ulem}
\begin{document}
\begin{tcolorbox}[colback=white!5!white,colframe=white!50!black,
colbacktitle=white!75!black,
fontupper=\bfseries, halign=left, breakable
]
\uline{How can we test whether a given set of polynomials $G$ is a Gröbner basis or not?}
\end{tcolorbox}
\end{document}
结果与之前相同。两个 MWE 均由 XeLaTeX 引擎编译。