小编Bri*_*all的帖子

使用 Pandoc 和 LaTeX 从 docx 转换为 pdf 时,如何修复“缺少字符”警告?

目标

我有几千个高棉语.docx文件,想.pdf使用Pandoc将它们转换为格式。

背景

我使用 MacPorts 安装了 Pandoc。Pandoc 需要 LaTeX 进行 PDF 转换,所以我安装了MacTeX。安装似乎进行得很顺利,我已经能够毫无困难地将英文.docx文件转换成英文文件.pdf。

尝试 1

当我尝试将高棉语文件(您可以在https://briancroxall.net/pandoc/transcription.docx找到示例)转换为 PDF 时,我使用以下命令:

pandoc transcription.docx  -s -o transcript.pdf

Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Error producing PDF.
! Package inputenc Error: Unicode character ? (U+17A2)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.64 ...??????????? ???}

Try running pandoc with --pdf-engine=xelatex.
Run Code Online (Sandbox Code Playgroud)

尝试 2 …

pdf latex docx file-conversion pandoc

8
推荐指数
1
解决办法
2480
查看次数

标签 统计

docx ×1

file-conversion ×1

latex ×1

pandoc ×1

pdf ×1