documentclass[adobefonts,fancyhdr,fntef,header,<%= @option %>]{htexbook}

title{<%= @config %>} author{<%= @config %>} date{<%= @config %>}

defcontentsname{<%= @config %>} deffigurename{<%= @config %>} deftablename{<%= @config %>} defappendixname{<%= @config %>} setcounter{secnumdepth}{-2} setcounter{tocdepth}{0} begin{document} maketitle

frontmatter <%= @preface %>

tableofcontents % listoffigures % listoftables

mainmatter <%= @chapters %>

begin{appendix} <%= @appendix %> end{appendix}

backmatter addcontentsline{toc}{chapter}{refname} bibliography{/usr/local/texlive/2013/texmf-dist/tex/latex/htex/htexbib} newpage addcontentsline{toc}{chapter}{indexname} printindex end{document}