question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: :front-cover-image: for asciidoctor-fopub

See original GitHub issue

This post was updated on Oct 27, 2016; 10:12am. I just discovered the new attribute :front-cover-image: for asciidoctor-pdf. I will try to implement something similar for asciidoctor-fopub. Help or ideas are very much appreciated.

   :notitle:
   :front-cover-image: path/to/my/titlepage-image.svg

It will render the svg-image instead of a titlepage.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
getreucommented, Nov 4, 2016

Thank you!

Concerning the asciidoctor xml output, this is what docbook expects: See cover

<book xmlns='http://docbook.org/ns/docbook'>
<info>
  <title>DocBook</title>
  <subtitle>The Definitive Guide</subtitle>
  <!-- THIS IS FRONT COVER -->
  <cover>
    <mediaobject>
      <imageobject>
    <imagedata fileref="graphics/duck-cover.png">
    </imagedata>
      </imageobject>
    </mediaobject>
  </cover>
  <!-- THIS IS BACK COVER -->
  <cover>
    <mediaobject>
      <imageobject>
    <imagedata fileref="graphics/duck-backcover.png"/>
      </imageobject>
    </mediaobject>
  </cover>
</info>

<preface>
<title>Preface</title>

<para>DocBook provides a system …</para>
</preface>

<!-- … -->

</book>

TODO

  • Make asciidoctor translate :front-cover-image: to <cover> when -b docbook
  • Create a template that uses <cover> in asciidoctor-fopub
0reactions
mojavelinuxcommented, Nov 18, 2016

Make asciidoctor translate :front-cover-image: to <cover> when -b docbook

I’d be glad to implement this. We can support both front and back. Great idea. Can you file in issue in asciidoctor core?

Read more comments on GitHub >

github_iconTop Results From Across the Web

not overriding the default AsciiDoctor cover image · Issue #15
I am using this syntax inside the master file to include a cover image (while experimenting with ASCIIDoc to EPUB): : front-cover-image: ...
Read more >
Covers - Asciidoctor Docs
Front and back covers. You can specify an image or a PDF page to use as either cover of the document directly in...
Read more >
Add cover image for AsciiDoc Epub3 - Stack Overflow
The value of the front-cover-image attribute must follow a strict syntax. Using your example, the syntax must be: :front-cover-image: image:cover.png[Front ...
Read more >
File: README — Documentation for asciidoctor (2.0.18)
Asciidoctor is the processor. Asciidoctor reads the AsciiDoc source, as shown in the panel on the left in the image below, and converts...
Read more >
AsciiDoc - Visual Studio Marketplace
By default, the PDF export feature relies on asciidoctor-pdf . ... include statements, images, links, header, headings, lists, blocks, etc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found