On 13 March 2014 01:59,  <[email protected]> wrote:
> Assuming this asciidoc text:
>
> == Introduction
>
> .Optional Note Topic
> NOTE: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
> eiusmod tempor incididunt ut labore et dolore magna aliqua.  Lorem ipsum
> dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
> incididunt ut labore et dolore magna aliqua.
>
> These commands produced artifacts with icons (using FOP rather than
> dblatex):
>
> $ a2x -v -f pdf -d book -a docinfo --icons-dir=./images/icons --fop book.asc
>
> $ a2x -v -f epub -d book -a docinfo --icons-dir=./images/icons --fop
> book.asc

Note that --fop is only relevant to pdf outputs, here you are
generating epub so it is ignored.

>
> Unfortunately, the optional topic (.Optional Note Topic) wasn't included in
> either.

Asciidoc docbook generation does not support titles for admonition
paragraphs, you can use titles with admonition blocks.

>
> If I reference the icons in the asciidoc distriubtion:
>
> $ a2x -v -f pdf -d book -a docinfo
> --icons-dir=/usr/local/etc/asciidoc/images/icons --fop book.asc

The PDF toolchains read the images, so they can read any path.

>
> $ a2x -v -f epub -d book -a docinfo
> --icons-dir=/usr/local/etc/asciidoc/images/icons --fop book.asc

a2x copies resources from a source location to the location relative
to the destination dir that the HTML links point to.   It will only
copy into the destination tree to avoid accidents.  Since you used an
absolute path, the link points to an absolute location, not to the
relative directory within the epub zip file tree.  So a2x can't
include that resource so it produces an error.

Note that if --icons is specified the system path will be searched, so
no absolute path is needed.

Cheers
Lex

>
> The PDF renders (still without .Optional Note Topic), but the epub command
> gives me an error that reads: a2x: ERROR: absolute resource file name:
> /usr/local/etc/asciidoc/images/icons/note.png

>
> Hope this helps.
>
> Craig
>
> On Wednesday, February 1, 2012 4:06:00 AM UTC-6, Tony wrote:
>>
>> Hi,
>>
>> Just new to asciidoc. Great tool!
>> I read the user guide and search on the web, here and the asciidoc FAQ
>> but didn't find any answer to this issue.
>>
>> I have a txt file where i can see icons (TIP, IMPORTANT) in the html
>> output with a2x.
>> According to the user guide I used the --icons-dir attribute that
>> point to the icons PATH
>> (/usr/local/etc/asciidoc/images/icons).
>> I don't see icons in the pdf output !!
>>
>> Can anyone tell me what I'm doing wrong? Is there something else to do
>> that is not documented?
>>
>> Thank you for your answer.
>> FD
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to