latex处理多列表格——水平太长无法显示(转)

标签:
杂谈 |
分类: 学习笔记 |
来源:http://bbs.sciencenet.cn/home.php?mod=space&uid=111494&do=blog&id=434504
latex如何使得表格不同列的字体大小不一样
http://bbs.sciencenet.cn/home.php?mod=space&uid=111494&do=blog&id=436728My living address in Canada is given in Table~\ref{address}.
\begin{table} [h]
\centering
\caption{This is my living address in Canada}
\label{address}
\begin{tabular}{|>{\small}c|>{\Huge}c|}
\hline
Barclay Street & Hamilton \\
\hline
Ontario & Canada \\
\hline
\end{tabular}
\end{table}
latex中表格列宽控制命令p{width}使用举例
http://bbs.sciencenet.cn/home.php?mod=space&uid=111494&do=blog&id=434507\begin{tabular}{ | l | l | l | l | l |}
\hline
Item & Name & Gender & Habit & Self-introd tion \\ \hline
1 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\ \hline
2 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\ \hline
3 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\
\hline
\end{tabular}
\end{center}
http://image.sciencenet.cn/home/215702uzp8vbqf5w9tv8hl.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%With width specified for the last column%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\begin{tabular}{ | l | l | l | l | p{5cm}|}
\hline
Item & Name & Gender & Habit & Self-introd tion \\ \hline
1 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\ \hline
2 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\ \hline
3 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\
\hline
\end{tabular}
\end{center}
latex之表格水平位置转换垂直位置
http://bbs.sciencenet.cn/home.php?mod=space&uid=111494&do=blog&id=434772\begin{sidewaystable}
\centering
\begin{tabular}{lllll}
\hline
Item 1 & Item 2 &Item 3 &Item 4 &Item 5 \\
\hline
\multicolumn{5}{l}{\bf S item 1}\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
&&&&\\
\multicolumn{5}{l}{\bf S item 2}\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
a & b & c &d &e\\
\hline
\end{tabular}
\caption{This is an example of rotate table layout}\label{rotatetable}
\end{sidewaystable}
http://image.sciencenet.cn/home/155824umh9%C3%AD%20htofdq8.png
latex制作复杂表格之multirow,multicolum和cline综合使用简介
http://bbs.sciencenet.cn/home.php?mod=space&uid=111494&do=blog&id=445494\hline
\multicolumn{1}{c|}{\multirow {2}{*}{Canada}}&\multicolumn{1}{|c|}{\multirow {2}{*}{Ontario}}& \multicolumn{2}{|c}{Hamilton}\\\cline{3-4}
\multicolumn{1}{c|}{}&\multicolumn{1}{|c}{}&
\multicolumn{1}{|c|}{Barclay Street} & Emerson Street\\
\hline
\end{tabular}
例子二:
\cline{3-6}
& & \multicolumn{4}{|c|}{Jimmy} \\ \cline{3-6}
& & Canada & China & Ontario & Hamilton \\ \cline{1-6}
\multicolumn{1}{|c|}{\multirow{2}{*}{McMaster}} &
\multicolumn{1}{|c|}{MS} & Mon & T & Wed & Thu & DeGroote School of Business\\ \cline{2-6}
\multicolumn{1}{|c|}{}
\multicolumn{1}{|c|}{IS} & Jan & Feb & Mar & Apr & DeGroote School of Business \\ \cline{1-6}
\end{tabular}