[tex4ht] split environment and exerquiz package
Tomas Davidek
Tomas.Davidek at cern.ch
Fri Jan 8 11:10:16 CET 2021
Ok, thanks, so let's try to solve each problem separately. Please find
attach a simple example of split environment. The tex-file is ok, but
make4 -a debug split_ex.tex gives the error message
=========
! Package amsmath Error: \begin{split} won't work here.
See the amsmath package documentation for explanation.
Type H <return> for immediate help.
...
l.21 \end{split}
=========
The full log file is also attached.
Can you please have a look? Any hint is appreciated.
Thanks a lot,
best regards, Tomas
On 1/7/21 11:32 PM, Nasser M. Abbasi wrote:
> On 1/7/2021 3:34 PM, Tomas Davidek wrote:
>> Hello,
>>
>> I made several tests with tex4ht. The tool nicely converts most of
>> the objects/environments, but I noticed two problems:
>>
>> 1. split environment
>>
>> I use that for typesetting long formulas, for instance
>>
>> This is my very long formula
>>
>> \begin{displaymath}
>> \begin{split}
>> \tau(\eta^0) & = \frac{\hbar}{\Gamma(\eta^0)} =
>> \frac{\hbar c}{c \Gamma(\eta^0)} =
>> \frac{0{,}197~\gev\cdot\mathrm{fm}}{3\cdot
>> 10^{8}~\mathrm{m}\cdot\mathrm{s}^{-1}\times
>> 1{,}30~\mathrm{keV}}
>> = \\
>> & = \frac{0{,}197\cdot 10^{-15}~\gev\cdot\mathrm{m}}{3\cdot
>> 10^{8}~\mathrm{m}\cdot\mathrm{s}^{-1}\times 1{,}30\cdot
>> 10^{-6}~\mathrm{GeV} = % \nonumber\\
>> 0{,}0505\cdot 10^{-17}~\mathrm{s} = 5{,}05\cdot
>> 10^{-19}~\mathrm{s} % \nonumber
>> \end{split}
>> \end{displaymath}
>>
>> This works perfectly in pdflatex, but when running htlatex, I get the
>> following error message:
>>
>
> It would be better to show a complete self contained example, not math
> fragment.
> And the complete commands you used to compile. This way no one have to
> guess.
>
> It is also better to use make4ht not htlatex. make4ht is now
> the standard way to compile latex to HTML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: split_ex.tex
Type: text/x-tex
Size: 765 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex4ht/attachments/20210108/5cf6027d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: split_ex.log
Type: text/x-log
Size: 16384 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex4ht/attachments/20210108/5cf6027d/attachment-0003.bin>
More information about the tex4ht
mailing list.