[tex4ht] [glossaries] First (long) occurrence of an acronym not long in title
Denis Bitouzé
dbitouze at wanadoo.fr
Wed Apr 2 18:17:46 CEST 2014
Michal Hoftich wrote:
> Hi Denis,
Hi Michal,
> I just have found this old question at TeX.sx [1].
Wow, an almost two years old question!
> Although you use different package for the acronyms than is used in
> that question, the issue is same. Long form of acronym is used only on
> first acronym use, but when you use it in the `\title`, you are using
> it actually at two places - in the `<title>` element in html header
> and then the title block in your document body. Full acronym is
> obviously printed only in the html header, which is a first use.
Well spotted...
> Your sample produces following html:
>
> ...
> <head><title>TE X for HTML (TE X4ht)</title>
> ...
> <div class="maketitle">
> <h2 class="titleHead"><a
> href="#glo:tex4ht">TE X4ht</a></h2>
> ...
>
>
> Some solutions exist, first and easier is to not use acronyms in the
> title,
Sigh... ;)
> second is to use custom config file with configuration for the TITLE+
> hook:
>
> file denis.cfg:
>
>
> \Preamble{xhtml}
> \Configure{TITLE+}{TeX for HTML}
> \begin{document}
> \EndPreamble
>
> now you can compile your document with
>
> htlatex test denis
>
> and resulting document contains:
>
> ...
> <head> <title>TeX for HTML</title>
> ...
> <h2 class="titleHead"><a
> href="#glo:tex4ht">TE X for HTML (TE X4ht)</a></h2>
> ...
Indeed, that does the trick: many thanks!
Best regards.
--
Denis
More information about the tex4ht
mailing list