Asciidoctor-pdf: asciidoc-style in table not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Asciidoctor-pdf: asciidoc-style in table not working

wimalopaan
Hi all,

the following table won't be rendered with the images with asciidoctor-pdf. Instead the raw image-block-macro text
appears. Rendering with asciidoctor to html works fine:

[frame="none",grid=none,cols="a,a"]
|====
| A | B 

| image::https://isocpp.org//images/uploads/logo-sun.jpg[Logo] 
| image::http://upload.wikimedia.org/wikipedia/commons/d/da/BjarneStroustrup.jpg[]

| (C) https://isocpp.org/about[Standard C++ Foundation] | Lizenz: http://www.gnu.org/copyleft/fdl.html[GFDL]
|====

Any hints?

Wilhelm

Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-pdf: asciidoc-style in table not working

moderat
Same here, I just tried the example from the Quick Syntax Reference:

[cols="2,2,5a"]
|===
|Firefox
|Browser
|Mozilla Firefox is an open-source web browser.

It's designed for:

* standards compliance
* performance
* portability

http://getfirefox.com[Get Firefox]!
|===

The inline asciidoc syntax is not processed.  I am building the PDF through the Gradle Plugin.
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-pdf: asciidoc-style in table not working

mojavelinux
Administrator

On Thu, Feb 18, 2016 at 8:49 AM, moderat [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Same here, I just tried the example from the Quick Syntax Reference:

[cols="2,2,5a"]
|===
|Firefox
|Browser
|Mozilla Firefox is an open-source web browser.

It's designed for:

* standards compliance
* performance
* portability

http://getfirefox.com[Get Firefox]!
|===

The inline asciidoc syntax is not processed.  I am building the PDF through the Gradle Plugin.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-pdf-asciidoc-style-in-table-not-working-tp4340p4341.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-pdf: asciidoc-style in table not working

mojavelinux
Administrator
In reply to this post by wimalopaan

On Thu, Feb 18, 2016 at 3:52 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
[frame="none",grid=none,cols="a,a"]
|====
| A | B 

| image::https://isocpp.org//images/uploads/logo-sun.jpg[Logo] 
| image::http://upload.wikimedia.org/wikipedia/commons/d/da/BjarneStroustrup.jpg[]

| (C) https://isocpp.org/about[Standard C++ Foundation] | Lizenz: http://www.gnu.org/copyleft/fdl.html[GFDL]
|====

In this case, you could just switch to inline images, in which case you don't need to use the AsciiDoc table cell type.

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-pdf: asciidoc-style in table not working

wimalopaan
If I change the imahe-block-macro to an inline-macro and use local image-files all seems to be well.

If I use the foreign-url for the first oft the to images, I get the following error messages:


⏚ [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/ppc/doc] ppc(2) ‡ make pdf
~/.gem/ruby/2.3.0/gems/asciidoctor-pdf-1.5.0.alpha.11/bin/asciidoctor-pdf -I ~/asciidoctor/extensions/lib  -a allow-uri-read -r asciidoctor-diagram -r tree-block-macro -a pdf-stylesdir=themes -a pdf-style=basic.yml --trace -a data-uri -a stylesdir=css -a stylesheet=asciidoctor-wide.css -a revnumber=1.1 -a revdate="Do 18. Feb 20:58:04 CET 2016" -a revremark=SS2016 -a pagenums -o test_r.pdf test.adoc
/home/lmeier/.gem/ruby/2.3.0/gems/asciidoctor-pdf-1.5.0.alpha.11/lib/asciidoctor-pdf/formatted_text/inline_image_renderer.rb:42:in `unlink': No such file or directory @ unlink_internal - /tmp/image-20160218-25713-1kytzrx.jpg (Errno::ENOENT)
        from /home/lmeier/.gem/ruby/2.3.0/gems/asciidoctor-pdf-1.5.0.alpha.11/lib/asciidoctor-pdf/formatted_text/inline_image_renderer.rb:42:in `render_behind'
        from /home/lmeier/.gem/ruby/2.3.0/gems/prawn-2.0.2/lib/prawn/text/formatted/box.rb:558:in `block in draw_fragment_underlays'
        from /home/lmeier/.gem/ruby/2.3.0/gems/prawn-2.0.2/lib/prawn/text/formatted/box.rb:557:in `each'

Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-pdf: asciidoc-style in table not working

mojavelinux
Administrator

On Thu, Feb 18, 2016 at 12:52 PM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
If I use the foreign-url for the first oft the to images, I get the following error messages:

shoot, I fixed this in one part of the code but looks like I missed the other part. Feel free to file an issue. Basically, different versions of Ruby handling temporary files differently and so we should not fail to delete a file that has already been deleted (by Ruby itself).

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen