On 8/27/2019 1:55 PM, Nasser M. Abbasi wrote:
URL:
   <http://puszcza.gnu.org.ua/bugs/?436>

                  Summary: tex4ht fails to compile valid latex using \adjustbox
                  Project: tex4ht
             Submitted by: nma123
             Submitted on: Tue 27 Aug 2019 09:53:54 PM EEST
                 Category: None
                 Priority: 5 - Normal
                 Severity: 7 - Important
                   Status: None
                  Privacy: Public
              Assigned to: None
         Originator Email:
              Open/Closed: Open
          Discussion Lock: Any

     _______________________________________________________

Details:

Hello

This MWE compiles OK with lualatex but fails in tex4ht using TL 2019 on Linux

--------------------------
\documentclass{article}%
\usepackage{amsmath}
\usepackage{adjustbox}
\begin{document}

\begin{equation*}
\adjustbox{max width=\textwidth}{%
$
\begin{aligned}
y \left( x \right) &={x}^{2}+x+3\\
\end{aligned}
$}
\end{equation*}
\end{document}
------------------

Error is

make4ht -ulm default foo.tex
'htm,3,pic-align,notoc*,p-width,charset=utf-8,svg' '-cmozhtf -utf8'

Output dir:
Compiler:       dvilualatex
Latex options:   -jobname=foo
tex4ht.sty :
xhtml,htm,3,pic-align,notoc*,p-width,charset=utf-8,svg,charset=utf-8
tex4ht   -cmozhtf -utf8
build_file      foo.mk4
Output format   html5
Cannot open config file foo.mk4
setting param correct_exit
setting param correct_exit
setting param correct_exit
setting param ext
Adding:         ext     dvi
LaTeX call: dvilualatex  -jobname=foo
'\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode
xhtml,htm,3,pic-align,notoc*,p-width,charset=utf-8,svg,charset=utf-8,html5.a.b.c.\input
"\detokenize{foo.tex}"'
This is LuaTeX, Version 1.10.0 (TeX Live 2019)
  restricted system commands enabled.
LaTeX2e <2018-12-01>


I do not know why the rest of the post did not show. But here is the error:

.....
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/svg-option.4ht)
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/html5.4ht)) (./foo.aux)
! Missing } inserted.
<inserted text>
}
l.8 $

?


--Nasser

Reply via email to