從 semTable 套件編譯 Latex-table 時出錯

從 semTable 套件編譯 Latex-table 時出錯

我正在嘗試使用 R 中 semTable-package 中的表格在 texmaker 中編譯 PDF。由於我是 LaTex 的新手,因此我很樂意提供一些解決問題的建議。對於熟練的 LaTex 用戶來說,這可能是個笑話。這是我的程式碼,我將其簡化為僅顯示相關部分:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\begin{document}

\begin{tabular}{@{}r*{4}{S[
                         input-symbols = ( ) +,
                         group-digits = false,
                         table-number-alignment = center,
                         %table-space-text-pre = (,
                         table-align-text-pre = false,
                         table-align-text-post = false,
                         table-space-text-post = {***},
                         parse-units = false]}@{}}
& \multicolumn{4}{c}{Model}\tabularnewline \hline
& \multicolumn{1}{c}{Estimate}& \multicolumn{1}{c}{Std. Err.}& \multicolumn{1}{c}{z}& \multicolumn{1}{c}{p}\tabularnewline\hline
& \multicolumn{4}{c}{\underline{Factor Loadings}}\tabularnewline \multicolumn{1}{l}{\underline{ABU}}\tabularnewline
NoSKMSM& 1.00$^+$& & & \tabularnewline
KSMChrMX& 0.69& 0.03& 25.78& .000\tabularnewline
KSMSevMx& 0.68& 0.02& 31.20& .000\tabularnewline
 \multicolumn{1}{l}{\underline{NEG}}\tabularnewline
NoSNeg& 1.00$^+$& & & \tabularnewline
NegChrMX& 0.98& 0.03& 31.03& .000\tabularnewline
NegSevMx& 1.11& 0.05& 23.19& .000\tabularnewline
& \multicolumn{4}{c}{\underline{Fit Indices}}\tabularnewline
$\chi^{2}(\mathrm{df})$& 7944.00& & & \tabularnewline
CFI& 0.55& & & \tabularnewline
RMSEA& 0.19& & & \tabularnewline
SRMR& 0.16& & & \tabularnewline
Scaled $\chi^{2}(\mathrm{df})$& 2872.83(302)& & & .000\tabularnewline
\hline\multicolumn{5}{l}{$^+$Fixed parameter}\tabularnewline
\end{tabular}


\end{document}

先致謝!

相關內容