观星者注意线条包裹?

Bry*_*yan 7 latex r stargazer

有没有办法让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?")
Run Code Online (Sandbox Code Playgroud)

哪个产生:

\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} 
Run Code Online (Sandbox Code Playgroud)

我在手册中找不到任何调整此内容的内容.

小智 9

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?"))
Run Code Online (Sandbox Code Playgroud)

  • 根据布莱恩上面的评论,如果未来版本的观星者将矢量的每个元素都放入自己的parbox中,那将是很棒的.手动打破线条似乎至少是不优雅的. (9认同)
  • 谢谢,会考虑. (4认同)