emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to center an image directly in org-mode (without exporting)
@ 2022-11-03 15:32 Cletip Cletip
  2022-11-04  4:54 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Cletip Cletip @ 2022-11-03 15:32 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

Hello to all,

My problem is quite simple to understand: when I activate
"org-toggle-inline-images", I would like my images to be centered. Indeed,
I tried this in a org-file

#+ATTR_ORG: :width 800 :center t

[[file:images/anImage.png]]


But it obviously doesn't work.

Does anyone have a tip?

(I'm thinking of creating a function that, each time the size of the window
changes, readjusts the number of spaces to put so that my image is
centered. It's not a very clean solution, but could it work?)

Thanks in advance

[-- Attachment #2: Type: text/html, Size: 3898 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-04 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-03 15:32 How to center an image directly in org-mode (without exporting) Cletip Cletip
2022-11-04  4:54 ` Ihor Radchenko
2022-11-04 14:03   ` Cletip Cletip

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).