[問題] list裡面能放表格嗎?
I don't understand why you want to use the general list environment which r=
equires more advance techniques, while there are many basic/easier lists su=
ch as enumerate, itemize, description etc. etc. available.=20
.... But I think this is what you want.=20
\documentclass[a4paper]{article}
\usepackage{xcolor}
% making your own lists in LaTeX
\begin{document}
\newcounter{foo}
\setcounter{foo}{0}
\begin{list}
{Q \arabic{foo}:}
{\usecounter{foo} \setlength\itemsep{2pt} \setlength\leftmargin{1ex}}
\item Try to solve these equtions=EF=BC=9A\\
\fcolorbox{red}{white}{
\begin{minipage}[t][][t]{12cm}
(1)~~$x^2+3x-1=3D0$~~(2)~~$x^2-1=3D0$~~(3)~~$3x-1=3D0$~~(4)~~$x^3+3x-1=3D0$=
\\
(5)~~$x^2+3x-1=3D0$~~(6)~~$x^4+3x-1=3D0$~~(7)~~$y^2+2y-y=3D0$~~(8)~~$3x+6y=
=3D7$\\
(9)~~$x^2+6x-1=3D0$
\end{minipage}
}
\end{list}
% Modify it to fit=E3=80=8C(1)~~$x^2+3x-1=3D0$~~(2).....=E3=80=8Dinto table=
=EF=BC=9A
\begin{list}{Q \arabic{foo}:}{\usecounter{foo} \setlength\itemsep{2pt}\setl=
ength\leftmargin{1ex}}
\item Try to solve these equtions=EF=BC=9A\\
\begin{table}[htbp]
\vspace{-1cm}
\centering
\caption{Add caption}
\fcolorbox{red}{white}{
\begin{tabular}{rrrr}
(1) $x^2+3x-1=3D0$ & (2) $x^2-1=3D0$ & (3)$3x-1=3D0$ & (4) $x^3+3x-1=3D0$\\
(5) $x^2+3x-1=3D0$ & (6) $x^4+3x-1=3D0$ & (7) $y^2+2y-y=3D0$& (8) $3x+6y=3D=
7$\\
(9) $x^2+6x-1=3D0$ & & & =20
\label{tab:addlabel}%
\end{tabular}
}
\end{table}%
\end{list}%
\end{document}
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章