\usepackage{longtable} \begin{longtable}{l|c|c} % \centering \caption[Short Caption]{Full Caption Content \label{table:longtable_example} \\ % 下面是表头 \hline Col1 & Col2 & Col3 \\ \hline \endfirsthead % 下面数字 d1 & d2 & d3 \\ d1 & d2 & d3 \\ d1 & d2 & d3 \\ d1 & d2 & d3 \\ d1 & d2 & d3 \\ d1 & d2 & d3 \end{longtable
amsfonts,amssymb,bm} %数学 \usepackage{graphicx} % 图片 \usepackage{subcaption} % 图片描述 \usepackage{longtable textwidth} \includegraphics[width=\textwidth]{3D绕轴翻转} \end{subfigure} \end{figure} 表格 用了longtable 宏包 \setlength\LTleft{0pt} \setlength\LTright{0pt} \begin{longtable}[]{@{}llll@{}} \toprule \(r\cdot 2 1004535809 & 479 & 21 & 3\tabularnewline 2013265921 & 15 & 27 & 31\tabularnewline \bottomrule \end{longtable
subsubsection{Commetary on Model 2} The instance of long and wide tables are shown in Table \ref{tb:longtable % 长表格示例,更多用法请参考 longtable 宏包文档 % 以下环境及对应参数可实现表格内的自动换行与表格的自动断页 % 您也可以选择自行载入 tabularx 宏包,并通过 X 参数指定对应列自动换行 \begin{longtable}{ p{4em} p{14em} p{14em} } \caption{Basic Information about Three Main Continents ( scratched from Wikipedia)} \label{tb:longtable}\\ \toprule Continent & Description & Information \\ \ population of about 741 million (about 11\% of the world population) as of 2018. \\ \bottomrule \end{longtable
[escape, longtable, repr] - display. Valid values: False,True [default: True] [currently: True] display.latex.longtable :bool This specifies if the to_latex method of a Dataframe uses the longtable format.
display.latex.escape True Escapes special characters in DataFrames, when using the to_latex method. display.latex.longtable False Specifies if the to_latex method of a DataFrame uses the longtable format. display.latex.multicolumn
注:如果表格太长无法在一页的话,需要将table换成longtable,并需要使用宏包。
endif$ $if(verbatim-in-note)$ \usepackage{fancyvrb} \VerbatimFootnotes $endif$ $if(tables)$ \usepackage{longtable
If "longtable" is used results in a specific longtable environment format. If "longtable" is used results in a specific longtable environment format.
df.to_markdown() # 显示 markdown 代码 df.to_string() # 显示格式化字符 df.to_latex(index=False) # LaTeX tabular, longtable