Re: Images in org-mode

2022-09-13 Thread Ihor Radchenko
Timothy  writes:

>> Did it get merged? There are several patches proposed in that thread,
>> but I do not see them being actually merged upstream.
>
> Mmm, that thread ends with me proposing a specific approach and Matt saying it
> sounds good (, quoted 
> below),
> but from there no further patches are provided (unless I missed something).

Reading through the linked email, I have a feeling that Matt expected you
to provide further feedback:

>> Anyway, I still feel that the earlier patch (before regex changes is the
>> right one). But, if you want me to revert the documentation removal from
>> the function I will.

May you followup on his query?
 
-- 
Ihor Radchenko,
Org mode contributor,
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



Re: Images in org-mode

2022-09-12 Thread Timothy
Hi Ihor,

> Max Nikulin  writes:
>
>> Matt Huszagh. [PATCH] Fix regex for determining image width from
>> attribute. Sun, 21 Nov 2021 11:08:54 -0800.
>> 
>
> Did it get merged? There are several patches proposed in that thread,
> but I do not see them being actually merged upstream.

Mmm, that thread ends with me proposing a specific approach and Matt saying it
sounds good (, quoted below),
but from there no further patches are provided (unless I missed something).

  > Thanks for continuing with this. Moving forward, I think it would be 
best to:
  > ⁃ Make a patch just for prioritising `#+attr_org’
  > ⁃ Make a patch just improving the regex (before or after the 
`#+attr_org’ patch)
  > ⁃ Discuss changing the behaviour of image previews separately later / 
in another
  >   thread, linking to this thread when doing so.
  >
  > How does that sound?

  Yep, sounds good.

All the best,
Timothy


Re: Images in org-mode

2022-09-12 Thread Ihor Radchenko
Max Nikulin  writes:

> Matt Huszagh. [PATCH] Fix regex for determining image width from 
> attribute. Sun, 21 Nov 2021 11:08:54 -0800. 
> https://list.orgmode.org/87czmtuy0p@gmail.com

Did it get merged? There are several patches proposed in that thread,
but I do not see them being actually merged upstream.

-- 
Ihor Radchenko,
Org mode contributor,
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



Re: Images in org-mode

2022-09-11 Thread Colin Baxter
> Mark Barton  writes:

>> On Sep 10, 2022, at 12:03 PM, Colin Baxter  wrote:
>> 
>> 
>> I seem to remember that the option
>> 
>> #+ATTR_ORG: :width 100
>> 
>> could scale the display of an image in an org-mode file. This no
>> longer works - perhaps it never did. How should I scale an image
>> display in an org-mode file (not exported)?
>> 
>> Best wishes,
>> 
>> Colin Baxter.
>> 
>> 

> Check the value set for org-image-actual-width. Mine defaulted to
> t, so I changed it. There is some documentation if you use: C-h v
> org-image-actual-width

Yes, org-image-actual-width is the variable I need. It was set to 't'
and I've now changed to a number. With the #+ATTR setting it works as
per the documentation.

I should have gone through the list of variables more carefully before
posting. Thanks you all for your help.

Best wishes,

Colin.



Re: Images in org-mode

2022-09-11 Thread Max Nikulin

On 11/09/2022 02:03, Colin Baxter wrote:


I seem to remember that the option

#+ATTR_ORG: :width 100

could scale the display of an image in an org-mode file. This no longer
works - perhaps it never did. How should I scale an image display in an
org-mode file (not exported)?


You have not specified version of Org. E.g. the outcome of the following 
thread is likely not included into the release version:


Matt Huszagh. [PATCH] Fix regex for determining image width from 
attribute. Sun, 21 Nov 2021 11:08:54 -0800. 
https://list.orgmode.org/87czmtuy0p@gmail.com


