[tex4ht] Working examples of bibtex / multibib with tex4ebook?

Jürgen Hubert jhubert at gmx.de
Tue Mar 5 07:27:44 CET 2024


Okay, I've switched to BibLaTeX, and through some testing have managed to create EPUB files with bibliographies. So far, so good, although further testing will be necessary.

I did notice something interesting, though. I've been using the "alphabetic" style, since that was what I used with multibib:

\usepackage[style=alphabetic, backend=biber]{biblatex}

I have a number of .bib entries - websites, mostly - which do not have an author, but a key instead.

@misc{ AIV,
		key = {Architekten und Ingenieurverein Berlin Brandenburg},
		title = "{Schinkel-Wettbewerb 2005}",
		howpublished = {\url{https://www.aiv-berlin-brandenburg.de/wp-content/uploads/2010/05/Dokumentation_SW_2005.pdf}},
		note = {Accessed: 2022-10-31}
}

The bibliography entry in the pdf looks like this:

[Arc] Schinkel-Wettbewerb 2005. https://www.aiv-berlin-brandenburg.de/
      wp-content/uploads/2010/05/Dokumentation_SW_2005.pdf. Accessed:
      2022-10-31.

However, the tex4ebook entry looks like this:

[]    Schinkel-Wettbewerb 2005. https://www.aiv-berlin-brandenburg.de/wp-content/uploads/2010/05/Dokumentation_SW_2005.pdf. Accessed: 2022-10-31.

It seems that when an alphabetic bibliography index has no author, pdflatex uses the first letters from the key instead - but tex4ebook does not want to do, and thus generates an "empty" key. This will also show up as "[]" in the location where the reference is cited.

This isn't a problem when you have numeric bibliography entries - only when the bibliography needs to pull letters from the entry itself.

One obvious solution is to manually replace those "key" entries with "author" entries in my .bib files. But I'm curious if there is another possible workaround.

Best regards,

- Jürgen


> Gesendet: Montag, 04. März 2024 um 09:30 Uhr
> Von: "Michal Hoftich" <michal.h21 at gmail.com>
> An: "Jürgen Hubert" <jhubert at gmx.de>
> Cc: tex4ht at tug.org
> Betreff: Re: [tex4ht] Working examples of bibtex / multibib with tex4ebook?
>
> Hi Jürgen,
> 
> > I did it again - I've waited too long to update my LaTeX packages, and now my old files will no longer compile correctly. So now I have to carefully wade through my code and test anything.
> 
> I can see that  there is no configuration file for multibib. Bibtex
> itself should work. I can try to debug multibib, but a testing file
> would be nice.
> 
> You can also try BibLaTeX and it is much more powerful than both
> bibtex and multibib.
> 
> Best regards,
> Michal
>



More information about the tex4ht mailing list.