<div dir="auto">Thanks for such timely investigation!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 9 окт. 2023 г., 12:51 Georgy Salnikov via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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" rel="noreferrer">sge@nmr.nioch.nsc.ru</a><br>
_______________________________________________________________________________<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>