See also the docstring for `org-display-inline-image--width'




Re: Images in org-mode

2022-09-10 Thread Mark Barton



> On Sep 10, 2022, at 12:03 PM, Colin Baxter  wrote:
> 
> 
> I seem to remember that the option
> 
> #+ATTR_ORG: :width 100
> 
> could scale the display of an image in an org-mode file. This no longer
> works - perhaps it never did. How should I scale an image display in an
> org-mode file (not exported)?
> 
> Best wishes,
> 
> Colin Baxter.
> 
> 

Check the value set for org-image-actual-width. Mine defaulted to t, so I 
changed it. There is some documentation if you use:
C-h v org-image-actual-width

Mark


Re: Images in org-mode

2022-09-10 Thread Dominik Schrempf
Maybe there are other options, but I think the canonical way is to use the
variable `org-image-actual-width’. The help mentions some ATTR_XXX options, so
you may find more answers there!

Dominik

Colin Baxter  writes:

> I seem to remember that the option
>
> #+ATTR_ORG: :width 100
>
> could scale the display of an image in an org-mode file. This no longer
> works - perhaps it never did. How should I scale an image display in an
> org-mode file (not exported)?
>
> Best wishes,
>
> Colin Baxter.


Images in org-mode

2022-09-10 Thread Colin Baxter


I seem to remember that the option

#+ATTR_ORG: :width 100

could scale the display of an image in an org-mode file. This no longer
works - perhaps it never did. How should I scale an image display in an
org-mode file (not exported)?

Best wishes,

Colin Baxter.




Re: [O] Embedding images in Org Mode for HTML export

2016-02-18 Thread Lawrence Bottorff
That seemed to work -- sometimes. But it's probably best to simply produce
each graphic separately, then embed as a png in the org file.

On Wed, Feb 17, 2016 at 8:54 AM, Eric S Fraga  wrote:

> On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote:
> > I've got this code:
>
> [...]
>
> > running in an org file, and it gives me embedded images in an html
> > file. (See this). But they're cramped and have a strange gray
> > background. How can I not clip and get the png transparent working?
>
> I added these options to the src block
>
>  :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 800
>
> and the first src block works for me: images are proper size and the
> background is transparent.  I could not test the second as I don't have
> qtree.
>
> The process might depend on what your system uses to generate the images
> from LaTeX.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890
>


Re: [O] Embedding images in Org Mode for HTML export

2016-02-17 Thread Eric S Fraga
On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote:
> I've got this code:

[...]

> running in an org file, and it gives me embedded images in an html
> file. (See this). But they're cramped and have a strange gray
> background. How can I not clip and get the png transparent working?

I added these options to the src block

 :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 800

and the first src block works for me: images are proper size and the
background is transparent.  I could not test the second as I don't have
qtree.

The process might depend on what your system uses to generate the images
from LaTeX.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890



[O] Embedding images in Org Mode for HTML export

2016-02-16 Thread Lawrence Bottorff
I've got this code:

#+begin_src latex :packages '(("" "tikz")) :exports results :results output
raw :file fsa.png
\usetikzlibrary{backgrounds}
\begin{tikzpicture}
  \draw (0,0) grid (10,5);
  \draw (0,0) node[below left] {$A$};
  \draw (10,5) node[above right] {$B$};
  \fill (0,0) circle (2pt);
  \fill (10,5) circle (2pt);
\end{tikzpicture}
#+end_src

#+begin_src latex :packages '(("" "qtree")) :exports results :results
output raw :file tree1.png
 \Tree [.sum [.squares [.prime-numbers initial seven ] ] ]
#+end_src

running in an org file, and it gives me embedded images in an html file.
(See this ). But they're cramped and have a
strange gray background. How can I not clip and get the png transparent
working?

LB


Re: [O] Managing Images with Org-mode?

2012-08-04 Thread Jeffrey Spencer
Also think adding in features to enable some features of image-dired would
be good. Some of my images are stored at 400dpi and I would like to view
inline images at times but this is way to big for an inline image because
goes out of the frame.

