Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Berry, Charles
> On Dec 22, 2021, at 2:16 PM, Yasushi SHOJI wrote: > > Hi, > > On Thu, Dec 23, 2021 at 3:22 AM Berry, Charles > wrote: >>> On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrote: >>> On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI >>> wrote: Then, why don't I have :file in the info? >>>

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Yasushi SHOJI
Hi, On Thu, Dec 23, 2021 at 3:22 AM Berry, Charles wrote: > > On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrote: > > On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI > > wrote: > >> Then, why don't I have :file in the info? > > > > The :exports must be "file" to have the file name in the info.

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Berry, Charles
> On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrote: > > On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI > wrote: >> Then, why don't I have :file in the info? > > The :exports must be "file" to have the file name in the info. I used > to have "code" because > I wanted to export code with

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Yasushi SHOJI
On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI wrote: > Then, why don't I have :file in the info? The :exports must be "file" to have the file name in the info. I used to have "code" because I wanted to export code with the file name as an attribute. I think I can work on it. Thanks Ihor for

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Yasushi SHOJI
Hi Ihor, On Wed, Dec 22, 2021 at 11:32 PM Ihor Radchenko wrote: > Yasushi SHOJI writes: > > I'm writing an exporter and I'd like to get :file property on a src block. > > Let's say I have the following src block in an org file. > > ... > > How can I get "images/hello-world.png" in

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Ihor Radchenko
Yasushi SHOJI writes: > Hi, > > I'm writing an exporter and I'd like to get :file property on a src block. > Let's say I have the following src block in an org file. > ... > How can I get "images/hello-world.png" in org-myexporter-src-block? See org-babel-get-src-block-info. It can accept the

exporter: How to get :file property on a src block in an exporter

2021-12-21 Thread Yasushi SHOJI
Hi, I'm writing an exporter and I'd like to get :file property on a src block. Let's say I have the following src block in an org file. #+BEGIN_SRC ditaa :file images/hello-world.png :exports code +--+ | Hello World! | +--+ #+END_SRC" And, say, I'm writing a function for