> 
> Ross Moore <[EMAIL PROTECTED]> writes: 
> > No. This will not work.
> > since the value of $INFO does *not* appear in the source text.
> 
> Actually it does work, since the $INFO text has already been inserted
> into the page before &replace_infopage_hook is called.  Or it works
> for me, at least -- I get an "About this document..." page with my
> HTML on it.  Maybe it isn't a consistent solution and I got lucky..?
 
OK, you're right.
There are 2 mechanisms for inserting the Info-page.
The default uses  &add_document_info_page  
which inserts \textohtmlinfopage at the end of the document,
unless...

            &add_document_info_page if (($INFO) && !(/\\htmlinfo/));

Thus if  \htmlinfo  occurs within the document, then what I desribed
in the previous message is correct.

If \htmlinfo does not occur, then \textohtmlinfopage will be expanded
*before* any post-processing is done.

Perhaps it is better for  &add_document_info_page  to simply insert
$infopage_mark ? 
Alternatively, the  &replace_infopage should occur earlier in the
post-processing, since it may result in other material containing
markers that have yet to be replaced.


> > All you should need to do for customising is provide your own version
> > of  sub do_cmd_textohtmlinfopage  to override the built-in one.
> 
> Thanks... I am sure that will work.  I'll give it a go on Mon.

I think it will depend upon how complicated is the expansion that
you define, and whether you do it in Perl or in LaTeX .

I'd be interested in seeing the results.


Regards,

        Ross


Reply via email to