On Sat, Aug 4, 2012 at 4:49 AM, Karl Voit devn...@karl-voit.at wrote:

 * Karl Eichwalder k...@gnu.franken.de wrote:
  Karl Voit devn...@karl-voit.at writes:
 
  Yes, I use something similar to create the thumbnails and the initial
  org code (I use 3rd level headlines instead of table, because I want to
  attache tags to every single image):
 
  #+BEGIN_SRC sh
 [...]
  #+END_SRC

 Thanks for sharing!

  Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
  interest for you. On a per-file-basis this is: #+STARTUP inlineimages
 
  I was already aware of the toggle key sequence.  Thanks for the STARTUP
  parameter!  A colon is missing, though ;)  --better use:
 
  #+STARTUP: inlineimages

 Of course, thanks for clarifying. Damn copypaste :-)

 --
 Karl Voit





Re: [O] Managing Images with Org-mode?

2012-08-04 Thread Bastien
Jeffrey Spencer jeffspenc...@gmail.com writes:

 Also think adding in features to enable some features of image-dired
 would be good. Some of my images are stored at 400dpi and I would
 like to view inline images at times but this is way to big for an
 inline image because goes out of the frame.

Patch welcome :)

-- 
 Bastien



Re: [O] Managing Images with Org-mode?

2012-08-04 Thread Jude DaShiell
In the interests of supporting accessibility, does a variable setting in 
org-mode exist such that if someone tries to add an image to org-mode's 
management and org-mode can't find a title and description for that image, 
the user gets prompted to enter both and then the image gets srored with 
its title and description?  Even better would be if the image title and 
description could be exported together into a file format which would also 
carry the language attribute used.  That way, a screen reader with 
software capable of handling the exported file format when coming across 
such a file could get a little more information from it other than just 
image. On Sat, 4 Aug 2012, Jeffrey Spencer wrote:

 Also think adding in features to enable some features of image-dired would
 be good. Some of my images are stored at 400dpi and I would like to view
 inline images at times but this is way to big for an inline image because
 goes out of the frame.
 
 On Sat, Aug 4, 2012 at 4:49 AM, Karl Voit devn...@karl-voit.at wrote:
 
  * Karl Eichwalder k...@gnu.franken.de wrote:
   Karl Voit devn...@karl-voit.at writes:
  
   Yes, I use something similar to create the thumbnails and the initial
   org code (I use 3rd level headlines instead of table, because I want to
   attache tags to every single image):
  
   #+BEGIN_SRC sh
  [...]
   #+END_SRC
 
  Thanks for sharing!
 
   Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
   interest for you. On a per-file-basis this is: #+STARTUP inlineimages
  
   I was already aware of the toggle key sequence.  Thanks for the STARTUP
   parameter!  A colon is missing, though ;)  --better use:
  
   #+STARTUP: inlineimages
 
  Of course, thanks for clarifying. Damn copypaste :-)
 
  --
  Karl Voit
 
 
 
 


Hardware eventually fails; software eventually works, no amount of band
width can fix poor design

Jude jdashiel-at-shellworld-dot-net
http://www.shellworld.net/~jdashiel/nj.html




Re: [O] Managing Images with Org-mode?

