我有一个可爱的颜色框,里面有一个文本,我想把它分成两列,一列是 Dung,另一列是标签,为什么不在中间添加一个条呢:
你知道我该怎么做吗?提前谢谢!这是目前可重现的代码:
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,title=admissible set]
\textbf{Dung}
S is an admissible set
$\Leftrightarrow
\begin{cases}
S \mbox{ is conflict-free}\\
S \subseteq F(s) \mbox{ : S defends at least itself}
\end{cases}$
\textbf{Labelling}
an admissible labelling is a $\mathbb L$ without argument illegally in and illegally out
\end{tcolorbox}
\end{document}
答案1
您可以使用该multicol
包轻松解决问题:
\documentclass[]{article}
\usepackage{amssymb}
\usepackage{tcolorbox}
\usepackage{multicol}
\begin{document}
\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,title=admissible set]
\begin{multicols}{2}
\textbf{Dung}
S is an admissible set
$\Leftrightarrow
\begin{cases}
S \mbox{ is conflict-free}\\
S \subseteq F(s) \mbox{ : S defends at least itself}
\end{cases}$
\columnbreak
\textbf{Labelling}
an admissible labelling is a $\mathbb L$ without argument illegally in and illegally out
\end{multicols}
\end{tcolorbox}
\end{document}