1 插入表格
1.1 代码
\documentclass{article} %声明文档类型
\begin{document} %文档的正文部分
\begin{table}[here] %一个浮动环境,用于创建表格
%[htbp] 是表格的位置选项,指定了表格可能出现的位置,按照优先级依次为:here(当前位置)、top(页面顶部)、bottom(页面底部)和 page(单独一页)。
\centering %表格被居中放置
\caption{test} %用于设置表格的标题为 "test"
\label{tab:example} %该表格添加一个标签,以便在文档其他地方引用。
\begin{tabular}{ccc} %表格的结构。这里的 "ccc" 表示表格有三列,并且每列的内容居中对齐。
\hline %表格的具体内容使用 & 符号进行分隔,换行使用 \ 符号
c1 & c2 & c3 \\
\hline
date1 & d2 & d3 \\
d4 & d5 & d6 \\
\hline
\end{tabular}
\end{table}
\end{document}