我正在尝试制作一个多列、多行的表,其中包含两列和5行。我希望第二列的每一行都只加下划线。很明显,\ bottomrule在两列下面加下划线,就像\ hline一样。\hline还会抛出一个\nalign错误。\cline{2-2}、\cline}和\cline{2}都不起作用。\cline{2-2}和\cline{2}都为两列加下划线,\cline}2-3}抛出一个额外对齐选项卡错误。
我尝试过很多不同的组合,但运气不好,我希望最终文件对学校老师来说很简单(1-12年级(
documentclass[12pt]{article}
usepackage[text={7.25in,10in}]{geometry}
usepackage{multirow}
usepackage[latin1]{inputenc}
usepackage[pdftex]{hyperref}
%------------------------------%
usepackage{graphicx}
usepackage{booktabs}
usepackage{float}
usepackage{array}
begin{document}
begin{table}[H]
begin{tabular}{ll}
toprule
multicolumn{2}{l}{Learning Standard(s): }begin{minipage}{5.5in} CCSS # end{minipage}\
bottomrule
multicolumn{2}{l}{Lesson Objective(s): }begin{minipage}{5.5in}par The learner will be able to . . . end{minipage}\
bottomrule
%------problem begins here-----
multicolumn{2}{l|}{multirow{5}{*}{rotatebox{90}{Lesson Activities}}}begin{minipage}
{6in}Demonstration:end{minipage}\
multicolumn{2}{l|}{}begin{minipage}{6in}Guided Practice: end{minipage}\
multicolumn{2}{l|}{}begin{minipage}{6in}Individual Practice:end{minipage}\
multicolumn{2}{l|}{}begin{minipage}{6in}Formative Assessment: end{minipage}\
multicolumn{2}{l|}{}begin{minipage}{6in}Other/Notes: end{minipage}\
%-----problem ends here-----
toprule
multicolumn{2}{l}{Lesson Resources: }begin{minipage}{5.5in} end{minipage}\
bottomrule
multicolumn{2}{l}{Lesson Close: }begin{minipage}{5.5in} end{minipage}\
bottomrule
end{tabular}
end{table}
end{document}
我期待着下面这样的事情。
_______________________
| |_______________|
| |_______________|
| |_______________|
| |_______________|
|_____|_______________|
-
在表中使用
#
时,必须将其转义为 -
latin1
输入编码很可能是错误的。仔细检查你的文件是否真的是用拉丁语1编码的,这在本世纪将是非常不寻常的 -
不要为hyperref指定驱动程序-在最好的情况下,这是不必要的,因为hyperref会自动检测到它,在所有其他情况下,它只是错误的
-
如果您只想在一列中使用规则,那么实际上应该使用多个列,而不是将所有内容一起烘焙到一列中
-
看看
tabularray
包,这会让你的桌子不那么痛苦
documentclass[12pt]{article}
usepackage[text={7.25in,10in}]{geometry}
usepackage{multirow}
%usepackage[latin1]{inputenc}
usepackage[]{hyperref}
%------------------------------%
usepackage{graphicx}
usepackage{booktabs}
usepackage{float}
usepackage{array}
begin{document}
begin{table}[H]
begin{tabular}{p{1in}l}
toprule
multicolumn{2}{l}{Learning Standard(s): }begin{minipage}{5.5in} CCSS # end{minipage}\
bottomrule
multicolumn{2}{l}{Lesson Objective(s): }begin{minipage}{5.5in}par The learner will be able to . . . end{minipage}\
bottomrule
%------problem begins here-----
multirow{5}{*}{rotatebox{90}{Lesson Activities}} & Demonstration:\ cmidrule{2-2}
& Guided Practice: \ cmidrule{2-2}
& Individual Practice:\ cmidrule{2-2}
& Formative Assessment: \ cmidrule{2-2}
& Other/Notes: \
%-----problem ends here-----
toprule
multicolumn{2}{l}{Lesson Resources: }begin{minipage}{5.5in} end{minipage}\
bottomrule
multicolumn{2}{l}{Lesson Close: }begin{minipage}{5.5in} end{minipage}\
bottomrule
end{tabular}
end{table}
end{document}