Daniel Dinnyes <dinny...@gmail.com> writes:

> I am trying to generate a LaTeX export with these two images displayed
> side-by-side:
>
> ```org
> | [[file:./chat1.png]] | [[file:./chat2.png]] |
> ```
>
> They display correctly inside the Emacs buffer.
>
> On the HTML export they display correctly side-by-side, but the for some
> reason there are visible border lines on the top and bottom of the table
> (not on the sides).

This is expected in HTML export for tables.

> The LaTeX export (via `org-export-dispatch` does not work. For some
> reason the `pdflatex` process runs on 100% CPU, and doesn't complete.
>
> I've looked at just the .tex export Org generates:
>
> ```
> \\begin{tabular}\[\\centering\]{ll}
> \\begin{center}
> \\includegraphics\[width=.9\\linewidth\]{./chat1.png}
> \\end{center} & \\begin{center}
> \\includegraphics\[width=.9\\linewidth\]{./chat2.png}
> \\end{center}\\
> \\end{tabular}
> ```
>
> It seems the problem is that it generates the center environments inside
> the tabular one.

Confirmed.
`org-latex--inline-image', by default (when `org-latex-images-centered'
is t), tries to center the images using center environment

It is ok for standalone images, but is clearly broken when the image is
really inline - a part of paragraph or table cell in this case.

Another example is

   This is file:~/Downloads/wallpaper.png foo.

which is exported as

    This is \begin{center}
    \includegraphics[width=\linewidth]{/home/yantar92/Downloads/wallpaper.png}
    \end{center} foo.

Pedro, any ideas how to address this?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to