<div dir="ltr"><div class="gmail_default" style="font-size:small">Thank you very much.  I have applied the patch, verified the results, and checked it into the Manual GIT.</div><div class="gmail_default" style="font-size:small">And thanks for the explanation as I will use that to correct at least one other spot. ...Phyllis<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 9, 2023 at 3:51 AM Georgy Salnikov <<a href="mailto:sge@nmr.nioch.nsc.ru">sge@nmr.nioch.nsc.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 8 Oct 2023, Andrea paz via Cin wrote:<br>
<br>
> I am not sure, the table is similar to the others in the manual. It<br>
> could be the "multicolumn" command. It is used to merge the 3 columns<br>
> into one and would coincide with the fact that the html version has 2<br>
> more empty columns. However, that command is also present in the other<br>
> tables and has not given any problems.<br>
><br>
> Andrei and Georgy, can you figure out what the cause might be?<br>
<br>
Andrea, I have figured out what happens. The working patch is in the<br>
attachment. Copy it into the base directory ('manual') and execute:<br>
<br>
zcat Shortcuts.diff.gz | patch -p1<br>
<br>
In simple words:<br>
<br>
1) There must be no white space inside longtable's (or tabular's) format<br>
specification: instead of<br>
   \begin{longtable}[h] { | p{7cm} | p{6.5cm} | }<br>
write<br>
   \begin{longtable}[h] {|p{7cm}|p{6.5cm}|}<br>
OK, pdflatex tolerates them, but latex2html introduces extra columns<br>
thinking each such whitespace were one more column (although possibly empty).<br>
<br>
2) latex2html does not know the command \endhead and treats it as an<br>
additional table row, this leads to an extra row inserted in the HTML<br>
version of the table. To remove it, you can place \endhead in the<br>
latex2html's pseudo-environment:<br>
%begin{latexonly}<br>
        \endhead<br>
%end{latexonly}<br>
<br>
3) latex2html does not know the command \bottomrule and treats it as an<br>
additional table row, this leads to an extra row added at the very end of<br>
the HTML version of the table. Unfortunately, the %begin{latexonly}<br>
pseudo-environment does not help as pdflatex throws an error. However, it is<br>
possible to replace \bottomrule with \hline, this does not influence the<br>
pdflatex output, and latex2html's extra row gets out.<br>
<br>
> Another possibility is having rigidly set the size of the columns,<br>
> giving an exact number of cm.<br>
><br>
> \begin{longtable}[h] { | p{0.5\textwidth-2\tabcolsep} |<br>
> p{0.25\textwidth-2\tabcolsep} | p{0.25\textwidth-2\tabcolsep} | }<br>
<br>
Perhaps fixing widths of columns is unnecessary, the reason for the problem<br>
reported was in the extra white space and not in the width expressions.<br>
<br>
Georgy<br>
_______________________________________________________________________________<br>
<br>
Georgy Salnikov<br>
NMR Group<br>
Novosibirsk Institute of Organic Chemistry<br>
Lavrentjeva, 9, 630090 Novosibirsk, Russia<br>
Phone   +7-383-3307864<br>
Email   <a href="mailto:sge@nmr.nioch.nsc.ru" target="_blank">sge@nmr.nioch.nsc.ru</a><br>
_______________________________________________________________________________<br>
</blockquote></div>