如何让 tex4ht ODT 输出尊重 \clearpage 2024-5-24 • tex4ht 我有一个 LaTeX 文档,其中有一些\clearpage已发布的 s ,我正尝试使用 将其转换为 ODT tex4ht。虽然在 html 输出中忽略 是可以理解的\clearpage,但在 ODT 输出中考虑它也是有意义的。 请考虑以下文档: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1] \clearpage \lipsum[2] \end{document} 处理方式: make4ht -f odt document.tex 将输出单页: 我怎样才能获得\clearpage尊重? 答案1 尝试这个配置文件: \Preamble{xhtml} \begin{document} \csname append:def\endcsname\clearpage{\Hclearpage} \EndPreamble 它将\Hclearpage命令附加到后面\clearpage。此命令插入: <text:p text:style-name="clearpage"></text:p> 它请求分页符: 相关内容 各种编译的 PDF 图像的打印质量[关闭] 找不到“libpam” 为什么我的扬声器可以节省电量? 带有 vps directspace 的 DNS 服务器名称 Azure Web 应用本地网络通信 强制注销用户 .doc 和 .pdf 文档中的自定义字体 使用 Chrome PDF 查看器时如何邮寄 PDF? 修复 BAT 文件关联(使其重新启动) Nginx/postgres 没有使用所有核心