Method: IsoDoc::PresentationXMLConvert#toc_title
- Defined in:
- lib/isodoc/presentation_function/title.rb
#toc_title(docxml) ⇒ Object
89 90 91 92 93 94 95 96 |
# File 'lib/isodoc/presentation_function/title.rb', line 89 def toc_title(docxml) docxml.at(ns("//preface/clause[@type = 'toc']")) and return ins = toc_title_insert_pt(docxml) or return id = UUIDTools::UUID.random_create.to_s ins.previous = <<~CLAUSE <clause type = 'toc' id='_#{id}'><fmt-title depth='1'>#{@i18n.table_of_contents}</fmt-title></clause> CLAUSE end |