Jeremy > Jambunathan K writes: > >> Jeremy >> >>> What about the second patch ? I'm very interested in seeing it >>> merged. >> >> I did a quick run of the attached patch (authored by you). >> >> When I do this: >> >> #+ATTR_ODT: :anchor page >> [[./org-mode-unicorn.png]] >> >> I see that the image is anchored to the page as expected. But the moment >> I attach a caption and label to it like this: >> >> #+CAPTION: caption >> #+LABEL: label >> #+ATTR_ODT: :anchor page >> [[./org-mode-unicorn.png]] >> >> the image is no longer anchored to the page. I need to make additional >> modifications to achieve the desired effect for captioned images. (Let >> me do this modification myself.) > OK. > >> I am wondering what your use case is. For example, when someone does >> this: >> >> #+ATTR_ODT: :anchor page >> [[./org-mode-unicorn.png]] >> >> some text >> >> #+ATTR_ODT: :anchor page >> [[./org-mode-unicorn.png]] >> >> what do you think should be the desired behaviour. Practically, I see >> that the images get super-posed one on top of the other on the same page >> (i.e, effectively I see only one image). I am wondering what the trick >> is to embed multiple page anchored images in the document. > You get the "correct" behavior :) The trick is : you write text and text > and text. Sometimes, you want to add a picture but you don't want a page > break. For example, you want to add a big illustration. To render > correctly, the picture needs its own page but you don't want to break > the page. In this case you need to anchor the picture to the "page". I > made an example based on the road book I'm working on : > http://www.jerryland.fr/tatw/WorldTrip.odt. Quick example visible on > pages 20 and 23. For information, the first map inclusion was at the > beginning of 2.1.1 and the second map inclusion at the beginning of > 2.3.1. > > Obviously if you anchor consecutively two pictures to the "same page", > you could be disappointed by the result but it's an issue you have to > address with some others parameters which I do not know actually. I have added support for page-anchored images based on your suggestions. I have also added support for associating custom frame styles to the images. The attached org file and odt file will serve as an illustration. Thanks for working on this patch and suggesting improvements to the odt exporter. Jambunathan K.