2012-08-03 Thread Karl Eichwalder
Karl Voit devn...@karl-voit.at writes:

 ,[ ~/.snippets/tls ]
 | name : Insert a table with files of a folder including links
 | # --
 | #+BEGIN_SRC sh
 | PATTERN='${1:*.jpg}'
 | MYFOLDER='${2:$HOME/}'
 | cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do
 | echo '-[['\$MYPWD'/'\$file']]'; done
 | #+END_SRC
 `

Yes, I use something similar to create the thumbnails and the initial
org code (I use 3rd level headlines instead of table, because I want to
attache tags to every single image):

#+BEGIN_SRC sh
  reuse_thumb=${1:yes}
  org=2012-07-14-stubai-hohe-huetten
  img_dirs=${2:2012-07-*}
  : $org.tmp
  for d in $img_dirs ; do
{
  [ -f $d ]  continue
  echo ** $d
  pushd $d /dev/null
  mkdir -p thumb
  for f in *.JPG *.jpg; do
[ -f $f ] || continue
thumb=thumb/${f:0:-3}png
[ $reuse_thumb = yes ]  [ -f $thumb ] \
  || convert $f -thumbnail 144^ $thumb
echo *** [[file:$d/$thumb]]
echo [[file:$d/$f][$d/$f]]
  done
  popd /dev/null
} $org.tmp
  done
#+END_SRC

 Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
 interest for you. On a per-file-basis this is: #+STARTUP inlineimages

I was already aware of the toggle key sequence.  Thanks for the STARTUP
parameter!  A colon is missing, though ;)  --better use:

#+STARTUP: inlineimages

-- 
Karl Eichwalder



Re: [O] Managing Images with Org-mode?

2012-08-03 Thread Karl Voit
* Karl Eichwalder k...@gnu.franken.de wrote:
 Karl Voit devn...@karl-voit.at writes:

 Yes, I use something similar to create the thumbnails and the initial
 org code (I use 3rd level headlines instead of table, because I want to
 attache tags to every single image):

 #+BEGIN_SRC sh
[...]
 #+END_SRC

Thanks for sharing!

 Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
 interest for you. On a per-file-basis this is: #+STARTUP inlineimages

 I was already aware of the toggle key sequence.  Thanks for the STARTUP
 parameter!  A colon is missing, though ;)  --better use:

 #+STARTUP: inlineimages

Of course, thanks for clarifying. Damn copypaste :-)

-- 
Karl Voit




Re: [O] Managing Images with Org-mode?

2012-08-02 Thread Karl Voit
* Karl Eichwalder k...@gnu.franken.de wrote:
 Bastien b...@gnu.org writes:

 http://www.flickr.com/photos/keichwa/7649891572
 Looks nice.

 How did you put the thumbnails in the Org mode file?

 Once I understood the differences between inline images (images
 without a description) and linked images, it was easy:

 [[file:path_to_inline_image__thumbnail.png]]

Inspired by your posting, I wrote this short yasnippet in case I
want to use something similar in future:

,[ ~/.snippets/tls ]
| name : Insert a table with files of a folder including links
| # --
| #+BEGIN_SRC sh
| PATTERN='${1:*.jpg}'
| MYFOLDER='${2:$HOME/}'
| cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do echo 
'-[['\$MYPWD'/'\$file']]'; done
| #+END_SRC
`

Obviously, this does not work this way with Windows.

There might be room for improvement - please follow up if you
optimized it :-)

One thing: the dash in front of the '[[' is mandatory. Well, it does
not need to be a dash though. Any other normal character (non-empty,
not space) works as well. I did not quite understand why and did not
pay further attention.

The script above results in an Org-mode *table*. To me this was a
minor issue.

Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
interest for you. On a per-file-basis this is: #+STARTUP inlineimages

-- 
Karl Voit




Re: [Orgmode] inline images in org-mode

2010-09-29 Thread Carsten Dominik


On Sep 16, 2010, at 5:04 PM, Robert Goldman wrote:


On 9/16/10 Sep 16 -8:46 AM, Sebastian Rose wrote:

Robert Goldman rpgold...@sift.info writes:

... Is there some
magic I can put in the Local Variables block that will cause the  
images

to be displayed on startup?

# org-display-inline-images: t




# Local Variables:
# mode: Org
# eval: (org-display-inline-images)
# End:


 Sebastian


Would it be reasonable to augment org's processing of #+ directives so
that an org user can specify there instead of using the local  
variables,

which is less user-friendly?


