Sha256: 513f88b9ee0560b22bda8f94f12baca8350d43682196f91d05bc6f7b88b58d6b

Contents?: true

Size: 1.16 KB

Versions: 74

Compression:

Stored size: 1.16 KB

Contents

== Covers

You can specify an image or a PDF page to use as either cover of the
document directly in your theme.

=== Front and back covers

The front cover image is assigned using the front-image key, and the
back cover image using the back-image key. Specifying the path as the
target of an inline image macro allows you to specify parameters for
that image, as shown here:

.Example
----
cover:
  front:
    image: image:cover.pdf[page=2]
  back:
    image: image:splash.png[fit=fill]
----

A cover image is handled like a background image, so the fit, width, and
position attributes can be specified.

=== Fit, width, and position

By default, background images are automatically scaled to fit the bounds of
the page (i.e., fit=contain) and centered (i.e., position=center). Wrapping
the value in the image macro allows you to customize an image’s size and
position. The size of the image assigned with an image macro can be
controlled using the sizing attributes, fit, pdfwidth, scaledwidth, or
width, when fit=none. The position of the image can be controlled using
the position attribute.

.Example
----
page:
  background-image: image:page-bg.png[fit=none,position=top center]
----

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
j1-template-2024.3.19 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.18 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.17 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.16 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.15 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.14 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.13 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.3.12 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.2.1 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.2.0 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.5 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.4 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.3 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.2 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.1 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.1.0 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.0.3 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.0.2 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.0.1 lib/starter_web/_data/asciidoc2pdf/images/cover/readme
j1-template-2024.0.0 lib/starter_web/_data/asciidoc2pdf/images/cover/readme