User Configuration Files

  • Load a configuration file with the command line.

    command      filename  "cfg-file,options"

  • The configuration file should have the form

         \Preamble{options}
               configurations before the header of HTML
         \begin{document}
               configurations within the header of HTML
         \EndPreamble

Don’t include TeX4ht code in the source LaTeX files!

% file.cfg  
 
\Preamble{html}  
\begin{document}  
   \def\greeting{Hello}  
   \def\LaTeX{TeX4ht}  
\EndPreamble  
xhlatex source "file"
% source.tex  
\documentclass{article}  
   \def\greeting{Hi}  
\begin{document}  
   \greeting{} from \LaTeX !  
\end{document}  

9, next, prev, up, toc