HI again,

I fear what you want to do is not done the way you thought.

Instead of
#+BEGIN_SRC org

#+attr_latex: :center t
In this case, we want the paragraph to be centered, not just
file:test-img.png. This is why we place the attributes before the paragraph.
#+END_SRC

you need to

#+BEGIN_SRC org
,#+BEGIN_CENTER
In this case, we want the paragraph to be centered, not just
file:test-img.png. This is why we need to place place the whole paragraph
in the
markup.
,#+END_CENTER
#+END_SRC

The correct markup will generate
#+BEGIN_SRC latex
In this case, we want the paragraph to be centered, not just
\includegraphics{test-img.png}. This is why we need to place place the
whole paragraph in the
markup.
#+END_SRC

which, I hope, is what you intended.

Best, /PA

On Sat, 8 Mar 2025 at 06:52, Pedro Andres Aranda Gutierrez <
paag...@gmail.com> wrote:

> I'll see what can be done in the next free slot.
>
> /PA
>
> On Fri, 7 Mar 2025 at 18:06, Ihor Radchenko <yanta...@posteo.net> wrote:
>
>> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:
>>
>> > full image inlining patch with tests
>>
>> Thanks!
>>
>> I found a problematic example:
>>
>> #+attr_latex: :center t
>> Foo <file:~/Downloads/wallpaper.png> bar.
>>
>> The exporter will split the paragraph, adding centering environment.
>>
>> --
>> 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>
>>
>
>
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Sagen's Paradeiser, write BE!
> Year 1 of the New Koprocracy
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Sagen's Paradeiser, write BE!
Year 1 of the New Koprocracy

Reply via email to