[問題] list裡面能放表格嗎?

看板LaTeX (論文排版)作者時間12年前 (2013/08/03 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
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}
文章代碼(AID): #1H_DmYQJ (LaTeX)
文章代碼(AID): #1H_DmYQJ (LaTeX)