创建颜色框和表格

创建颜色框和表格

我想创建一个包含一个框和一个表格的 LaTeX 文件,如下图所示在此处输入图片描述

我尝试这样做,但我的文件与图片不一样。有人能帮助我吗?

答案1

快速破解:

\documentclass{book}

\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[x11names]{xcolor}
\usepackage[most]{tcolorbox}

\newtcolorbox[auto counter]{examplebox}[2][]{colframe=green,enhanced jigsaw, title={Example \thetcbcounter\ #2},coltitle={black},sharp corners,
  frame style={left color=orange,right color=black!20!white},
  #1}

\begin{document}


\chapter{Summary}

\begin{examplebox}{Computing the doubling time}
Computing the doubling time

\end{examplebox}


\begin{tabularx}{\linewidth}{XX}
  \textcolor{cyan}{Term, notation} & \textcolor{cyan}{Equations} \tabularnewline
  \toprule
  1. Exponential function & the equation  \tabularnewline
  \multicolumn{2}{l}{} \tabularnewline

  2. The number & Compute \tabularnewline
  \bottomrule
\end{tabularx}

\end{document}

在此处输入图片描述

相关内容