documentclass[adobefonts,fancyhdr,fntef,footer,<%= @option %>]{htexart}

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

defcontentsname{<%= @config %>} deffigurename{<%= @config %>} deftablename{<%= @config %>} defappendixname{<%= @config %>}

begin{document} maketitle

tableofcontents

<%= @chapters %>

addcontentsline{toc}{section}{refname} bibliography{/usr/local/texlive/2013/texmf-dist/tex/latex/htex/htexbib} end{document}