On Thu, Sep 20, 2012 at 8:09 PM, Denis Bitouzé <span dir="ltr"><<a href="mailto:dbitouze@wanadoo.fr" target="_blank">dbitouze@wanadoo.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
if I'm right, a command line as follows:<br>
<br>
  htlatex "config-file,xhtml,fn-in,charset=utf-8" " -cunihtf -utf8"<br>
<br>
may be shortened in:<br>
<br>
  htlatex "config-file" " -cunihtf -utf8"<br></blockquote><div><br>Yes please. <br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if config-file.cfg contains:<br>
<br>
  \Preamble{xhtml,fn-in,charset=utf-8}<br></blockquote><div><br>Absolutely.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My question is about the second set of options, namely:<br>
<br>
  " -cunihtf -utf8"<br>
<br>
is it possible to also store them in the config-file.cfg file?<br></blockquote><div><br>Not possible. But you can define your own htlatex like custom script (say, foolatex) which when run like<br><br>  foolatex <your file><br>
<br>will in effect do what you wanted.<br><br>Here is a a source file which I use for html5 trials. You might modify to suit your requirements:<br><br><font size="1"><span style="font-family:courier new,monospace">  \def\script{unix} <br>
  \input mkht.4ht <br>  \one{new,html5,fn-in,charset=utf-8} <br>  \two{-cunihtf  -utf8} <br>  \three{#1 -d/tmp/} <br>  \make{ht5} <br>  \end{document}<br></span></font><br><span style="font-family:courier new,monospace"><font size="1">\script{..}</font></span> -- argument can be <span style="color:rgb(102,0,204)">unix</span> or <span style="color:rgb(102,0,204)">bat</span><br>
<br><font size="1"><span style="font-family:courier new,monospace">\one{...}</span></font> -- can have all options passed on to LaTeX <br>                (in your case, <span style="color:rgb(102,51,255)">config-file,xhtml,fn-in charset=utf-8</span>)<br>
<br><font size="1"><span style="font-family:courier new,monospace">\two{...}</span></font> -- options passed to tex4ht binary which post-processes dvi<br>                (in your case, <span style="color:rgb(102,0,204)"> -cunihtf -utf8</span>)<br>
<br><font size="1"><span style="font-family:courier new,monospace">\three{...}</span></font> -- options passed to t4ht binary which generates css, images and does all other system specific stuff like moving all output to a custom directory, or execution of any shell specific commands. <br>
<br><font size="1"><span style="font-family:courier new,monospace">\make{...}</span></font> -- base name for your scripts.<br><br>Save the file as cmd.tex (or any name you like) and run LaTeX on cmd.tex which will produce seven script files as shown below:<br>
<br><span style="font-family:courier new,monospace"><font size="1">--- Writing file --- ht5latex.unix ---<br>--- Writing file --- ht5tex.unix ---<br>--- Writing file --- ht5texi.unix ---<br>--- Writing file --- ht5context.unix ---<br>
--- Writing file --- ht5xetex.unix ---<br>--- Writing file --- ht5xelatex.unix ---<br>--- Writing file --- ht5mex.unix ---</font><br></span><br>The names are self explanatory.<br><br>Look forward to hear after your experiments.<br>
<br>Best regards<br>-- <br></div></div>Radhakrishnan<br><br><br>