18.3 Associating Information to an Output File

To be able to retrieve information associated with the current file, in general for the file begin or end formatting, register_file_information can be used to associate integer information, and get_file_information to retrieve that information.

Function: $converter->register_file_information ($key, $value)

Associate the current output file name file to the key $key, itself associated with the integer value $value.

Function: $value = $converter->get_file_information ($key, $file_name)

Return the value associated with the key $key and file name $file_name.

By default, this interface is used to get ‘mathjax’ file information registered when converting math @-commands to insert references to MathJax scripts in file beginning (see MathJax scripts in Texinfo) and license information in end of files (see JavaScript Interface and Licenses in Texinfo).