0

make4ht generates a <header> block at the top of the html <body> element which contains the \@title value as plain text inside an <h2> element. I want to make this header title a hyperlink which points to the homepage. I can successfully do this with this code inside the configuration file:

\makeatletter \Configure{siteheader}{\ifvmode\IgnorePar\fi\EndP\HCode{<header class="header-bar">\Hnewline <a href="article.html">\@title</a><button type="button" class="hamburger">\string&equiv;</button>\Hnewline </header>}} \makeatother 

but I want to replace "article.html" with the content of a variable that holds this value. How do I do this (what is the name of the variable)?

3
  • 1
    your question isn't too clear, but perhaps \jobname.html does what you want Commented May 21 at 16:47
  • Thanks @DavidCarlisle, that actually worked! Commented May 21 at 19:21
  • @Ravi if it works, you can add the correct version as an answer. It may help somebody in the future. Commented May 21 at 19:51

1 Answer 1

1

TeX sets \jobname to the main file input (without any .tex extension) so \jobname.html is probably what you need.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.