如何在asciidoc的书的封面上添加图片? [英] How to add an image to asciidoc book cover page?

查看:380
本文介绍了如何在asciidoc的书的封面上添加图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用asciidoc创建pdf书籍。标题页应包含标题,副标题和图像。到目前为止,我找不到有关如何实现此目标的任何文档。

I would like to create a pdf book using asciidoc. The title page should include the title, subtitle and an image. So far I could not find any documentation on how to achive this.

直观上,我会做类似的事情

Intuivly I would do something like

My book title
=============
:author: myself
:toc:
image:images/titelimage.png[width=400]

但这只是添加了 image :images / titelimage.png [width = 400] 作为字幕。我想拥有的是这样的东西

but this just adds image:images/titelimage.png[width=400] as a subtitle. What I would like to have is something like

My book title
<titleimage>
subtitle

在ascciidoc中可以做到这一点吗?如果没有,我该怎么办?

Is there a way to do this in ascciidoc? If not, what do I need to do to get this?

推荐答案

如果您使用的是asciidoctor-pdf 您可以为徽标定义属性。它将图像放置在文档标题的上方。

If you're using asciidoctor-pdf you can define an attribute for the logo. It will place the image above the document title.

:title-logo-image: images/titelimage.png

请参阅示例pdf 此处和原始adoc

这篇关于如何在asciidoc的书的封面上添加图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