[Cin] Varied Standard Shortcuts AppImage version for testing

Phyllis Smith phylsmith2017 at gmail.com
Tue Oct 10 03:37:46 CEST 2023


Thank you very much.  I have applied the patch, verified the results, and
checked it into the Manual GIT.
And thanks for the explanation as I will use that to correct at least one
other spot. ...Phyllis

On Mon, Oct 9, 2023 at 3:51 AM Georgy Salnikov <sge at nmr.nioch.nsc.ru> wrote:

> On Sun, 8 Oct 2023, Andrea paz via Cin wrote:
>
> > I am not sure, the table is similar to the others in the manual. It
> > could be the "multicolumn" command. It is used to merge the 3 columns
> > into one and would coincide with the fact that the html version has 2
> > more empty columns. However, that command is also present in the other
> > tables and has not given any problems.
> >
> > Andrei and Georgy, can you figure out what the cause might be?
>
> Andrea, I have figured out what happens. The working patch is in the
> attachment. Copy it into the base directory ('manual') and execute:
>
> zcat Shortcuts.diff.gz | patch -p1
>
> In simple words:
>
> 1) There must be no white space inside longtable's (or tabular's) format
> specification: instead of
>    \begin{longtable}[h] { | p{7cm} | p{6.5cm} | }
> write
>    \begin{longtable}[h] {|p{7cm}|p{6.5cm}|}
> OK, pdflatex tolerates them, but latex2html introduces extra columns
> thinking each such whitespace were one more column (although possibly
> empty).
>
> 2) latex2html does not know the command \endhead and treats it as an
> additional table row, this leads to an extra row inserted in the HTML
> version of the table. To remove it, you can place \endhead in the
> latex2html's pseudo-environment:
> %begin{latexonly}
>         \endhead
> %end{latexonly}
>
> 3) latex2html does not know the command \bottomrule and treats it as an
> additional table row, this leads to an extra row added at the very end of
> the HTML version of the table. Unfortunately, the %begin{latexonly}
> pseudo-environment does not help as pdflatex throws an error. However, it
> is
> possible to replace \bottomrule with \hline, this does not influence the
> pdflatex output, and latex2html's extra row gets out.
>
> > Another possibility is having rigidly set the size of the columns,
> > giving an exact number of cm.
> >
> > \begin{longtable}[h] { | p{0.5\textwidth-2\tabcolsep} |
> > p{0.25\textwidth-2\tabcolsep} | p{0.25\textwidth-2\tabcolsep} | }
>
> Perhaps fixing widths of columns is unnecessary, the reason for the problem
> reported was in the extra white space and not in the width expressions.
>
> Georgy
>
> _______________________________________________________________________________
>
> Georgy Salnikov
> NMR Group
> Novosibirsk Institute of Organic Chemistry
> Lavrentjeva, 9, 630090 Novosibirsk, Russia
> Phone   +7-383-3307864
> Email   sge at nmr.nioch.nsc.ru
>
> _______________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20231009/c0990935/attachment-0001.htm>


More information about the Cin mailing list