I am trying to convert a Latex document using tex4ht program, but various errors occur during conversion. To perform conversion, I inserted make4ht -l something.tex in the TeX Live command-line (something is the name of the document), while the minimal example is:
% !TeX program = lualatex
% !TeX encoding = UTF-8 Unicode
\documentclass[10pt,a4paper,twoside]{report}
\usepackage{fontspec}
\setmainfont{Arial}
%\usepackage{kotex}
\usepackage{float}
\usepackage{graphicx,graphbox}
\usepackage{enumitem}
\setlist[itemize,2]{label={$\circ$}}
\usepackage{longtable}
\usepackage{arydshln}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand{\textbox}[1]{node[black,fill=white, draw=black,line width=0.03cm,font=\small,text width = {#1}]}
\newcommand{\numbox}[1]{node[black,line width=0.028cm,fill=white,font=\small, draw={#1}]}
\newenvironment{tiks}[1]{%
\begin{tikzpicture}
\node [above right,inner sep=0] (image) at (0,0){#1};
\begin{scope}[x={($0.1*(image.south east)$)},y={($0.1*(image.north west)$)}]
}
{
\end{scope}
\path ($(image.center)!-1!(current bounding box.west)$)% expand east border
($(image.center)!-1!(current bounding box.east)$);% expand west border
\end{tikzpicture}}
\begin{document}
\begin{titlepage}
\vspace*{5cm}
\begin{tabular}{l l l}
& & \bfseries H:\\
\end{tabular}
\end{titlepage}
\begin{itemize}
\item Zufriedenheit
\begin{itemize}
\item something 1
\end{itemize}
\end{itemize}
\noindent\begin{minipage}[t]{0.3\textwidth}
\vspace{-3.75ex}
\begin{figure}[H]
\begin{tiks}{\includegraphics[width=\linewidth,height=7.6cm,trim={0cm 0cm 0cm 0cm},clip]{example-image}}
\draw (1.7,7.15)
\numbox{black}{1};
\draw[latex-, line width = 0.03cm,red,align=center,left]
(8,8) -- (5,8)
\textbox{2cm} {taste};
\end{tiks}
\end{figure}
\end{minipage}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.north east)}]
\node[anchor=north east,xshift=-7.9cm,yshift=-6.4cm]{\includegraphics[width=0.7cm,height=1cm]{example-image}};
\end{tikzpicture}
% \begin{longtable}{|p{2.8cm}|p{0.6cm}|}
% \hline
% Name & Year \\
% \hline
% \end{longtable}
\end{document}
The result I obtained when trying to perform the conversion is:
C:\Users\Me>make4ht -l something.tex
[STATUS] make4ht: Conversion started
[STATUS] make4ht: Input file: something.tex
This is LuaTeX, Version 1.13.2 (TeX Live 2021/W32TeX)
restricted system commands enabled.
Unsupported font cmsy10
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 61 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: ? 855 Undefined control sequence.
This is LuaTeX, Version 1.13.2 (TeX Live 2021/W32TeX)
restricted system commands enabled.
Unsupported font cmsy10
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 61 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: ? 855 Undefined control sequence.
This is LuaTeX, Version 1.13.2 (TeX Live 2021/W32TeX)
restricted system commands enabled.
Unsupported font cmsy10
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsL /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 Undefined control sequence.
[ERROR] htlatex: \adl@colsR /\number \adl@... 37 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: \adl@colsR /\number \adl@... 50 LaTeX Error: File `"example-image.xbb"' not found.
[ERROR] htlatex: \adl@colsR /\number \adl@... 61 LaTeX Error: Cannot determine size of graphic in "example-image.xbb" (no Boun
[ERROR] htlatex: ? 855 Undefined control sequence.
pre-processing DVI file (format version 2)
processing page 2
graphic size: 133.83823pt x 44.064459pt (47.038758mm x 15.486886mm)
output written to /
1 of 4 pages converted in 0.803 seconds
pre-processing DVI file (format version 2)
processing page 3
page is empty
graphic size: 0pt x 0pt (0mm x 0mm)
output written to /
1 of 4 pages converted in 0.732 seconds
[STATUS] make4ht: Conversion finished
C:\texlive\2021\bin\win32\runscript.tlu:915: command failed with exit code 1:
texlua c:\texlive\2021\texmf-dist\scripts\make4ht\make4ht -l something.tex
I made the following assessment of some obtained errors:
Unsupported font cmsy 10 warning: This warning is a consequence of the nested itemize environment due to \setlist[itemize,2]{label={$\circ$}} line.
htlatex: \adl@colsL /\number \adl@... 82 Undefined control sequence: Something related to or inside the titlepage environment. However, this error disappears when I comment the arydshln package.
htlatex: \adl@colsR /\number \adl@... 82 LaTeX Error: File `"example-image.xbb"' not found: This error (and the error following it) is the consequence of Tikz pictures. While I can get rid of error by creating xbb file (with inserting ebb -x example-image.png in TeX Live command-line, see https://www.kodymirus.cz/tex4ht-doc/Howto.html#graphics, after moving example-image.png to C:\Users\Me), the created HTML still does not have the example-image.
Aside from the main question, I have two additional questions (which are not that relevant and will be not considered when accepting hypothetical answer):
- After uncommenting the longtable example, the conversion does not finish, unless I comment the arydshln package. How to fix this?
- When I uncomment the kotex package, various errors occur. Again, how to fix this?
example-image-a
etc. as an image name in your MWE (it ships with all current distributions). You should also leave out the .png suffix. 2.) This is by no means a minimal example. Try to further reduce it to the part of your document that actually produces the error. 3.) Please restrict yourself to one issue at a time, simply post another question. Easier to keep track of useful answers that way.