Open saturnflyer opened 9 years ago
I'm on OS X and using homebrew. My prince
install wasn't linked properly. After fixing it (I think) the error changes:
create build/master/prince_master.xhtml from build/master/master.xhtml
rake aborted!
NoMethodError: undefined method `first_element_child' for nil:NilClass
/Users/jim/Projects/quarto/lib/quarto/prince.rb:134:in `create_prince_master_file'
/Users/jim/Projects/quarto/lib/quarto/prince.rb:50:in `block in define_tasks'
/Users/jim/.gem/ruby/2.2.0/bin/ruby_executable_hooks:15:in `eval'
/Users/jim/.gem/ruby/2.2.0/bin/ruby_executable_hooks:15:in `<main>'
The toc.xml
file generated in build/prince is completely blank.
The following command is operating on a blank toc file.
pandoc --table-of-contents --standalone build/master/master.xhtml | xmlstarlet sel -I -t -c "//*[@id='TOC']" > build/prince/toc.xml
When I looked at the contents of the generate xml file, there was not element with an id of "TOC"
pandoc --table-of-contents --standalone build/master/master.xhtml | less
I'm looking into pandoc to find out why it's not creating that element. I'm not sure if there's something that I need to do or if pandoc makes assumptions and creates the TOC automatically
This likely has more to do with my system than a problem with quarto but my PDFs are not being created. Here's what I'm seeing:
Here's my relevant config:
What can I do to debug this?