我试图将两个enumerate
环境并排放置,因此我使用了paracol
。此代码:
\begin{paracol}{2}
\begin{minipage}{\columnwidth}
$\bullet$ 1st enumerate
\begin{enumerate}
\item $\xi+\xi=0$
\item $\xi + (1+\xi)=1$
\item $(1+\xi)+1=\xi$
\item $(1+\xi)+(1+\xi)=0$
\end{enumerate}
\end{minipage}
\switchcolumn
\begin{minipage}{\columnwidth}
$\bullet$ 2nd enumerate
\begin{enumerate}
\item $\xi\cdot\xi=\xi^2=\xi+1$
\item $\xi\cdot(1+\xi)=\xi+\xi^2=1$
\item $(1+\xi)(1+\xi)=1+\xi^2=\xi$
\end{enumerate}
\end{minipage}
\switchcolumn*
\end{paracol}
运行正常。但当我尝试将其放入某个位置时tcolorbox
,我收到错误“不在外部模式”
\documentclass{article}
\usepackage{paracol}
\usepackage{vmargin}
\setmargins{2.5cm}
{1.3cm}
{15.6cm}
{23.42cm}
{10pt}
{1cm}
{0pt}
{2cm}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\tcbuselibrary{skins}
\tcbset{
mystyle/.style={fonttitle=\bfseries, fontupper=\normalsize\slshape,theorem style=standard,enhanced,frame hidden,boxrule=0pt,left=0.2cm,right=0.2cm, top=0.2cm,toptitle=0.1cm+1pt,bottomtitle=-0.1cm+0.5em,bottomrule=1pt}
}
\newtcbtheorem[]{ejem}{EJEMPLO}{
fonttitle=\bfseries, fontupper=\normalsize,
theorem style=standard,
enhanced,frame hidden,
boxrule=0pt,
left=0.2cm,right=0.2cm,top=0.2cm, toptitle=0.1cm+1pt,bottomtitle=-0.1cm+0.5em,
bottomrule=1pt,
colback=white,coltitle=red!75!black,
title style=white,
titlerule=1pt, titlerule style=red!75!black,
borderline south={1pt}{0pt}{red!75!black}
}{ejem}
\begin{document}
\begin{ejem}{}{}
\begin{enumerate}
\item Case 1 \\ blablablabla
\item Case 2 \\ Look these tables
\begin{paracol}{2}
\begin{minipage}{\columnwidth}
$\bullet$ 1st enumerate
\begin{enumerate}
\item $\xi+\xi=0$
\item $\xi + (1+\xi)=1$
\item $(1+\xi)+1=\xi$
\item $(1+\xi)+(1+\xi)=0$
\end{enumerate}
\end{minipage}
\switchcolumn
\begin{minipage}{\columnwidth}
$\bullet$ 2nd enumerate
\begin{enumerate}
\item $\xi\cdot\xi=\xi^2=\xi+1$
\item $\xi\cdot(1+\xi)=\xi+\xi^2=1$
\item $(1+\xi)(1+\xi)=1+\xi^2=\xi$
\end{enumerate}
\end{minipage}
\switchcolumn*
\end{paracol}
\end{enumerate}
\end{ejem}
\end{document}
答案1
感谢 leandriis 的评论:
\begin{minipage}[t]{.5\textwidth}
$\bullet$ 1st enumerate
\begin{enumerate}
\item $\xi+\xi=0$
\item $\xi + (1+\xi)=1$
\item $(1+\xi)+1=\xi$
\item $(1+\xi)+(1+\xi)=0$
\end{enumerate}
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
$\bullet$ 2nd enumerate
\begin{enumerate}
\item $\xi\cdot\xi=\xi^2=\xi+1$
\item $\xi\cdot(1+\xi)=\xi+\xi^2=1$
\item $(1+\xi)(1+\xi)=1+\xi^2=\xi$
\end{enumerate}
\end{minipage}
感谢 campa 的评论,标题现在已对齐…