是否有一种方法可以使注视者中的notes
换行而不是使页面运行不完整?
stargazer(fit.1, notes="A very very long note that I would like to put below the table, but currently runs off the side of the page when I compile my document. How do I get this to wrap into paragraph form?")
哪个生产:
\hline \\[-1.8ex]
\textit{Notes:} & \multicolumn{2}{l}{$^{*}$P $<$ .05} \\
& \multicolumn{2}{l}{$^{**}$P $<$ .01} \\
& \multicolumn{2}{l}{$^{***}$P $<$ .001} \\
& \multicolumn{2}{l}{A very very long note that I would like to put below the table, but currently runs off the side of the page when I compile my document. How do I get this to wrap into paragraph form?} \\
\normalsize
\end{tabular}
\end{table}
我在调整手册中找不到任何东西。
notes
参数接受一个字符串向量,并将它们放在换行符上。在您的示例中,以下应该起作用:
stargazer(linear.1, notes=c("A very very long note that I would like to put below the table,",
"but currently runs off the side of the page",
"when I compile my document.",
"How do I get this to wrap into paragraph form?"))
我个人建议使用更乳胶的解决方案。基本上,在您的tex文件中创建表环境,添加标题等。然后,在表环境中的小型页面环境中粘贴或\输入您的观星器输出(使用float = FALSE),然后加上注释。
Ex:
`\ documentclass {article}
\ begin {document}
\开始{table}\ caption {您的标题}
\begin{minipage}{0.85\textwidth}
\begin{tabular}{|l|l|l|}
\hline
999 & 888 & 777 \\
\hline
\end{tabular}
\\
\\
{\ footnotesize注意:我想在表格下面放一个很长的注释,但是当我编译文档时,该注释当前不在页面的一侧。我如何将其包装成段落形式? \ par}
\end{minipage}
\ end {table}
\ end {document}`
发布完整的示例也很有帮助。我知道这已经很老了,但该帖子仍显示在Google搜索中。