Method: IsoDoc::Convert#toc_init
- Defined in:
- lib/isodoc/init.rb
#toc_init(docxml) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/isodoc/init.rb', line 21 def toc_init(docxml) x = "//metanorma-extension/presentation-metadata" \ "[name[text() = 'TOC Heading Levels']]/value" n = docxml.at(ns(x.sub(/TOC/, "DOC TOC"))) and @wordToClevels = n.text.to_i n = docxml.at(ns(x.sub(/TOC/, "HTML TOC"))) and @htmlToClevels = n.text.to_i end |