Hello Dmitri,

On 08/04/2006, at 1:05 AM, Dmitri Chubarov wrote:

Hello,

is there a way to have \textregistered symbol show up in HTML
in its decimal encoding or as a HTML entity or as a UTF-8 character?

At the moment \textregistered is on the process_commands_inline_in_tex list
and therefore on the raw_arg_cmds and where else. This makes this
command unaccessible to extensions such as textcomp.perl extension
that use the do_cmd_ hook.

Yes, that is correct.
The \textregistered  command gets "wrapped" to make an image.
This needs to be cancelled.


How should one go to reenable do_cmd_textregistered hook?

One quite easy way is to define a subroutine within
the  .latex2html-init  file that is loaded for the job.
e.g.,

sub custom_driver_hook {
    print "**** loading local customisations **** ";
    undef &wrap_cmd_textregistered;
    1; }


Now you should get the entity  ®
coming from the definition within  textcomp.perl  .


Note that it is no good just putting the line
   undef &wrap_cmd_textregistered;
into  .latex2html-init .
This is because the wrapping occurs *after* the init-file
has been read and executed.

By defining a  &custom_driver_hook  subroutine,
you delay execution of this coding until after all other
initialisations have taken place.



Best regards,
  Dmitri


Hope this helps,

        Ross

------------------------------------------------------------------------
Ross Moore                                         [EMAIL PROTECTED]
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------


_______________________________________________
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html

Reply via email to