我想在第一道题后面的横线上写第二道题,即5+4,怎么写呢?
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[width=\textwidth,title={\hskip 70mm Add the following numbers},colbacktitle=yellow,coltitle=blue]
\begin{tabular}{cc}
& 2\\
+ &3\\
&\rule{10mm}{.3mm} \\
&\rule{10mm}{.3mm} \\
\end{tabular}
\begin{tabular}{cc}
& 5\\
+ &4\\
&\rule{10mm}{.3mm} \\
&\rule{10mm}{.3mm} \\
\end{tabular}
\end{tcolorbox}
\end{document}
答案1
\documentclass[a4paper]{article}
% \usepackage[dvipsnames]{xcolor}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[width=\textwidth,title={\hskip 60mm Add the following numbers},colbacktitle=yellow,coltitle=blue]
\begin{tabular}{cccccc}
& 2 & & 5 \\
+ & 3 &+ & 4 \\
&\rule{10mm}{.3mm} & &\rule{10mm}{.3mm} \\
&\rule{10mm}{.3mm} & &\rule{10mm}{.3mm} \\
\end{tabular}
\end{tcolorbox}
\end{document}