Fine. I have approached this from the LaTeX we want to generate and have a proof of concept… attached is the PDF produced on overleaf.com <http://overleaf.com/> A question:
If we have a table of figures, we might have problems when referencing the figures. What approach would fit best 1. Keep tables and figures separate, which may imply a good amount of Lisp, still to be investigated. 2. Make everything with tables and have a) headings starting with ’Table’ for figures b) non consecutive figure numbering Best, /PA > El 24 feb 2025, a las 8:57, Pedro Andres Aranda Gutierrez <paag...@gmail.com> > escribió: > > Hi Ihor, > > I’m starting to look at this. Could you please confirm that the ToC patch is > closed before or are there any further things to add to it? > > Best, /PA > >> El 23 feb 2025, a las 18:47, Ihor Radchenko <yanta...@posteo.net> escribió: >> >> 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> >