Yes.  I have just implemented startup keywords `inlineimages' and
`noinlineimages', as well as a new variable
`org-startup-with-inline-images' for a global setting.

Cheers

- Carsten


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: inline images in org-mode

2010-09-16 Thread Dan Davison
Robert Goldman rpgold...@sift.info writes:

 I was looking for a way to put illustrations in my org-mode files so
 that I could actually look at them while editing the org stuff.  I found
 a post a while ago suggesting using iimage mode (which is included with
 the Aquamacs that I use, and is readily available if you don't have it
 with your emacs).

Hi Robert,

There's already org-display-inline-images, which iIrc uses overlays
rather than the text properties used by iimage. Does your route offer
advantages over this?

Dan


 I found I needed to do a little customization to make iimage work for
 me, so I thought I would post the details in case they were useful to
 anyone else.

 Here's the bit I added to my org configuration to make this work:

 (add-hook 'org-mode-hook
   '(lambda ()
 ;; unnecessary
 ;; (make-variable-buffer-local
 'iimage-mode-image-filename-regex)
 (let ((file-extension-regex
(regexp-opt (nconc (mapcar #'upcase
   image-file-name-extensions)
   image-file-name-extensions)
t)))
   (setq iimage-mode-image-regex-alist
 (list
  (cons
   (concat
\\[\\[
(regexp-quote file:)
\\([^]]+\. file-extension-regex \\)
\\]
\\(\\[ \\([^]]+\\) \\]\\)?
\\])
   1))

 Note that this /only/ displays inline local (file) links, not http
 images.  It wouldn't be hard to add that --- I built the above by
 copying and modifying the org-bracket-link-analytic-regexp variable
 initialization.  If one wanted to put this more generally into org-mode,
 it would probably be right to make the iimage-mode-image-regex-alist be
 under control of some org customization (to handle local versus all
 images, etc.).

 I don't generally want iimage mode on in all of my org-mode buffers, so
 I use the file variables block to engage iimage mode where I want it.
 If you'd like it always to be on, then you can just add iimage-mode
 (it's a minor mode) to your org-mode-hook.

 Hope that's of interest to someone...

 Cheers,
 r


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] inline images in org-mode

2010-09-16 Thread Sebastian Rose
Robert Goldman rpgold...@sift.info writes:
 I was looking for a way to put illustrations in my org-mode files so
 that I could actually look at them while editing the org stuff.  I found
 a post a while ago suggesting using iimage mode (which is included with
 the Aquamacs that I use, and is readily available if you don't have it
 with your emacs).

 I found I needed to do a little customization to make iimage work for
 me, so I thought I would post the details in case they were useful to
 anyone else.


Hi Robert,


just use `org-display-inline-images' or `org-toggle-inline-images'.
Not sure if it works with Aquamacs.


HTH

  Sebastian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: inline images in org-mode

2010-09-16 Thread Robert Goldman
On 9/16/10 Sep 16 -7:11 AM, Dan Davison wrote:
 Robert Goldman rpgold...@sift.info writes:
 
 I was looking for a way to put illustrations in my org-mode files so
 that I could actually look at them while editing the org stuff.  I found
 a post a while ago suggesting using iimage mode (which is included with
 the Aquamacs that I use, and is readily available if you don't have it
 with your emacs).
 
 Hi Robert,
 
 There's already org-display-inline-images, which iIrc uses overlays
 rather than the text properties used by iimage. Does your route offer
 advantages over this?

Nope.  Just didn't know it was there.  It's not in the manual (if I get
a chance, I'll try to write up a patch, or maybe someone else can); the
only thing I found on inline images was about export to HTML.  So then I
googled, and found the material on iimage only, not o-d-i-i.

Actually, having said that, on Aquamacs, o-d-i-i doesn't seem to work
well.  For reasons I'm too ignorant to explain, o-d-i-i causes the
images to flash repeatedly, instead of simply being displayed

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] inline images in org-mode

2010-09-16 Thread Robert Goldman
On 9/16/10 Sep 16 -7:32 AM, Sebastian Rose wrote:
 Robert Goldman rpgold...@sift.info writes:
 I was looking for a way to put illustrations in my org-mode files so
 that I could actually look at them while editing the org stuff.  I found
 a post a while ago suggesting using iimage mode (which is included with
 the Aquamacs that I use, and is readily available if you don't have it
 with your emacs).

 I found I needed to do a little customization to make iimage work for
 me, so I thought I would post the details in case they were useful to
 anyone else.
 
 
 Hi Robert,
 
 
 just use `org-display-inline-images' or `org-toggle-inline-images'.
 Not sure if it works with Aquamacs.

