I found that the order of reference and appendices is compiled incorrectly by tex4ebook. Sample code:










with test.bbl:


  D.~Trump, \emph{Make America Great Again}, slogan.

compiled with test.mk4:

if mode == "draft" then
  Make:htlatex {}
  -- Make:add("biber","biber ${input}")
  Make:htlatex {}
  -- Make:biber {}
  Make:htlatex {}
  Make:htlatex {}


and the configure file:


There are two issues: firstly, reference page is placed before all appendices, and secondly, in the bookmark, the reference is placed as a subsection of the last appendix. I wonder a workaround to fix these.

1 Answer 1


The handling of appendices was broken in tex4ebook. There are two separate problems. The bibliography comes before appendices because every chapter is put in a separate file, which needs to be registered to the file sequence list. If they are not registered, they are added at the end of file, as it happened with appendices. The second issue is the position of bibliography in the bookmark list. The issue was that the \appendix command was defined as superior to \chapter in the bookmark generator code.

Both of these issues had been fixed in the tex4ebook sources. The fix is too large to be posted here, so you need to update it manually for this moment.

This is the result viewed in Calibre:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .