问题描述
这是我到目前为止所拥有的:
`r Name`
\begin{tabular}{cccccc}
\textbf{ID} & \textbf{Code} & \textbf{Amount} \\
`r id` & `r code` & \$ `r amount`
\end{tabular}
\begin{flushright} \textbf{SUBTOTAL: \$ `r subtotal`} \\
\textbf{FEE: \$ `r fee`} \\
\textbf{TOTAL: \$ `r total`} \end{flushright}
结果应如下所示:
我的结果仅返回一行,但总数相同。
解决方法
我将使用ktable。
kable(table,"latex")