maranget / hevea

Hevea is a fast latex to html translator
http://hevea.inria.fr
Other
98 stars 11 forks source link

ENH: html: append the top title to the document title #13

Open westurner opened 4 years ago

westurner commented 4 years ago

It would be helpful for SEO and for usability to include the "top title" in the page titles:

Unfortunately, I don't know how to do this w/ LaTeX. e.g. Think Stats defines \thetitle, \thesubtitle, and \theversion commands that return strings, but IDK what a good convention would be. https://github.com/AllenDowney/ThinkStats2/blob/c76e1ecdd56a47bbb7ed13ed2fafe1eb1274f3d9/book/book.tex#L45-L47

Maybe a redefineable command?

https://github.com/maranget/hevea/blob/ee949517355fb56c9841d13445ae230b2cc043bb/html/hevea.hva#L300-L305