Method: IsoDoc::HtmlFunction::Html#html_preface

Defined in:
lib/isodoc/html_function/html.rb

#html_preface(docxml) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/isodoc/html_function/html.rb', line 169

def html_preface(docxml)
  html_cover(docxml) if @htmlcoverpage
  html_intro(docxml) if @htmlintropage
  docxml.at("//body") << mathjax(@openmathdelim, @closemathdelim)
  docxml.at("//body") << sourcecode_highlighter
  #if @scripts
  #  scripts = File.read(@scripts, encoding: "UTF-8")
  #  a = docxml.at("//body").add_child docxml.create_cdata(scripts)
  #end
  html_main(docxml)
  docxml
end