using asciidoctor-latex and asciidoctor-bibtex together is not working

classic Classic list List threaded Threaded
1 message Options
3hm
Reply | Threaded
Open this post in threaded view
|

using asciidoctor-latex and asciidoctor-bibtex together is not working

3hm
Hey there,

I have no luck in bringing asciidoctor-latex and asciidoctor-bibtex together. Converting the file works fine if I use only -pdf and -bibtex together or just the -latex command. I am running the latest update with the --pre flag. The error I get is:

asciidoctor-latex -r asciidoctor-bibtex sample-1.adoc --trace

/usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:816:in `inline_anchor_process': undefined method `gsub' for ni
l:NilClass (NoMethodError)
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:740:in `tex_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/converter.rb:554:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/inline.rb:39:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:1003:in `block in sub_inline_anchors'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:990:in `gsub'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:990:in `sub_inline_anchors'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:976:in `sub_macros'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:117:in `block in apply_subs'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:106:in `each'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/substitutors.rb:106:in `apply_subs'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/list.rb:77:in `text'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:250:in `block in olist_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:249:in `each'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:249:in `olist_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:215:in `tex_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/converter.rb:554:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:75:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/list.rb:30:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `block in content'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `map'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `content'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:197:in `tex_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/converter.rb:554:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:75:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `block in content'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `map'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/abstract_block.rb:84:in `content'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/document.rb:1261:in `content'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/node_processors.rb:160:in `tex_process'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/lib/asciidoctor/latex/converter.rb:554:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/document.rb:1190:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor.rb:1521:in `convert'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor.rb:1595:in `block in convert_file'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor.rb:1595:in `open'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor.rb:1595:in `convert_file'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/cli/invoker.rb:129:in `block in invoke!'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/cli/invoker.rb:112:in `each'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-1.5.8/lib/asciidoctor/cli/invoker.rb:112:in `invoke!'
        from /usr/lib/ruby/gems/2.5.0/gems/asciidoctor-latex-1.5.0.17.dev/bin/asciidoctor-latex:20:in `<top (required)>'
        from /usr/bin/asciidoctor-latex:23:in `load'
        from /usr/bin/asciidoctor-latex:23:in `<main>'

Does anybody have an idea how to proceed? Thanks