emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] Should #+attr_latex affect image display within the org buffer


From: John Kitchin
Subject: Re: [bug] Should #+attr_latex affect image display within the org buffer itself?
Date: Tue, 26 May 2020 12:54:00 -0400
User-agent: mu4e 1.3.6; emacs 26.3

I think another way to do it is to have an #+attr_org: :width as the
first attribute.


Vladimir Nikishkin <address@hidden> writes:

> At the moment, I'm working around this by setting the width in "TeX points":
>
> #+attr_latex: :width 224pt
>
> The exported image becomes 224 points wide (roughly 8 cm), and the
> embedded image is 224 pixels wide, which is okay.
>
>
> 2020-05-26 12:01 GMT+08:00, Vladimir Nikishkin <address@hidden>:
>> Hello, everyone
>>
>> My problem is the following:
>>
>> Compare the following three pieces of  org code:
>>
>> #+attr_latex: :width 80px
>> [[file:figure-1-1-dot.png]]
>>
>> #+attr_latex: :width 8cm
>> [[file:figure-1-1-dot.png]]
>>
>> #+attr_latex: :width 80mm
>> [[file:figure-1-1-dot.png]]
>>
>> They get exported into LaTeX as expected.
>> But if you org-redisplay-inline-images, you will see that the first
>> one is rendered 80 pixels wide,
>> the second one ise rendered 8 pixels wide, and the third one is
>> rendered 80 (again) pixels wide.
>>
>> So it seems that org is using #+attr_latex as a guide in setting the
>> width of the images in the org-buffer.
>>
>> This seems wrong.
>>
>> --
>> Yours sincerely, Vladimir Nikishkin
>>


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]