Doesn't seem to (see earlier response).

Suggestion: add documentation of this to MarkupImages and tables in the
org manual?  I'm still not entirely sure how to use it.  Is there some
magic I can put in the Local Variables block that will cause the images
to be displayed on startup?

# org-display-inline-images: t

doesn't seem to do this --- I still needed to call o-d-i-i or o-t-i-i
even with that in the block.

I'm willing to write up the manual patch; I'm just not entirely sure
what it should say (and whether my proposed location is the right one).

best,
r

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: inline images in org-mode

2010-09-16 Thread Dan Davison
Robert Goldman rpgold...@sift.info writes:

 On 9/16/10 Sep 16 -7:11 AM, Dan Davison wrote:
 Robert Goldman rpgold...@sift.info writes:
 
 I was looking for a way to put illustrations in my org-mode files so
 that I could actually look at them while editing the org stuff.  I found
 a post a while ago suggesting using iimage mode (which is included with
 the Aquamacs that I use, and is readily available if you don't have it
 with your emacs).
 
 Hi Robert,
 
 There's already org-display-inline-images, which iIrc uses overlays
 rather than the text properties used by iimage. Does your route offer
 advantages over this?

 Nope.  Just didn't know it was there.  It's not in the manual (if I get
 a chance, I'll try to write up a patch, or maybe someone else can);

Right, good catch. Someone needs to add it.

 the
 only thing I found on inline images was about export to HTML.  So then I
 googled, and found the material on iimage only, not o-d-i-i.

 Actually, having said that, on Aquamacs, o-d-i-i doesn't seem to work
 well.  For reasons I'm too ignorant to explain, o-d-i-i causes the
 images to flash repeatedly, instead of simply being displayed

Hmm, I don't think this is a good guess, but if you're using
org-indent-mode does turning it off help?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] inline images in org-mode

2010-09-16 Thread Sebastian Rose
Robert Goldman rpgold...@sift.info writes:
 ... Is there some
 magic I can put in the Local Variables block that will cause the images
 to be displayed on startup?

 # org-display-inline-images: t



# Local Variables:
# mode: Org
# eval: (org-display-inline-images)
# End:


  Sebastian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] inline images in org-mode

2010-09-16 Thread Robert Goldman
On 9/16/10 Sep 16 -8:46 AM, Sebastian Rose wrote:
 Robert Goldman rpgold...@sift.info writes:
 ... Is there some
 magic I can put in the Local Variables block that will cause the images
 to be displayed on startup?

 # org-display-inline-images: t
 
 
 
 # Local Variables:
 # mode: Org
 # eval: (org-display-inline-images)
 # End:
 
 
   Sebastian

Would it be reasonable to augment org's processing of #+ directives so
that an org user can specify there instead of using the local variables,
which is less user-friendly?

best,
r


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] inline images in org-mode

2010-09-15 Thread Robert Goldman
I was looking for a way to put illustrations in my org-mode files so
that I could actually look at them while editing the org stuff.  I found
a post a while ago suggesting using iimage mode (which is included with
the Aquamacs that I use, and is readily available if you don't have it
with your emacs).

I found I needed to do a little customization to make iimage work for
me, so I thought I would post the details in case they were useful to
anyone else.

Here's the bit I added to my org configuration to make this work:

