问题标签 [asciidoctor-pdf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
926 浏览

java - Asciidoctor 将多个 adocs 转换为 pdf

我在测试方法中使用 asciidoctorj 来生成我的 pdf

将为每个文件生成一个pdf,但我希望它们都在一个pdf中,我该怎么做?

我正在使用 asasciidoctorj 版本 1.5.4 和 asciidoctorj-pdf 版本 1.5.0-alpha.11

0 投票
2 回答
5493 浏览

maven - AsciiDoctor 表格单元格中的多个段落

编辑:由于我的问题似乎特定于我的设置,我在这里提供了一个完整的最小工作示例。

这是我的 Maven 设置(pom.xml):

这是我的 AsciiDoc 源代码(src/test.adoc):

AsciiDoc 文件编译时使用:

这是生成的输出 ( target/generated-docs/test.pdf)

为什么 AsciiDoc 不呈现两个段落?

其他无法按预期工作的事情(每个示例都将整个单元格内容推送到一个段落中):

  • 明确指定a单元格:
  • 列表:
  • 作为非标题:
0 投票
2 回答
655 浏览

asciidoctor - 在 asciidoc 中,我如何只为 pdf 生成执行宏?

在 asciidoc 中有一个图像,我只想包含用于 PDF 输出。是否有一种属性可以传递给 image:: 以便处理图像以生成 PDF,并在生成 epub 等时忽略?或者更可能通过使用 ifdef,但究竟如何?

0 投票
1 回答
124 浏览

asciidoc - Ascii-doc pdf上的书籍封面问题

我刚刚完成了我的第一本 ascii-doc 书并添加了一张图片作为封面。问题是,在生成 PDF 文件时,书中的第一个 Heading 打印在图像封面的中间:

我尝试在 :title-logo-image 之后添加分页符(“<<<”),但最终 PDF 文件中根本不包含该图片。有什么帮助吗?谢谢

0 投票
1 回答
146 浏览

asciidoc - Asciidoctor-pdf Bookmark Depth

Is there a way to increase the generated pdf bookmark list's depth? I am referring to the left navigation bookmark panel when opening in readers such as Adobe reader. It appears that asciidoctor-pdf only generates to level 3 depth. or "===" depth in asciidoc.

In the above example, sub section a and b would be missing from the bookmarks.

0 投票
2 回答
1436 浏览

asciidoctor - Asciidoctor 嵌套表

我正在尝试在我的 Asciidoctor pdf 输出中创建嵌套表,但我找不到语法。

如果我理解正确,从 1.5.0 开始,Asciidoctor 应该支持嵌套表。我正在运行一个具有 1.5.5 ( https://github.com/asciidoctor/docker-asciidoctor ) 的 Docker 容器。

我已经按照表 11 中的示例进行了尝试:http ://www.methods.co.nz/asciidoc/newtables.html但无济于事。

0 投票
0 回答
93 浏览

maven - 禁用字幕(AsciiDoc PDF 输出)

使用 AsciiDoc 生成 PDF 时有什么方法可以禁用字幕?问题是我想将字幕保留在 HTML 输出中,而不是 PDF 输出中。

提前非常感谢:)

PS:我正在为 AsciiDoc 使用 Maven 插件。

0 投票
1 回答
343 浏览

java - 在批处理脚本中循环后不打印任何内容

下面是我的批处理脚本,它在 for 循环结束后没有执行该行。它不是 print echo end 或之后的行。线路asciidoctor-pdf C:\Users\abc\Conversion_to_PDF\OutputFiles\*.adoc导致它。但我不确定问题是什么。

0 投票
3 回答
139 浏览

asciidoc - 提升关卡后如何恢复到之前的编号值和缩进?

这个:

将导致:

但我怎样才能做到这一点:

所以 " How do I get back to level 1?" 的缩进与Level one.?

0 投票
3 回答
430 浏览

asciidoc - 是否可以在 Asciidoctor 中关闭语法突出显示?

我使用Asciidoctor创建了我的JHipster Mini-Book。它在 PDF、MOBI、EPUB 和 HTML 中看起来很棒。我还创建了一个可打印的 (PDF) 版本。可打印的版本通过 Lulu,并以黑白打印。

可打印的 PDF 的代码列表是彩色的,这会导致代码列表在打印时难以阅读,尤其是在它们是浅灰色的情况下(例如,注释)。有没有办法在 Asciidoctor 中关闭语法高亮显示?