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).

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.

Instead if I change it to use \centering instead, it works:

```
\begin{center}
\begin{tabular}{c}
\centering \includegraphics[width=.5\linewidth]{./chat1.png}
\centering \includegraphics[width=.5\linewidth]{./chat2.png}
\end{tabular}
\end{center}
```

I've also had to adjust the width... this way it generates the PDF
correctly from the .tex file.

I would expect the table environment to be correctly generated, not with
nesting the center environments inside the tabular one.

I have also verified the issue by running Emacs with -q flag,
to ensure it is not caused by my own configuration.

------------------------------------------------------------------------

Emacs : GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.18.0, Xaw3d scroll bars)
Package: Org mode version 9.7.5 (release_9.7.5 @
/home/dadinn/.emacs.d/straight/build/org/)

Reply via email to