Setting a Script

  • A new configuration file context.4ht got created, to include the TeX4ht code needed for the compilations3
  • Commands similar to the following ones got introduced to implicitly load context.4ht at \starttext

    htcontextfilename


    htcontext filename "html,options"


    htcontext filename "cfg-file,options"


    xhcontextfilename
    • The \starttext instruction marks the end of the preamble and the start of the body.
    • Hence, the code in context.4ht has the last word on how the environment for the compilation will look like
% context.4ht  
 
\input tex4ht.sty  
\Preamble{xhtml}  
 
\EndPreamble  
% hello.tex
 
\starttext  
Hello world.  
\stoptext  

17, next, prev, up, toc