Login  Register

Re: two captions for a image block

Posted by al-asciidoctor on Dec 11, 2018; 10:35pm
URL: https://discuss.asciidoctor.org/two-captions-for-a-image-block-tp6638p6644.html

As I'm new to this asciidoctor and slim stuff I hope you are not to  angry for my dump questions.

Now I have tried the following.

* create a directory `templates`
* create a file `upper-caption.html.slim` as the default caption is below the image and I need one above.
* content of `upper-caption.html.slim`

.imageblock
  upper-caption=testi

Now when I run the asciidoctor command I get the follwing output.

asciidoctor -a attribute-missing=warn -v --trace -T ../templates/upper-caption.html.slim Kopie.adoc
D:/APPS/msys64/mingw64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- tilt (LoadError)
...

What's my mistake?

> answer my self.
install tilt : gem install tilt