latex三线表代码
时间: 2023-08-24 09:09:00 浏览: 155
《algorithm2e》使用笔记
以下是三个关于Latex绘制三线表的代码示例:
引用\[1\]中的代码示例:
\documentclass{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tabularx}
\begin{table}
\centering
\caption{A Simple Example Table}
\label{table_example}
\begin{tabular}{cc}
\toprule
\multicolumn{1}{m{1.5cm}}{\centering Symbol} & \multicolumn{1}{m{6cm}}{\centering Definition}\\
\midrule
1111 & 11111\\
2222 & 2222\\
\bottomrule
\end{tabular}
\end{table}
引用\[2\]中的代码示例:
\documentclass\[UTF8\]{ctexart}
\usepackage{makecell}
\usepackage{geometry}
\geometry{a4paper,left=1cm,right=1cm,top=2cm,bottom=1cm}
\begin{document}
\begin{center}
\begin{table}\[t\]
\centering
\begin{tabular}{ccccc}
\Xhline{1.5 pt}
Breakfasd & Lunch & Dinner & Snack & Drink \\
\Xhline{0.5 pt}
Milk & Beef & Yogurt & Chocolate & Coffee \\
Bread & Potato & Lettuce & Cookie & Chocolate milk\\
\Xhline{1.5 pt}
\end{tabular}
\caption{Paddington's favourite food}
\end{table}
\end{center}
\end{document}
引用\[3\]中的代码示例:
\begin{table}\[!htbp\]
\centering
\begin{tabular}{ccccccccccc}
\toprule
\multicolumn{3}{c}{\multirow{2}{*}{Method}}& \multicolumn{3}{c}{Homographic}& &\multicolumn{3}{c}{Hetergraphic}\\
\multicolumn{3}{c}{}&Precision&Recall&F1&&Precision&Recall&F1&\\
\hline
\multicolumn{3}{c}{A}& 50& 0& 100&&200& 300& 300\\
\multicolumn{3}{c}{B}&100&100&0&&100&200&200\\
\multicolumn{3}{c}{C}&150&200&100&&0&100&200\\
\bottomrule
\end{tabular}
\caption{亲,能点赞+关注吗,(\^\_−)☆}
\end{table}
以上是三个不同的Latex代码示例,用于绘制三线表。你可以根据自己的需求选择其中一个进行使用。
#### 引用[.reference_title]
- *1* [Latex三线表代码](https://blog.csdn.net/qq_42635142/article/details/105019104)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Latex绘制三线表](https://blog.csdn.net/Paddington7/article/details/126432179)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [使用latex做三线表](https://blog.csdn.net/liu16659/article/details/111656244)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文