I am writing a Texinfo manual, and for its HTML I need to include the contents of another file into the <head> ... </head>
section of the HTML output. To be more specific, I want to add mathjax capability to the HTML version of the output to show equations nicely. But I can't seem to find how I can add its <script>...</script>
to the header!
texinfo include HTML header from file
141 Views Asked by makhlaghi At
1
Since I couldn't find an answer and doing the job my self didn't seem to hard, I wrote a tiny C program to do the job for me. It did the job perfectly in my case!
Ofcourse, if there is an option in Texinfo that does the job, that would be a proper answer, this is just a remedy to get things temporarily going for my self.
This program can easily be compiled with
$ gcc addtoheader.c
.Then we can easily put the compiled program (by default it should be called
a.out
) with the HTML files and run:You can just change the macro for any text you want.