I can't get xltabular to work with tex4ebook. Other table environments work fine; unfortunately, I'm converting an existing project, which is quite large and uses xltabular a lot, and I'm supposed to keep the same source code for both versions, as much as possible. MWE:
\documentclass[a5paper,10pt,openright]{book}
\usepackage[a5paper, portrait, margin=2cm]{geometry}
\usepackage[portuguese]{babel}
\usepackage{xltabular}
\begin{document}
\begin{xltabular}
{\textwidth}
{| >{\raggedright\arraybackslash}X | >{\raggedright\arraybackslash}X | }
\hline
1st col & 2nd col \
\hline
\end{xltabular}
\end{document}
Command Line:
tex4ebook -l -f epub3 test.tex
(Switching -l to -x makes no difference.)
Error Messages:
[STATUS] tex4ebook: Conversion started
[STATUS] tex4ebook: Input file: test.tex
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: ./test.tex 14 Undefined control sequence.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Missing = inserted for \ifnum.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Undefined control sequence.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Missing number, treated as zero.
[ERROR] htlatex: ./test.tex 14 Undefined control sequence.
[ERROR] htlatex: ./test.tex 14 Missing } inserted.
[ERROR] htlatex: ./test.tex 14 Undefined control sequence.
[ERROR] htlatex: ? 14 Undefined control sequence.
[ERROR] htlatex: ? 14 Undefined control sequence.
[ERROR] htlatex: ? 14 Incompatible list can't be unboxed.
[ERROR] htlatex: ? 14 Missing } inserted.
[ERROR] htlatex: ? 14 Too many }'s.
[ERROR] htlatex: ? 14 Too many }'s.
[ERROR] htlatex: ? 14 LaTeX Error: \begin{document} ended by \end{tabularx}.
[ERROR] htlatex: ? 14 Extra \endgroup.
(repeated 3x)
Normal compilation with either pdflatex or xelatex works fine, though.
I've been reading documentation but so far I haven't been able to figure out what's going on. I also couldn't find any indication of incompatibility of the xltabular environment and tex4ebook.
Thanks.
