📅  最后修改于: 2022-03-11 14:47:14.684000             🧑  作者: Mango
doc.packages.append(Package('adjustbox')) # Include the package
doc.append(NoEscape(r'\begin{adjustbox}{width=1\textwidth}'))
table.append(NoEscape(df.to_latex(escape=False))) # Your df.to_latex() code here
doc.append(NoEscape(r'\end{adjustbox}'))