【发布时间】:2021-04-12 08:02:35
【问题描述】:
我尝试将 Markdown 文件转换为 PDF 格式
FOR %%i IN (*.md) DO pandoc "%%~fi" -o "%%~dpni.pdf" --template=weber-export.tex --pdf-engine=xelatex
但它不会转换 pandoc 表。而是出现错误提示
Error producing PDF.
! Missing number, treated as zero.
<to be read again>
(
l.357 ...columnwidth - 2\tabcolsep) * \real{0.33}}
它不会转换的表的简单版本是:
Consumption / yield
---------------------
+--+---+--+
| | | |
| | | |
| | | |
+--+---+--+
| | | |
| | | |
| | | |
+--+---+--+
| | | |
| | | |
| | | |
+--+---+--+
和
-------------------------------------------------------------------
Type Sales unit Number
------------------------------- ------------ ----------------------
Plastic bucket 30 liters 18 buckets
-------------------------------------------------------------------
就像它在Pandoc User's Guid中解释的那样
我在 Win 10 上安装了 Miktex 2.9 和 pandoc 2.11.2
没有表格,转换效果很好,即使我尝试没有第一行的表格
Type Sales unit Number
------------------------------- ------------ ----------------------
Plastic bucket 30 liters 18 buckets
-------------------------------------------------------------------
它有效。
有什么建议吗?这是一个错误,还是我做错了什么?
【问题讨论】:
标签: pdf markdown pandoc xelatex miktex