style/custom-pdf-converter.rb
# Customize the layout of part titles
Customize the layout of part titles
Customize the layout of part titles
def layout_part_title node, title, opts = {}
    puts 'Processing node.id:' + node.id
    puts 'Processing title:' + title
    num_part, title = title.split ':', 2
    move_down 150
    typeset_text num_part + "\n" + title, (calc_line_metrics 1.5), inline_format: true, align: :center
  end
def layout_part_title node , title , opts = { } puts 'Processing node.id:' + node . id puts 'Processing title:' + title num_part , title = title . split ':' , 2 move_down 150 typeset_text num_part + "\n" + title , ( calc_line_metrics 1.5 ) , inline_format : true , align : :center end
Customize the layout of part titles
Customize the layout of part titles
node
<not_specific>
title
<not_specific>
opts
<not_specific>