使用 pandoc 将 LaTeX 文档转换为单词 -- 多列表的问题



我使用pandoc将我的乳胶文档转换为word文档。

我的大多数表都有多列。跨多列的单元格行不会出现在我的最终 Word 文档中,我真的不明白为什么。

这里有一些 LaTeX 示例代码:

documentclass{article} 


usepackage[utf8]{inputenc} 
usepackage[T1]{fontenc}                                    
usepackage{enumerate}  
usepackage[ngerman,british]{babel}                             
usepackage{amsfonts,amssymb, mathtools}
usepackage{bm}                     
usepackage{graphicx}           
usepackage{tabularx}
usepackage{longtable}
usepackage{booktabs}


begin{document}
Here the table: 
begin{table}[tbp] centering
caption{Test table} 
begin{tabularx}{textwidth}{XXXXX}
toprule
& multicolumn{2}{l}{emph{Cat 1}} & multicolumn{2}{l}{emph{Cat 2}} \
addlinespace
Data & Estimate & Standard error & Estimate & Standard error\
cmidrule(){1-1} cmidrule(l){2-3} cmidrule(l){4-5}
Group all & -0.009 & 0.008 & -0.008 & 0.008\
addlinespace
Group A & -0.009 & 0.011 & -0.001 & 0.009\
Group B & -0.010 & 0.011 & -0.016 & 0.013\
bottomrule
multicolumn{5}{l}{${*}$ emph{p} < 0.1, ${*}{*}$ emph{p} < 0.05, ${*}{*}{*}$ emph{p} < 0.01}
end{tabularx}

vspace{0.5em}
parbox{.9textwidth}{raggedright emph{%
Notes: 
Some notes.
} }
end{table} 
end{document}

带有 \multicolumn 的行在 Word 文档中为空(也没有水平线(。

有没有办法允许乳胶表中的多列,并让 pandoc 将这些包含在生成的 Word 文档中?

为了完整起见,我的Mac终端代码将其从乳胶转换为单词:

pandoc -o foo.docx foo.tex

截至 2020 年 6 月,Pandoc 不支持 LaTeX 中的多列表。有关详细信息,请参阅此问题。

最新更新