作者alfadick (悟道修行者)
看板LaTeX
标题[问题] list里面能放表格吗?
时间Sat Aug 3 15:03:14 2013
想要效果:
http://ppt.cc/tFzT
其中红色框框以内的题目想用表格,3 row * 4 column,每题都对齐栏位内的左边
我的code是这样:
\setcounter{foo}{0}
\Num{(4)}\begin{minipage}[t][][t]{18cm}
\begin{list}{}{\usecounter{foo}\itemsep = 2pt\leftmargin = 1ex}
\item Try to solve these equtions:\\
(1)~~$x^2+3x-1=0$~~(2)~~$x^2-1=0$~~(3)~~$3x-1=0$~~(4)~~$x^3+3x-1=0$\\
(5)~~$x^2+3x-1=0$~~(6)~~$x^4+3x-1=0$~~(7)~~$y^2+2y-y=0$~~(8)~~$3x+6y=7$\\
(9)~~$x^2+6x-1=0$
\end{list}
\end{minipage}
现在想把「(1)~~$x^2+3x-1=0$~~(2).....」改成table:
\begin{table}[htbp]
\centering
\caption{Add caption}
\begin{tabular}{rrrr}
\toprule
$...$ & $...$ & $...$ & $... \\
(以下两列略)
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
这code是用软体产生的。出现三个问题,第一个,\toprule好像没定义出问题
第二个,拿掉\toprule, \bottomrule之类後,编译还是错误,
他说Float(s) lost
所以我在想说是不是table不能放在minipage里(最外围有那个minipage)
还是不能放在item里。
如果我非要这种效果不可,怎麽办呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.44.250.28