I am running around in circles, trying to figure this out, a problem
with \def and \kern command.

I've created a simple test that shows the problems:
I've a \def\kernEM{{\kern#1em}} in my input file, and try as I might,
I cannot get latex2html to pass this command thru to images.tex, here's
an input file I use, I even added this to my .init file:

    &process_commands_in_tex (<<_RAW_ARG_CMDS_);
    kernEM # {}
    _RAW_ARG_CMDS_

but that resulted in no change, my output image contains the text
{-0.4em}, which is supposed to be an argument to \kern! Any ideas?

------- test input file 
\documentclass{article}

\usepackage{html}

\def\kernEM#1{{\kern#1em}}  % this is the definition causing problems
\def\hspaceEM#1{{\hspace*{#1em}}} % this works

\begin{document}

 \begin{makeimage}

    A\kernEM{-0.4}B    % images.tex produces: A{-0.4em}B  (WRONG)
 
    G{\kern-0.4em}H    % images.tex produces: G{\kern-0.4em}H  (CORRECT)

    E\hspaceEM{-0.4}F    % images.tex produces: E\hspaceEM{-0.4}F (CORRECT)

 \end{makeimage}

\end{document}
-----end input file

Help!

-- 
Avinash Chopde
e-mail: [EMAIL PROTECTED]
home page: http://www.aczone.com/

Reply via email to