只是熬夜做作业。我注意到,尽管我之前做了所有工作,并将其与我现在所做的工作进行比较,但我似乎无法在这张表中找出我的缺陷。
如果您能对此作出一些解释,我们将不胜感激!
\begin{tabular} {c|l|l} \hline
\multicolumn{3}{c}{Math 2024 assessment tasks} \\ \hline
Category & Content & Week Due\\ \hline
Assignments & 1. Mathematical Typesetting & Week 4
& 2. Cultural Awareness & Week 7
& 3. Good Mathematical Writing & Week 10
& 4. Career Planning & Week 11\\ \hline
Expository Paper & Talk 1: 5 minutes & Week 5
& Draft of written paper & Week 6
& Written paper & Week 12
& Talk 2: 10 minutes & Week 13\\ \hline
Minitalks & HMC Math Fun Facts & throughout \\ \hline
\end{tabular}
我遇到的错误是
1.99 &
2. cultural awareness & week 7
提前感谢您的时间。
答案1
当添加正确的行尾命令时,所有错误都会消失。生成的代码是
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{tabular} {c|l|l} \hline
\multicolumn{3}{c}{Math 2024 assessment tasks} \\ \hline
Category & Content & Week Due\\ \hline
Assignments & 1. Mathematical Typesetting & Week 4 \\
& 2. Cultural Awareness & Week 7 \\
& 3. Good Mathematical Writing & Week 10 \\
& 4. Career Planning & Week 11\\ \hline
Expository Paper & Talk 1: 5 minutes & Week 5 \\
& Draft of written paper & Week 6 \\
& Written paper & Week 12 \\
& Talk 2: 10 minutes & Week 13\\ \hline
Minitalks & HMC Math Fun Facts & throughout \\ \hline
\end{tabular}
\end{document}
结果表如下
所以,教训是:永远,永远,总是确保表格中包含行尾命令。
希望这可以帮助!
答案2
作为 heather 解决方案的补充。以下是booktabs
版本:
% arara: pdflatex
\documentclass{article}
\usepackage{booktabs}
\usepackage{caption}
\begin{document}
\begin{table}
\caption{Math 2024 assessment tasks}\label{tab:Math2024}
\begin{tabular}{lll}
\toprule
Category & Content & Week Due \\
\midrule
Assignments & 1.\ Mathematical Typesetting & Week 4 \\
& 2.\ Cultural Awareness & Week 7 \\
& 3.\ Good Mathematical Writing & Week 10 \\
& 4.\ Career Planning & Week 11 \\ \midrule
Expository Paper & Talk 1: 5 minutes & Week 5 \\
& Draft of written paper & Week 6 \\
& Written paper & Week 12 \\
& Talk 2: 10 minutes & Week 13 \\ \midrule
Minitalks & HMC Math Fun Facts & throughout \\
\bottomrule
\end{tabular}
\end{table}
\end{document}