On Thu, Jan 19, 2012 at 12:07:46AM +0100, Marc Glisse wrote: > Hello, > > I am looking for a way to add <link rel="canonical" href="somewhere/$file" > /> to the headers of the generated html pages. With makeinfo, it doesn't > seem possible :-( > > So I looked at texi2html (with --node-files to get a similar result), > there is $EXTRA_HEAD, but I couldn't see how to reference the file name > from there (I am not a perl guru).
I don't really understand your quastion here. With texi2html you can use an init files with content: $EXTRA_HEAD = '<link rel="canonical" href="somewhere/$file"/>'; With texi2any, it could be along ./texi2any.pl --set EXTRA_HEAD='<link rel="canonical" href="somewhere/$file"/>' --html c.texi or in an init file set_from_init_file('EXTRA_HEAD', '<link rel="canonical" href="somewhere/$file"/>'); -- Pat