(add-hook 'org-mode-hook
  '(lambda ()
;; unnecessary
;; (make-variable-buffer-local
'iimage-mode-image-filename-regex)
(let ((file-extension-regex
   (regexp-opt (nconc (mapcar #'upcase
  image-file-name-extensions)
  image-file-name-extensions)
   t)))
  (setq iimage-mode-image-regex-alist
(list
 (cons
  (concat
   \\[\\[
   (regexp-quote file:)
   \\([^]]+\. file-extension-regex \\)
   \\]
   \\(\\[ \\([^]]+\\) \\]\\)?
   \\])
  1))

Note that this /only/ displays inline local (file) links, not http
images.  It wouldn't be hard to add that --- I built the above by
copying and modifying the org-bracket-link-analytic-regexp variable
initialization.  If one wanted to put this more generally into org-mode,
it would probably be right to make the iimage-mode-image-regex-alist be
under control of some org customization (to handle local versus all
images, etc.).

I don't generally want iimage mode on in all of my org-mode buffers, so
I use the file variables block to engage iimage mode where I want it.
If you'd like it always to be on, then you can just add iimage-mode
(it's a minor mode) to your org-mode-hook.

Hope that's of interest to someone...

Cheers,
r


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: FR: Display images in org-mode?

2008-01-09 Thread MarkS
9101 1501 3471 1101 5039 92



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: FR: Display images in org-mode?

2008-01-09 Thread Piotr Zielinski
I think iimage-mode (minor mode shipped with emacs) does what you want

http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html

Piotr


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: Display images in org-mode?

2008-01-08 Thread Bastien
Hi Marks,

MarkS [EMAIL PROTECTED] writes:

 One feature of emacs-muse that I really like and can use is the
 ability to display inline images right inside of emacs. This allows me
 to see thumbnails of documents I'm currently working on, or catalog
 photographs on CD.

I've had a quick look at the code in Muse for this.  Inline images are a
good feature if we have something like `org-toggle-inline-images'.

 Is there any hope that orgmode will ever have this capability? I was
 thinking that the image rendering must somehow be inherent in emacs
 for muse to be able to do this, so maybe it wouldn't be too hard for
 orgmode to do it too?

Definitely not that hard.  

For now there is this rule applying to the HTML export: if an image link
has no description, or if the description and the link are equal, inline
the image in the HTML output: 

  [[file:/home/me/me.jpg]] = img src=[img URL]

If there is some informative description 
then don't inline the image, juste link to it.

  [[file:/home/me/me.jpg][Me!]] = a href=[img URL]Me!/a

Would this rule be okay for inlining images in the buffer as well?

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: FR: Display images in org-mode?

2008-01-08 Thread MarkS
Bastien bzg at altern.org writes:

 For now there is this rule applying to the HTML export: if an image link
 has no description, or if the description and the link are equal, inline
 the image in the HTML output: 
 
   [[file:/home/me/me.jpg]] = img src=[img URL]
 
 If there is some informative description 
 then don't inline the image, juste link to it.
 
   [[file:/home/me/me.jpg][Me!]] = a href=[img URL]Me!/a
 
 Would this rule be okay for inlining images in the buffer as well?
 

Is that the rule, or is this the rule (from the documentation):

  If the description is a file name or URL that points to an 
  image, HTML export (*note HTML export::) will inline the image
  as a clickable button.  If there is no description at all and 
  the link points to an image, that image will be inlined into 
  the exported HTML file.


This latter rule would work. One would want the exported HTML to be a clickable
button so that you could, for example, have a thumbnail on the page that points
to a higher resolution version in a different directory.

The thing that's missing from either approach is that you can't specify
attributes -- especially the alt tag for creating w3c compliant, disability
accessible, search-engine friendly image descriptions. 

Thanks!
-- Mark




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] FR: Display images in org-mode?

2008-01-07 Thread MarkS
I've been comparing org-mode with emacs-muse. In general, orgmode is much more
polished.

One feature of emacs-muse that I really like and can use is the ability to
display inline images right inside of emacs. This allows me to see thumbnails of
documents I'm currently working on, or catalog photographs on CD.

Is there any hope that orgmode will ever have this capability? I was thinking
that the image rendering must somehow be inherent in emacs for muse to be able
to do this, so maybe it wouldn't be too hard for orgmode to do it too?

Thanks!
Mark








___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode