[O] copying files in the links while exporting to html
Hi orgmoders, Is there any existing function to copy files in the external links to a specified location when exporting .org file to html? I know org-publish has functionality to copy files with certain suffices on defined project, but my need is to export single file or single subtree in the buffer. For example, when I export the following subtree, it would be lovely to copy the spam.png to the path I set up. * foo [[file:spam.png]] If there is no function ready to do that, what is the easiest easy to implement it? any point to the right direction is appreciated. Thanks, Zhenjiang
[O] headlines without timestampes
Hi orgmoders, I am wondering if there is function to dissect a heading into timestamps (for all various forms) and true title of text? For a simple example, assuming current entry is: * [2014-05-06 Thu] this is the heading blahblah... I'd like to get the time string and the title this is the heading separately. Is there a canonical way to do that with org-mode APIs? Thanks, Zech
Re: [O] headlines without timestampes
didn't know the regexp org-ts-regexp-*. Thanks! On Thu, May 29, 2014 at 10:59 AM, Bastien b...@gnu.org wrote: Hi, zhenjiang zech xu zhenjiang...@gmail.com writes: For a simple example, assuming current entry is: * [2014-05-06 Thu] this is the heading blahblah... I'd like to get the time string and the title this is the heading separately. Is there a canonical way to do that with org-mode APIs? This function returns a CONS with the timestamp and the rest of the heading: (defun get-timestamp-and-heading () (interactive) (save-excursion (org-back-to-heading t) (let* ((h (org-element-property :raw-value (org-element-at-point))) (h-no-ts (replace-regexp-in-string org-ts-regexp-both h)) (ts (and (string-match org-ts-regexp-both h) (match-string 0 h (cons (org-trim h-no-ts) ts HTH, -- Bastien
[O] footnote for each section in html export
Hi all, Is there anyway to customize the html export so that the footnote of each headline is put at the end of the section instead of all at the end of the webpage? Thanks, Zhenjiang
[O] tangle the code blocks in the regions
Hi all, is there function to extract all the code blocks in the selected region? For example, can I select the region of the following two blocks and extract them with just one command? Or I have to move cursor to each block and extract them one by one? #+BEGIN_SRC sh :tangle foo.sh echo 'hello' #+END_SRC #+BEGIN_SRC python :tangle foo.py print 'hello' #+END_SRC I doesn't find the extracting region command in manual. I would think this can be a convenient feature to have? Best, Zhenjiang